TODO: Use pip-tools to configure dependencies: https://stackoverflow.com/a/35411399/41829
Pagination: Use digg style/google style (endless) pagination
http://django-el-pagination.readthedocs.io/en/latest/index.html
- run
redis-server
- Activate the virtualenv
env\Scripts\activate.bat
2.a. Install the requirementspip install -r production\requirements.txt
- run
python manage.py runserver
.
DJANGO_SETTINGS_MODULE=dj.settings.production python3 manage.py runserver
New:
- git push heroku master
Old: Run fab from the host machine:
-
ssh i.jmnorlund.net
-
sudo su - fedry
-
cd ~/dj && fab production deploy
Use the above command to deploy with production settings to the production site.