Skip to content

igorgai/django-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Creating a new project from this template

django-admin.py startproject <projectname> --template=https://github.com/igorgai/django-project-template/archive/master.zip --name=.gitignore,README.md,.bowerrc --extension=json,py,md,txt,less

Basic setup

Python dependencies and database setup

  1. Install pipenv (in case you don't have it installed yet). In the terminal:

    pip install pipenv
    

    (https://docs.pipenv.org/#install-pipenv-today)

  2. Navigate to the project directory:

    cd {{ project_name }}/
    
  3. Initialize virtual environment:

    pipenv install --three
    
  4. Copy the file at {{ project_name }}/settings/local.example.py and save it in the same directory under the name of "local.py":

    cp {{ project_name }}/settings/local.example.py {{ project_name }}/settings/local.py
    
  5. Install dependencies and initial data:

    pipenv run fab initial_data
    

Create superuser

pipenv run python manage.py createsuperuser

Html/css/js dependencies

npm -g install bower (Node should be installed)
bower install

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages