Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

Latest commit

 

History

History
47 lines (34 loc) · 1.18 KB

README.md

File metadata and controls

47 lines (34 loc) · 1.18 KB

TWI-mc

Transkribus Web Interfaces: My collections site (python project)

git clone https://github.com/Transkribus/TWI-mc
cd TWI-mc
virtualenv -p /usr/bin/python3 venv
source venv/bin/activate
pip install -r requirements.txt
git pull
git submodule update --init

Make a file called mc/settings/local.py and add

SECRET_KEY = '[somestuff]'

RECAPTCHA_PUBLIC_KEY = ''
RECAPTCHA_PRIVATE_KEY = ''

SERVERBASE = ''
STATIC_URL = SERVERBASE+'/static/'
ALLOWED_HOSTS = ['localhost', '127.0.0.1'] # or your local/dev server
    
# To display the version string and link to the appropriate milestone set the following:
VERSION = "My version String"
MILESTONE = "1" # or whatever milestone you are on/working to

With approprate values (The last two may need to override/reset the defaults that are mc/settings/production.py)

To set up and run (with the default django dev environment):

python manage.py makemigrations
python manage.py makemigrations utils
python manage.py migrate
# possibly add python manage.py migrate utils
python manage.py collectstatic
python manage.py runserver [port]