Mercurial > personas_backend
changeset 21:962c99a1375b
A few changes to get the site to run via fastcgi on my website.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 28 Feb 2008 00:14:35 +0000 |
parents | ccb027c6862a |
children | bfee22828009 |
files | .hgignore PersonasBackend/settings.py PersonasBackend/urls.py |
diffstat | 3 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgignore Tue Feb 26 18:45:53 2008 -0800 +++ b/.hgignore Thu Feb 28 00:14:35 2008 +0000 @@ -2,3 +2,4 @@ *.pyc temp_db +*~
--- a/PersonasBackend/settings.py Tue Feb 26 18:45:53 2008 -0800 +++ b/PersonasBackend/settings.py Thu Feb 28 00:14:35 2008 +0000 @@ -82,3 +82,7 @@ 'django.contrib.admin', 'PersonasBackend.personas', ) + +# This is to get around this bug when running the site via +# FastCGI: http://code.djangoproject.com/ticket/3414 +APPEND_SLASH = False
--- a/PersonasBackend/urls.py Tue Feb 26 18:45:53 2008 -0800 +++ b/PersonasBackend/urls.py Thu Feb 28 00:14:35 2008 +0000 @@ -5,7 +5,7 @@ # (r'^PersonasBackend/', include('PersonasBackend.foo.urls')), # Uncomment this for admin: - (r'^admin/', include('django.contrib.admin.urls')), - (r'^en-US/personas_categories.dat', 'categories_json'), - (r'^en-US/personas_all.dat', 'personas_json'), + (r'^personas/admin/', include('django.contrib.admin.urls')), + (r'^personas/en-US/personas_categories.dat', 'categories_json'), + (r'^personas/en-US/personas_all.dat', 'personas_json'), )