This repository holds the source for a website that implements a handy database of archaeological sites across the world.
You can reach the site at http://archdb.tk/ and log in using the following credentials:
username: demo
, password: demopass
Code has been updated to run on Heroku, so if you have account there you can skip following lines and just deploy app there.
By default app uses Django's DEBUG
set to True
and uses sqlite database
backend. If you need to change this behaviour, you need to set few environment
variables:
- set
DEBUG
to anything except1
,TRUE
orY
; - do the same for
SQLITE
; - set
DATABASE_URL
to full database URI (see https://github.com/kennethreitz/dj-database-url for more details).
You can also set logfile name and allowed hosts with LOGFILE
and ALLOWED
env vars.
- Setup a virtual environment:
virtualenv venv && source venv/bin/activate
- Install everything you need:
pip install -r requirements.txt
- Make migrations and migrate:
python manage.py makemigrations archapp && python manage.py migrate
- Create default filters:
python manage.py loaddata archapp/fixtures/filters.json
- Create administrator:
python manage.py createsuperuser
- Go!
python manage.py runserver
If you really like production environments, you probably should consider deployment using nginx
and gunicorn
:
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-14-04