Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.42 KB

README.markdown

File metadata and controls

35 lines (26 loc) · 1.42 KB

DjangoKit is a framework that will take a Django application, and turn it into a stand-alone MacOS application with a local database and media files. It's more of a thought experiment than an effort at producing a real application, but there are a couple of simple examples and the source code is available for download from my subversion repository. There are also downloadable binaries below.

DjangoKit depends on Django and PyObjC, so first install them, then install DjangoKit the usual way:

python setup.py install

Currently your app will need a fairly specific folder layout to work, use the layout in the examples as a base. Copy a setup.py file from the TODO example and modify it to suit your app, then run

python setup.py syncdb
python setup.py py2app

This should produce a stand-alone .app in the local /dist directory. For development, try

python setup.py py2app -A

Which will produce a development-only app that symlinks your app into it, so you can continue to edit the source files without having to rebuild the app every time you save. You can even edit the templates while the app is still running and see changes.