This template installs a fully functional Django website in just a few minutes.
This version of the project template includes new options for Django 1.8, 1.9, 1.10 , has bootstrap3 installed and Allauth configured, and some other useful apps as well.
The goal of this template is to set up a fully functional django project in minutes, and have a clear project structure.
The project structure:
src # project root
├── manage.py
├── /static
├── /config # project configuration
│ ├── /settings
│ │ ├── base.py # project settings
│ │ ├── local.py # local settings (development)
│ ├── urls.py
│ ├── wsgi.py
├── /base # base templates and static files
│ ├── models.py
│ ├── /static
│ ├── /templates
│ ...
├── /myApp # create your app using Startapp..
...
Demo: http://dj.lxer.eu
-
Make sure you have libffi installed
- $ sudo apt-get install libffi-dev
-
(when using python3) Make sure you have libevent-dev, python3-dev installed
- $ sudo apt-get install libevent-dev python3-dev
-
Install if not installed already (needed for bcrypt):
- $ sudo apt-get install build-essential libssl-dev libffi-dev python-dev
-
Install if not installed already (needed for pillow):
- $ sudo apt-get install libtiff5-dev libjpeg8-dev
-
Create your working environment and virtualenv:
- $ virtualenv project
python3:
- $ virtualenv -p python3 project
-
$ cd project
-
$ source bin/activate
-
run install.sh : - $ source <(wget -qO- https://raw.githubusercontent.com/allox/django-base-template/master/install.sh)
(To see what actually happens check https://raw.githubusercontent.com/allox/django-base-template/master/install.sh )
...and that's all!
By default, this project template includes:
A set of basic templates and Twitter Bootstrap 3.3.5 (located in the base app, with css and javascript included).
Templating:
- django_compressor for compressing javascript/css/less/sass
Authentication, registration
- allauth (+ base-template)
Security:
- bleach
- bcrypt - uses bcrypt for password hashing by default
Background Tasks:
- Celery
Caching:
- python-memcached
Admin:
- Includes django-debug-toolbar for development and production (enabled for superusers)
Testing:
- nose and django-nose
- pylint, pep8, and coverage
Any of these options can added, modified, or removed as you like after creating your project.
- use python3-memcached instead of python-memcached
- Python 2.6 , 2.7 , 3
- pip
- virtualenv (virtualenvwrapper is recommended for use during development)
This software is licensed under the New BSD License.