[extensions-web: 74/75] Clean up urlpatterns a bit.
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web: 74/75] Clean up urlpatterns a bit.
- Date: Fri, 23 Sep 2011 03:20:39 +0000 (UTC)
commit a3dd6d85a48b2a69eb88010a28f480658fcac767
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Sep 22 23:08:47 2011 -0400
Clean up urlpatterns a bit.
sweettooth/urls.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/sweettooth/urls.py b/sweettooth/urls.py
index a712bbc..35614a7 100644
--- a/sweettooth/urls.py
+++ b/sweettooth/urls.py
@@ -20,11 +20,12 @@ urlpatterns = patterns('',
if settings.DEBUG:
# Use static.serve for development...
- urlpatterns += url(r'^static/extension-data/(?P<path>.*)', static.serve,
- dict(document_root=settings.MEDIA_ROOT), name='extension-data'),
+ urlpatterns.append(url(r'^static/extension-data/(?P<path>.*)', static.serve,
+ dict(document_root=settings.MEDIA_ROOT), name='extension-data'))
else:
# and a dummy to reverse on for production.
- urlpatterns += url(r'^static/extension-data/(?P<path>.*)', lambda n: None,
- name='extension-data'),
+ urlpatterns.append(url(r'^static/extension-data/(?P<path>.*)', lambda n: None,
+ name='extension-data'))
+
urlpatterns += staticfiles_urlpatterns()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]