Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (62 sloc) 1.84 KB

labels: Blog Django created: 2013-08-28T00:00 place: Starobilsk, Ukraine comments: true

Django startproject template

Django project template I use:

.
├── myproject
│   ├── apps
│   │   ├── core
│   │   │   ├── __init__.py
│   │   │   ├── models.py
│   │   │   ├── tests.py
│   │   │   └── views.py
│   │   ├── myapp
│   │   │   ├── __init__.py
│   │   │   ├── models.py
│   │   │   ├── tests.py
│   │   │   └── views.py
│   │   └── __init__.py
│   ├── settings
│   │   ├── __init__.py
│   │   ├── admins.py
│   │   ├── apps.py
│   │   ├── db.py
│   │   ├── default.py
│   │   ├── local.py
│   │   ├── logs.py
│   │   └── media.py
│   ├── static
│   │   ├── css
│   │   ├── img
│   │   └── js
│   ├── templates
│   │   ├── base.html
│   │   ├── core
│   │   └── myapp
│   ├── __init__.py
│   ├── urls.py
│   └── wsgi.py
├── .gitignore
├── Makefile
├── manage.py
└── requirements.txt

It's tiring to change standard django project structure everytime when start new project, so I created my own project template:

https://github.com/nanvel/django-project-template

Apply it:

django-admin.py startproject --template https://github.com/nanvel/django-project-template/archive/master.zip myproject

Differences from the original project template:

  • splitted settings
  • apps directory
  • Makefile
  • default base.html, templates directory
  • default configurations for database and media paths
  • error pages
  • south included by default
  • requirements.txt