Skip to content

badparking/badparking.in.ua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages