Permalink
Browse files

fallback to use django.conf.urls.defaults for 1.3.x

  • Loading branch information...
1 parent 0984e1b commit 43a06a5cf460af250a2648337b8965ac744209cf Masayoshi Sekimura committed Mar 31, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 webassets_dynamic/__init__.py
View
7 webassets_dynamic/__init__.py
@@ -1,4 +1,9 @@
-from django.conf.urls import RegexURLPattern, RegexURLResolver
+try:
+ from django.conf.urls import RegexURLPattern, RegexURLResolver
+except ImportError:
+ # Django 1.3.x fallback
+ from django.conf.urls.defaults import RegexURLPattern, RegexURLResolver
+
from django.conf import settings
from django.core.urlresolvers import reverse
from django.views.static import serve

0 comments on commit 43a06a5

Please sign in to comment.