Django project skeleton

Here goes our usual directory structure for Django application. Sure it's not a rule, but our internal recommendations that helps us to develop projects in a team.

Directory structure

  • / - project root
    • media/
    • static/
    • code/
      • apps/
        • internal_app1/
          • template_tags/
          • admin.py , forms.py , models.py , urls.py , views.py
        • internal_app2/
      • templates/
        • internal_app1/
        • internal_app2/
      • fixtures/
      • locale/
        • en/
        • uk/
      • _ _init_ _.py
      • settings.py
      • url.py
      • manage.py,
      • local_setting_example.py - local developers settings example
      • external_apps/ - apps binded with svn-extarnals
        • external_app1/
          • templates/
          • template_tags/
          • locale/
          • admin.py , forms.py , models.py , urls.py , views.py
        • external_app2/
      • libs/ - non-django libs
        • lib1/
        • lib2/
    • static files, such as robots.txt, favicon.ico, .htaccess

Download

Check out with Subversion: svn co http://django.org.ua/svn/project-skeleton/trunk/