Skip to content

motiteux/django-template

Repository files navigation

Django Template

django-template provides a template for Django templates, based on several sources. To use this template run the following command:

django-admin.py startproject --template=https://github.com/motiteux/django-template/zipball/master --extension=py,html,md,rst,gitignore project_name

Note

The text following this comment block will become the README.rst of the new project.


{{ project_name | title }}

Prerequisites

  • python >= 2.7
  • Django >= 1.5.*

Installation

Get the code at <GIT_REPO>, using

git clone <GIT_REPO> {{ project_name }}

Install requirements

If pip is your thing:

cd {{ project_name }}

pip install -r requirements.txt

Configure project

cd {{ project_name }}

cp {{ project_name }}/settings/personal.py.dist {{ project_name }}/settings/personal.py

vi {{ project_name }}/personal.py

Sync & migrate database

python manage.py syncdb

python manage.py migrate

Running

python manage.py runserver

Open browser to http://127.0.0.1:8000