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
- Setup a virtual environment:
virtualenv venv && source venv/bin/activate
- Install everything you need:
pip install -r requirements.txt
- (not necessary) Create config file named
settings.ini
in the root repository folder:
[archapp]
# Defaults, app will use sqlite backend. Also enables Django debug.
debug = true
# if you feel production ready, you can set up a Postgresql database
# and fill the lines below. they will be ignored if debug == true.
dbname = ...
dbuser = ...
dbpass = ...
- 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