Skip to content

Latest commit

 

History

51 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

badparking.in.ua

New version of badparking.in.ua. Now with mobile apps.

Local installation

  • 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.py next to settings.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 migrate to create/populate db tables
  • Run ./manage.py createsuperuser to create account for superuser
  • Run ./manage.py runserver
  • Open http://127.0.0.1:8000 in your browser.

About

New version of badparking.in.ua. Now with mobile apps.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages