Make sure you have Python (>= 2.7) installed
Make sure you have pip installed+
Make sure you have Postgres installed
Make sure you have postgis installed
Make sure you have gdal installed
Make sure you have libgeoip installed
pip install djangopip install django-simple-historypip install django-registration-reduxpip install psycopg2pip install bootstrap-admin
Add a heart/settings_local.py file containing something like:
# -*- coding: utf-8 -*-DATABASES= {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'helphelp2_dev',
'USER': '',
'PASSWORD': '',
'HOST': 'localhost'
}
}
SECRET_KEY='my super secret key'ALLOWED_HOSTS= ["localhost"]
EMAIL_BACKEND='django.core.mail.backends.dummy.EmailBackend'DEBUG=True# you might overwrite the path of the log file here to avoid permission issues- Run
psqlto get into the Postgres shell - Run
CREATE DATABASE helphelp2_dev;in there
python manage.py migrate authpython manage.py migrate
Run python manage.py createsuperuser and follow the instructions
python manage.py runserver