Pinax Starter Project and App Files
Pinax is opinionated, but builds on some common Django project and app conventions. Within Pinax starter projects and apps, you will find all of the files commonly found in Django projects and apps, plus some specific to Pinax.
Standard Django Project Files Included in Pinax Starter Projects
Configuration Files
Pinax starter projects include the following standard Django project configuration files:
Folder/File | Description |
---|---|
manage.py | Django config file |
requirements.txt | Django dependencies file for automated installation |
projectname/_init.py | Project-level config file |
project_name/apps.py | |
project_name/settings.py | Project-level settings |
project_name/wsgi.py | A Web Server Gateway Interface file |
General Project Files
Pinax starter projects include the following general Django project files:
Folder/File | Description |
---|---|
project_name/urls.py | Project-level URLs |
project_name/views.py |
Additional Pinax Starter Project Files
Pinax starter projects commonly include additional Pinax starter project files, such as:
Folder/File | Description |
---|---|
fixtures/sites.json | |
project_name/context_processors.py | |
project_name/hooks.py | |
project_name/receivers.py |
Standard Django App Files Included in Pinax Apps
Configuration Files
Pinax apps include the following standard Django app configuration files:
Folder/File | Description |
---|---|
init.py | App-level config file |
appname/_init.py | App-level config file |
app_name/apps.py | App-level config file |
app_name/migrations/0001_initial.py | App-level migrations |
app_name/tests/tests.py | App-level tests file |
General App Files
Pinax apps include the following general Django app files:
Folder/File | Description |
---|---|
app_name/admin.py | App-level admin |
app_name/forms .py | App-level forms |
app_name/models.py | App-level models |
app_name/urls.py | App-level URLs |
app_name/views.py | App-level views |
Additional Pinax App Files
Pinax apps commonly include additional Pinax app files, such as:
Folder/File | Description |
---|---|
app_name/conf.py | |
app_name/context_processors.py | |
app_name/hooks.py | |
app_name/managers.py | |
app_name/middleware.py | |
app_name/mixins.py | |
app_name/receivers.py | |
app_name/signals.py | |
app_name/templatetags/tags.py | App-level template tags |