Skip to content

0181532686cf4a31163be0bf3e6bb6732bf/archaeologyapp

 
 

Repository files navigation

Archaeology database

This repository holds the source for a website that implements a handy database of archaeological sites across the world.

Demo

You can reach the site at http://archdb.tk/ and log in using the following credentials: username: demo, password: demopass

Running

NOTE

Code has been updated to run on Heroku, so if you have account there you can skip following lines and just deploy app there.

Configuration

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:

You can also set logfile name and allowed hosts with LOGFILE and ALLOWED env vars.

Steps

  1. Setup a virtual environment: virtualenv venv && source venv/bin/activate
  2. Install everything you need: pip install -r requirements.txt
  3. Make migrations and migrate: python manage.py makemigrations archapp && python manage.py migrate
  4. Create default filters: python manage.py loaddata archapp/fixtures/filters.json
  5. Create administrator: python manage.py createsuperuser
  6. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 41.6%
  • Python 26.6%
  • HTML 25.6%
  • JavaScript 6.2%