-
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 django
pip install django-simple-history
pip install django-registration-redux
pip install psycopg2
pip 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
psql
to get into the Postgres shell - Run
CREATE DATABASE helphelp2_dev;
in there
python manage.py migrate auth
python manage.py migrate
Run python manage.py createsuperuser
and follow the instructions
python manage.py runserver