Skip to content

dorm7/django-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Template for Dorm7

Gitter

This is a django template for dorm7

INSTALLATION & SETTINGS

Install Django

To install django, justtype the following command

sudo pip install django

Create Django project from the template

To create the project, run the following command and please replace your_project_name to what you like :

django-admin.py startproject --template=https://github.com/dorm7/django-project-template/archive/master.zip --extension=py,rst,html your_project_name

Setting Virtualenv

At first, you should make sure you have virtualenv installed.

after that, just cd to your_project_name:

cd your_project_name

Then create your virtualenv:

virtualenv venv

Second, you need to enable the virtualenv by

source venv/bin/activate

Install requirements

For development:

pip install -r requirements/local.txt

For production:

pip install -r requirements.txt

For heroku:

Use requirements-heroku.txt to replace requirements.txt

Start To Run

to start project. cd your_project_name again (find manage.py )

python manage.py migrate   # you just do it once

python manage.py runserver

feel free to visit http://127.0.0.1:8000/style_guide/ and edit _varialbe.scss, you will see the amazing starting style guide for the project