From c07ccc27eedc4261ca9f5d081ac27936916628e6 Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Fri, 2 Sep 2011 08:29:06 +0000 Subject: [PATCH] Update docs. --- README | 20 ++++++++++++++++---- gazetteer/local_settings.py.sample | 13 +++++++++++++ 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 gazetteer/local_settings.py.sample diff --git a/README b/README index 360281e..87393ef 100644 --- a/README +++ b/README @@ -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: - bzr branch PUBLIC_URL gazetteer + # bzr branch PUBLIC_URL gazetteer cd gazetteer virtualenv . pip -E . install -r requirements.txt @@ -16,7 +28,7 @@ Develop: python manage.py runserver + Deploy: create gazetteer/local_settings.py - - create /etc/apache2/sites-availavle/sitename.conf + copy conf/apache2.conf to /etc/apache2/sites-available and edit it diff --git a/gazetteer/local_settings.py.sample b/gazetteer/local_settings.py.sample new file mode 100644 index 0000000..fa3c779 --- /dev/null +++ b/gazetteer/local_settings.py.sample @@ -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. + } +} + +