Skip to content

The sample project layout from the book, "Two Scoops of Django: Best Practices for Django 1.5"

License

Notifications You must be signed in to change notification settings

iterativ/django-project-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-twoscoops-project

Newer versions

Please take a look at

https://github.com/iterativ/cookiecutter-simple-django

or

https://github.com/iterativ/cookiecutter-simple-django-spa

which does the same

A project template for Django 1.5.

To use this project follow these steps:

  1. Create your working environment
  2. Install Django
  3. Create the new project using the django-two-scoops template
  4. Install additional dependencies
  5. Use the Django admin to create the project

note: these instructions show creation of a project called "icecream". You should replace this name with the actual name of your project.

Creating your project

To create a new Django project called 'icecream' using django-project-template, run the following command:

$ django-admin.py startproject --template=https://github.com/iterativ/django-project-template/zipball/master --extension=py,rst,html,rb,pp,json --name=Vagrantfile icecream

Create virtual env

$ virtualenv --no-site-packages icecream-env

Installation of Dependencies

Depending on where you are installing dependencies:

In development:

$ pip install -r requirements/local.txt

For production:

$ pip install -r requirements.txt

note: We install production requirements this way because many Platforms as a Services expect a requirements.txt file in the root of projects.

Initialize Database

Create all tables an load a admin user (admin, test)

$ python manage.py resetload

About

The sample project layout from the book, "Two Scoops of Django: Best Practices for Django 1.5"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 68.5%
  • CSS 26.1%
  • Python 4.6%
  • Other 0.8%