Update docs.
This commit is contained in:
parent
3aae781761
commit
c07ccc27ee
20
README
20
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
|
||||
|
|
13
gazetteer/local_settings.py.sample
Normal file
13
gazetteer/local_settings.py.sample
Normal 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.
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user