streeter / django-project-template

django-admin.py startproject --template https://github.com/streeter/django-project-template/zipball/master --extension py,md yourprojectname

Home Page:https://docs.djangoproject.com/en/dev/ref/django-admin/#startproject-projectname-destination

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

{{ project_name|title }} Django Project

Prerequisites

  • python >= 2.6
  • pip
  • virtualenv/wrapper (optional)

Installation

Creating the environment

Create a virtual python enviroment for the project. If you're not using virtualenv or virtualenvwrapper you may skip this step.

For virtualenvwrapper

mkvirtualenv --no-site-packages {{ project_name }}

For virtualenv

virtualenv --no-site-packages {{ project_name }}

cd {{ project_name }}

source bin/activate

Clone the code

Obtain the url to your git repository. git clone <URL_TO_GIT_RESPOSITORY> {{ project_name }}

Install requirements

cd {{ project_name }}

pip install -r requirements.txt

Configure project

cp {{ project_name }}/example_local_settings.py {{ project_name }}/local_settings.py

vi {{ project_name }}/local_settings.py

Sync database

python manage.py syncdb

Running

python manage.py runserver

Open browser to 127.0.0.1:8000

About

django-admin.py startproject --template https://github.com/streeter/django-project-template/zipball/master --extension py,md yourprojectname

https://docs.djangoproject.com/en/dev/ref/django-admin/#startproject-projectname-destination


Languages

Language:Python 66.1%Language:HTML 33.9%