steingrd / django-project-template

Alternative Django project template with focus on standalone applications and best practices

This URL has Read+Write access

steingrd (author)
Wed Feb 04 11:41:50 -0800 2009
commit  a1d404f72bfc5fd18fbb4dbc8f98e3bb0448a430
tree    f05ccd88581c53e9784164a7d5604ee79c6fc7e6
parent  67bb4758bbecd1cb2fb4088f35d50cc2df824fb5
README.rst

django-project-template

The project model created by the standard django-admin.py tool does not promote best practices.

The create_django_project.py script creates an alternate Django project structure with functional skeleton applications and templates. The main goal is to create a directory structure that promotes best practices such as standalone applications and easily deployable units.

Project structure

The project structure created by the script is a bit different than the standard Django project structure:

myproject/
    environment.sh
    manage.py
    templates/
        base.html
        myapp/
            index.html
    scripts/
    python/
        myapp/
            __init__.py
            urls.py
            views.py
            forms.py
            models.py
        myproject/
            __init__.py
            urls.py
            settings.py
    media/
        default.css