diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-09-05 16:12:21 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-09-05 16:12:21 +1000 |
commit | 3d3b4b3d8f694df76b7be490ca025302f8ba19ae (patch) | |
tree | 3b3d5c1599a652ec1eb7be95d456528181090a42 /docs | |
parent | 29e3847315b4b8c83e61aeb01ad30932463899e6 (diff) | |
download | patchwork-3d3b4b3d8f694df76b7be490ca025302f8ba19ae.tar patchwork-3d3b4b3d8f694df76b7be490ca025302f8ba19ae.tar.gz |
Use local settings module
This makes checkouts into a working patchwork site much easier.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/INSTALL | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/docs/INSTALL b/docs/INSTALL index 0d5cc3e..1748601 100644 --- a/docs/INSTALL +++ b/docs/INSTALL @@ -62,15 +62,17 @@ in brackets): cd ../../apps ln -s ../lib/packages/django-registration ./registration - You'll need to customise apps/settings.py to suit your database, and - change the SECRET_KEY variable too. While you're there, change the - following to suit your installation: + The settings.py file contains default settings for patchwork, you'll + need to configure settings for your own setup. - SECRET_KEY + Rather than edit settings.py, create a file 'local_settings.py', and + override or add settings as necessary. You'll need to define the + following: + + SECRET_KEY ADMINS TIME_ZONE LANGUAGE_CODE - MEDIA_ROOT You can generate the SECRET_KEY with the following python code: @@ -78,10 +80,16 @@ in brackets): chars = string.letters + string.digits + string.punctuation print repr("".join([random.choice(chars) for i in range(0,50)])) + If you have patchwork installed in somewhere other than /srv/patchwork, + you'll also need to define: + + MEDIA_ROOT + TEMPLATE_DIRS + Then, get patchwork to create its tables in your configured database: cd apps/ - ./manage.py syncdb + PYTHONPATH=../lib/python ./manage.py syncdb And add privileges for your mail and web users: |