...
Code Block |
---|
# To make it easier for yourself set DJANGO_SETTINGS_MODULE=niweb.settings.prod in your bashprofile/bashrc $ cd /var/opt/norduni/norduni/src/niweb $ python manage.py migrate $ python manage.py collectstatic $ python manage.py runserver $ rm -r /tmp/django_cache |
Create local superuser
Code Block |
---|
$ python manage.py createsuperuser |
...
Code Block |
---|
sudo chown -R ni:www-data /tmp/django_cache sudo chmod -R g+wrw /tmp/django_cache sudo chown -R ni:www-data /var/opt/norduni/norduni/src/niweb/logs/ sudo chmod -R g+w /var/opt/norduni/norduni/src/niweb/logs/ |
...