Skip to content

Impact-Africa-Network/ian-django-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set up

  1. Create and activate virtual environment

    pipenv --python 3.10
    
    pipenv shell
  2. Install django

    pipenv install django
  3. Start project using this template, ensuring to replace ian_test_proj with the appropriate project name on the command below:

    django-admin startproject --template https://github.com/Impact-Africa-Network/ian-django-template/archive/main.zip ian_test_proj .
  4. Rename all the .template files by removing the .template extensions

  5. Copy the contents of env.template to .env

       cp env.template .env
  6. Populate the .env with real values.

  7. Setup your database

     sudo -u postgres psql
    
     > create database ian_merch;
    
     > create role ian with password 'ian';
    
     > alter role ian with login;
    
     > grant all on database ian_merch to ian;
    
  8. Make migrations

     ./manage.py makemigrations
    
     ./manage.py migrate
    

Releases

No releases published

Packages

No packages published