aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@snark.mit.edu>2009-01-18 00:34:21 -0500
committerbryan newbold <bnewbold@snark.mit.edu>2009-01-18 00:34:21 -0500
commitcd98a4f09f4d6a7676b9c4685ac9805a93533c0a (patch)
tree23958156cd57a5e03fff95ca69313b74ce784815
parentba1656b83cc6e81c15d1f132686a1d8d4580ee5c (diff)
downloadbnewnet-cd98a4f09f4d6a7676b9c4685ac9805a93533c0a.tar.gz
bnewnet-cd98a4f09f4d6a7676b9c4685ac9805a93533c0a.zip
urls.py is site specific
-rw-r--r--.gitignore1
-rw-r--r--bn_django/urls.py.example (renamed from bn_django/urls.py)15
2 files changed, 9 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index cbc3bd2..dbae627 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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'}),
)