Skip to content

Django To Desktop APP

Jangwon edited this page Jun 27, 2018 · 1 revision

Overview

electron을 사용하다가.. 왠지 Python도 해당 기능이 있을 것 같아서 진행하게됨 빌더 다운로드 Github

python 2.7

pip install pywebview py2app pythonnet create main.py

# -*- coding: utf-8 -*-

import webview
# Create a resizable webview window with 800x600 dimensions

webview.create_window("PyBrowse", "https://moosystems.com",width=800,height=600, resizable=True, fullscreen=False)
py2applet --make-setup main.py

아이콘 다운로드

from setuptools import setup

APP = ['main.py']

OPTIONS = {'argv_emulation': True,
           'iconfile': './PyBrowse.icns',
           'plist': {
                'CFBundleIdentifier': "com.moosystems.pybrowse",
                'CFBundleName': "PyBrowse",
                'CFBundleVersion': '1001',
                'CFBundleShortVersionString': '1.0',
               'NSHumanReadableCopyright': 'Copyright 2016 moosystems'
           }
          }

setup(
    app=APP,
    options={'py2app': OPTIONS},
    setup_requires=['py2app', ]
)

Django

  • django-admin startproject DjangoToDesktop .
  • python manage.py migrate 진행

React

Aiden

Zoe

Gini

Clone this wiki locally