Commit 41107f7b by Bruno Bzeznik

Wip. manage.py fails with "No module named 'phyloeditor.forms'"

parent dd36dc0a
......@@ -17,6 +17,8 @@ run() {
nixos-container start $container
init_script=`nix-store --add store/init.sh`
source_dir=`nix-store --add $source_dir`
run bash $init_script
run mkdir -p /var/lib/phyloalps/phylodb
run cp -a $source_dir/* /var/lib/phyloalps/phylodb/
run mkdir -p /var/lib/phyloalps/phylodb/log
run touch /var/lib/phyloalps/phylodb/log/debug.log
run bash $init_script
#!/usr/bin/env bash
# Config
echo 'GEOS_LIBRARY_PATH = "/run/current-system/sw/lib/libgeos_c.so"' >> /var/lib/phyloalps/phylodb/phylodb/settings.py
echo 'GDAL_LIBRARY_PATH = "/run/current-system/sw/lib/libgdal.so"' >> /var/lib/phyloalps/phylodb/phylodb/settings.py
# Django install
cd /var/lib/django
virtualenv -p python3 phylodbenv
source phylodbenv/bin/activate
pip install django
pip install ply
pip install sparqlwrapper
pip install django-debug-toolbar
pip install django-widget-tweaks
source phylodbenv/bin/activate
pip install django
pip install ply
pip install sparqlwrapper
pip install django-debug-toolbar
pip install django-widget-tweaks
# Create the databases schema
cd /var/lib/phyloalps/phylodb
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py migrate --database=browser_db
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment