Permalink
Browse files

Disable tiepoint in urls.py if it's not in INSTALLED_APPS

  • Loading branch information...
1 parent 64d1d69 commit e34b2561e7c091c43aa84c7bdb966463b25198f6 @deleted deleted committed Jul 31, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 urls.py
View
@@ -26,9 +26,14 @@
{'loginRequired': False},
'logout'),
- url(r'^geocamTiePoint/', include('geocamTiePoint.urls')),
)
+if 'geocamTiePoint' in settings.INSTALLED_APPS:
+ urlpatterns += (
+ '',
+ url(r'^geocamTiePoint/', include('geocamTiePoint.urls')),
+ )
+
urlpatterns += responderMapsPatterns
urlpatterns += geocamMapSetPatterns

0 comments on commit e34b256

Please sign in to comment.