Django project template structures and configurations
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apps
etc
.gitignore
LICENSE
README.md
README.md.example
manage.py
requirements-debug.txt
requirements.txt
settings.py
settings_local.py.example

README.md

This is the template that auzigog uses for Django project.

Features

Pre-configured to work with:

Setup

Typical Setup

To use normally, just clone or download the repo and use the directory structure to get you started.

Djenesis Setup

Here's how I would typically use this template with Djenesis:

# Replace all instaces of PROJECTNAME with your project name
pip install djenesis   # Install djenesis if you haven't already

cd ~/Projects
mkdir PROJECTNAME && cd PROJECTNAME
djenesis code --virtualenv=env git+https://github.com/auzigog/django-template-auzigog.git
cd PROJECTNAME/code
source ../env/bin/activate
./manage.py syncdb
# You're ready to start coding!

Run pip install requirements-debug.txt to load packages that are just for local development.

New Project Checklist

After starting a fresh project:

  1. Rename settings_local.py.example to settings_local.py and add in your database information
  2. Delete this README.md file, rename README.md.example to README.md, replace with information for your current project
  3. Create your first app using SAMPLEAPP as a template
  4. Copy (don't rename) SAMPLE to a new directory for your new app. Example: cp -R SAMPLEAPP blog
  5. Add the new application to your INSTALLED_APPS in settings.py
  6. Specify new app name in mainsite.urls. Example: change (r'', include('SAMPLEAPP.urls')), to (r'', include('blog.urls')),
  7. Add urls, views, and templates to your new app as necessary
  8. Delete LICENSE if it is not how you want to license your new project
  9. Follow the Usage instructions in your new README.md

License

This project is licensed under the Apache License, Version 2.0

Credits

Created with love by Jeremy Blanchard

This project originated from csky-django-template