New version of badparking.in.ua. Now with mobile apps.
- Install python 3.4+, postgresql and redis.
- Install libffi-dev and libssl-dev
- Install virtualenv
- Clone repository
- Create virtualenv outside of repo:
virtualenv venv - Activate virtualenv:
source venv/bin/activate - Install requirements:
pip install -r badparking.in.ua/requirements.txt - Create db user:
createuser badparking_user - Create db:
createdb badparking_db -Obadparking_user - Create
local_settings.pynext tosettings.py - Add following settings there:
ALLOWED_HOSTS = ["*"]
DEBUG = True
DATABASES = {
'default': {
# Strictly PostgreSQL
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'badparking_db',
'USER': 'badparking_user',
'PASSWORD': '',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}- Run
./manage.py migrateto create/populate db tables - Run
./manage.py createsuperuserto create account for superuser - Run
./manage.py runserver - Open http://127.0.0.1:8000 in your browser.