File diff 94c56bb468cb → daf93dc32b26
README.md
Show inline comments
...
 
@@ -42,10 +42,15 @@ You'll need a copy of `conservancy/djangocommonsettings.py`, a file that not
 
committed to the repository that has database settings and other
 
environment-specific config.
 

	
 
To run the tests, install `pytest-django` and run pytest:
 

	
 
    python3 -m pip install pytest-django
 
    python3 -m pytest
 

	
 
Then run:
 

	
 
    python manage.py migrate
 
    python manage.py runserver
 
    python3 manage.py migrate
 
    python3 manage.py runserver
 

	
 
There is also a Dockerfile available if that's more convenient. See that file
 
for details.
...
 
@@ -60,5 +65,5 @@ SystemD timer. See `systemd/conservancy-www-update.timer` for details.
 
The `migrate` and `collectstatic` commands are not run automatically. You may
 
need to run these if modifying the database schema or adding/moving static files:
 

	
 
    sudo -u www-data /var/www/venv-website/bin/python manage.py migrate
 
    sudo -u www-data /var/www/venv-website/bin/python manage.py collectstatic --link
 
    sudo -u www-data /var/www/venv-website/bin/python3 manage.py migrate
 
    sudo -u www-data /var/www/venv-website/bin/python3 manage.py collectstatic --link