Git Product home page Git Product logo

cookiecutter-django's Introduction

cookiecutter-django

Build Status

Project template for django based projects, optimized for making REST API with deployment on Heroku and EC2 instances.

Features

  • Latest stable Django 1.8+
  • PostresSQL everywhere.
  • Procfile for deploying to Heroku.
  • Ansible script for quick deployment to Ubuntu based servers.
  • 12-Factor based settings management via django-environ, reads settings from .env if present.
  • Designed to work with Django Rest Framework 3.0+.
  • Uses django_sites instead of django.contrib.sites
  • Use mkdocs for project documentation.
  • Uses py.test as test runner.
  • travis.yml for running isolated tests and deployments to dev/qa/prod environment on Heroku from git branches.
  • Custom User app, for easier extensibility.
  • Optional media storage using Amazon S3
  • robots.txt and humans.txt configured

Getting Started

You need to have cookiecutter installed in order to scafold a new project from this template.

cookiecutter gh:Fueled/cookiecutter-django

It will ask you to some questions, after which it will create a new project in your current working directory. It will also create a virtualenv in the folder venv inside the project, and install all the python dependencies inside it.

Once the cookiecutter script finishes, you'll have:

  1. A postgres database created, with name same as main_module you provided.
  2. Installed all the python dependencies in virtualenv
  3. Local settings added to .env file (untracked)
  4. Initialized a git repo and created the first commit.

Now the only thing you'll need to do is:

  1. cd into the new github_repository folder just created.
  2. Activate virtualenv source venv/bin/activate. If you plan to use virtualenvwrapper, you can install the project requirements via pip install -r requirements/development.txt
  3. Run fab serve

Summarizing:

brew install postgres
[sudo] pip install fabric cookiecutter
cookiecutter gh:Fueled/cookiecutter-django
cd <github_repository>/
git init; git add .
git commit -m "Initial commit."
source venv/bin/activate
fab serve

Don't forget to carefully look at the generated README. Awesome, right?

You can also explore the wiki section for details on advance setups and usuages.

Changelogs

Refer to CHANGELOG.md.


Built with โ™ฅ at Fueled

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.