Skip to content

vasyabigi/django-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install:

    $ django-admin.py startproject --template=https://github.com/vasyabigi/django-template/zipball/master  --extension py,md,gitignore,example woot

Where woot is the name of the project you'd like to create.

Update README.md:

  • Change repository link;
  • Make git add {{ project_name }}/logs/.gitdirectory {{ project_name }}/public/.gitdirectory {{ project_name }}/static/.gitdirectory -f;
  • Remove everything above this sentence;

{{ project_name }}

Installation

Creating the environment

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

For virtualenvwrapper

mkvirtualenv {{ project_name }}

For virtualenv

virtualenv {{ project_name }}
source {{ project_name }}/bin/activate

Clone the code

git clone YOUR-CUSTOM-REPO-LINK/{{ project_name }}.git

Install requirements

cd {{ project_name }}
pip install -r reqs/dev.txt

Configure project

cp {{ project_name }}/settings/dev.py.example {{ project_name }}/settings/dev.py
vi {{ project_name }}/settings/dev.py

Sync/migrate database

python manage.py migrate

Running Django

python manage.py runserver

About

Basic django skeleton for new projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages