Skip to content

biletboh/archaeologyapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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

Archaeology database website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published