Skip to content

A template for creating Django projects quickly, inspired by @pydanny cokiecutter-django.

License

Notifications You must be signed in to change notification settings

codetigerco/django-base-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-base-project

https://travis-ci.org/codetigerco/django-base-project.svg?branch=master Requirements Status

A template for creating Django projects quickly, inspired by @pydanny @cookiecutter-django .

Features

  • 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

Constraints

  • PostgresSQL everywhere
  • Enviroment variables for configuration (This won't work with Apache/mod_wsgi)
  • Only maintained 3rd party libraries are used

Django and Python Related

  • You should use PiP and virtualenv
  • Coverage
  • Pylint
  • pytest
  • to be used with Nginx (as a reversed proxy) and gunicorn

Other Stuff

  • 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)

Installation

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;

About

A template for creating Django projects quickly, inspired by @pydanny cokiecutter-django.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages