Skip to content

Example of Django app based on cookiecutter-django-rest with PostgreSQL

Notifications You must be signed in to change notification settings

osya/DjangoRESTPostgres

Repository files navigation

#DjangoRESTPostgres Build Status

It is example of Django REST application which is used Postgres database. Check out the project's documentation.

Prerequisites

Initialize the project

Create and activate a virtualenv:

virtualenv env
source env/bin/activate

Install dependencies:

pip install -r requirements/local.txt

Initialize the git repository

git init
git remote add origin git@github.com:osya/DjangoRESTPostgres.git
docker-compose up

Attach to the container and execute

python django_rest_postgres/manage.py createsuperuser

Create Servers

By default the included fabfile will setup three environments:

  • dev -- The bleeding edge of development
  • qa -- For quality assurance testing
  • prod -- For the live application

Create these servers on Heroku with:

fab init

Automated Deployment

Deployment is handled via Travis. When builds pass Travis will automatically deploy that branch to Heroku. Enable this with:

travis encrypt $(heroku auth:token) --add deploy.api_key

About

Example of Django app based on cookiecutter-django-rest with PostgreSQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages