Update docs.

This commit is contained in:
Schuyler Erle 2011-09-02 08:29:06 +00:00
parent 3aae781761
commit c07ccc27ee
2 changed files with 29 additions and 4 deletions

20
README
View File

@ -1,8 +1,20 @@
Entropy Free / LC Digital Gazetteer installation
gazetteer Install:
python-pip
python-virtualenv
python-psycopg2
postgresql-postgis-8.4
postgresql-contrib-8.4
apache2
libapache2-mod-wsgi
Create the database:
createdb gazetteer
bzcat digital-gazetteer.sql.bz2 | psql gazetteer
Get: Get:
bzr branch PUBLIC_URL gazetteer # bzr branch PUBLIC_URL gazetteer
cd gazetteer cd gazetteer
virtualenv . virtualenv .
pip -E . install -r requirements.txt pip -E . install -r requirements.txt
@ -16,7 +28,7 @@ Develop:
python manage.py runserver python manage.py runserver
Deploy: Deploy:
create gazetteer/local_settings.py create gazetteer/local_settings.py
copy conf/apache2.conf to /etc/apache2/sites-available and edit it
create /etc/apache2/sites-availavle/sitename.conf

View File

@ -0,0 +1,13 @@
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'gazetteer', # Or path to database file if using sqlite3.
'USER': 'gazetteer', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}