A template for creating Django projects quickly, inspired by @pydanny @cookiecutter-django .
- For Django 1.9
- Python 3.4
- UI Kit
- AngularJS (In the future)
- File to be used with TravisCI
- Optimized to be used with Digital Ocean
- Basic Static and Media Files configuration to be used with AWS
- SASS for CSS
- Gulp for Javascript Automation
- Fabric for deployment automation
- Basic Caching Setup
- PostgresSQL everywhere
- Enviroment variables for configuration (This won't work with Apache/mod_wsgi)
- Only maintained 3rd party libraries are used
- You should use PiP and virtualenv
- Coverage
- Pylint
- pytest
- to be used with Nginx (as a reversed proxy) and gunicorn
- The templates include a base.html, index.html and both a login.html and signup html.
- Different settings and requirements list are included to work with the different locations where the server will live (base, local, staging and production)
To create a new project with called 'recipes' using the template , run the following command:
$ django-admin startproject --template https://github.com/codetigerco/django-base-project/archive/master.zip recipes
To install psycopg2 on the virtualenv on a Mac first you need to setup your PATH:
$ PATH=$PATH:/Applications/Postgres.app/Contents/Versions/(latest-version)/bin
To setup the database do the following:
Open the postgress app $ CREATE DATABASE name-of-database; $ \c name-of-database $ CREATE USER name-of-user;