Skip to content

avialee/django_install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

django_install

Install

Install conda envirionment

 conda env create -f django.yml
 source activate django

Set up database

# 1. init db
pg_ctl -D /Users/frank/pgsql/data -l logfile init

# 2. start db 
pg_ctl -D /Users/frank/pgsql/data -l logfile start

# 3. create db
createdb django_data

# 4. enter db
psql -d django_data

Run

  • put deploy.ini file under folder epigen_ucsd_django/, change DATABASE_USER,DATABASE_PASSWORD(if you have set one),DATABASE_NAME in the file deploy.ini
  • Before makemigrations and migrate, replace file form.py under setqc_app and singlecell_app with the one in dropbox respectively
  • run makemigraions and migrate:
python manage.py makemigrations
python manage.py migrate
  • change file form.py under setqc_app and singlecell_app back to the origin one
  • (optional)run command to create superuser who could login to django-admin:
python manage.py createsuperuser
  • runserver:
python manage.py runserver 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published