Django project directory layout.
This is Django project directory layout which I use.
- sample Fabric fabfile.py to make deployment painless,
- basic project templates, with jquery, jquery-ui included. You can change jquery-ui theme and version of those libraries in settings.py file.
# ... JQUERY_VER = '1.4.3' JQUERY_UI_VER = '1.8.5' JQUERY_UI_THEME = 'ui-lightness' # JQUERY UI PROVIDES FOLLOWING THEMES: # base, black-tie, blitzer, cupertino, dark-hive, dot-luv, # eggplant, excite-bike, flick, hot-sneaks, humanity, # le-frog, mint-choc, overcast, pepper-grinder, redmond, # smoothness, south-street, start, sunny, swanky-purse, # trontastic, ui-darkness, ui-lightness, vader
- django-debug-toolbar included,
- basic configuration for developement with sqlite3
- project's (django) applications are in ./project/apps/ directory. (git doesn't allow to keep empty directories so you have to create it by hand)
clone the repository::
$ git clone https://email@example.com/jqb/django-project-template.git
remove version control directory::
$ rm -rf django-project-template/.git
rename the project directory:
$ mv django-project-template my-cool-project
It should work::
$ cd my-cool-project/project/ && ./manage.py runserver
Don't forget to change this README file :)