Skip to content

Commit

Permalink
refactor urls for django 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
matclayton authored and theospears committed Jul 8, 2013
1 parent 3814302 commit c9ea6a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion experiments/nexus_modules.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from django.conf.urls.defaults import patterns, url
try:
from django.conf.urls import patterns, url
except ImportError: # django < 1.4
from django.conf.urls.defaults import patterns, url

from functools import wraps

Expand Down
5 changes: 4 additions & 1 deletion experiments/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from django.conf.urls.defaults import *
try:
from django.conf.urls import patterns, url
except ImportError: # django < 1.4
from django.conf.urls.defaults import patterns, url

urlpatterns = patterns('experiments.views',
url(r'^goal/(?P<goal_name>[^/]+)/(?P<cache_buster>[^/]+)?$', 'record_experiment_goal', name="experiment_goal"),
Expand Down

0 comments on commit c9ea6a7

Please sign in to comment.