diff options
author | bryan newbold <bnewbold@snark.mit.edu> | 2009-01-18 00:34:21 -0500 |
---|---|---|
committer | bryan newbold <bnewbold@snark.mit.edu> | 2009-01-18 00:34:21 -0500 |
commit | cd98a4f09f4d6a7676b9c4685ac9805a93533c0a (patch) | |
tree | 23958156cd57a5e03fff95ca69313b74ce784815 | |
parent | ba1656b83cc6e81c15d1f132686a1d8d4580ee5c (diff) | |
download | bnewnet-cd98a4f09f4d6a7676b9c4685ac9805a93533c0a.tar.gz bnewnet-cd98a4f09f4d6a7676b9c4685ac9805a93533c0a.zip |
urls.py is site specific
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | bn_django/urls.py.example (renamed from bn_django/urls.py) | 15 |
2 files changed, 9 insertions, 7 deletions
@@ -3,6 +3,7 @@ media code bn_django/bn_django.db bn_django/settings.py +bn_django/urls.py bn_django/git_wiki/settings.py bn_django/git_browse/settings.py *.pyc diff --git a/bn_django/urls.py b/bn_django/urls.py.example index fa8b083..aa9e079 100644 --- a/bn_django/urls.py +++ b/bn_django/urls.py.example @@ -40,11 +40,12 @@ urlpatterns = patterns('', (r'^admin/(.*)', admin.site.root), (r'^comments/', include('django.contrib.comments.urls')), - (r'^static/(?P<path>.*)$', 'django.views.static.serve', - {'document_root': '/home/bnewbold/bn-project/static', - 'show_indexes': True}), - (r'^style/(?P<path>.*)$', 'django.views.static.serve', - {'document_root': '/home/bnewbold/bn-project/static/style'}), - (r'^media/(?P<path>.*)$', 'django.views.static.serve', - {'document_root': '/home/bnewbold/bn-project/media'}), + # uncomment for development + #(r'^static/(?P<path>.*)$', 'django.views.static.serve', + # {'document_root': '/home/bnewbold/code/bn-project/static', + # 'show_indexes': True}), + #(r'^style/(?P<path>.*)$', 'django.views.static.serve', + # {'document_root': '/home/bnewbold/code/bn-project/static/style'}), + #(r'^media/(?P<path>.*)$', 'django.views.static.serve', + # {'document_root': '/home/bnewbold/code/bn-project/media'}), ) |