This repository contains the source code of the Atlas of Lepidoptera of Belgium.
- Get/clone the code
- pip install -r requirements.txt
- Create a (or get a backup of an existing) PostgreSQL database
- Duplicate settings_local.template.py to settings_local.py and configure the previously created database
- $ python manage.py migrate
- $ python manage.py denorm_init
- $ python manage.py createsuperuser (if needed)
- (in production:) $ python manage.py collectstatic
- (in production:) run wsgi server
- Pull the code.
- $ pip install -r requirements.txt
- $ python manage.py denorm_drop
- $ python manage.py denorm_init
- $ python manage.py migrate
- $ python manage.py collectstatic
- restart app server
- Customize variables in static/lepidoptera/bootstrap-custom/scss/custom.scss (requires an installed version of Bootstrap 4.1)
- Compile it to static/lepidoptera/bootstrap-custom/scss/custom.css