from django.conf.urls.defaults import *

urlpatterns = patterns('django_dowser.views',
    url(r'^trace/(?P<typename>[\.\-\w]+)(/(?P<objid>\d+))?$', 'trace'),
    url(r'^tree/(?P<typename>[\.\-\w]+)/(?P<objid>\d+)$', 'tree'),
    url(r'^$', 'index'),
)

try:
    from django.conf.urls import *
except ImportError:
    from django.conf.urls.defaults import *


urlpatterns = patterns('django_dowser.views',
    url(r'^trace/(?P<typename>[\.\-\w]+)(/(?P<objid>\d+))?$', 'trace'),
    url(r'^tree/(?P<typename>[\.\-\w]+)/(?P<objid>\d+)$', 'tree'),
    url(r'^$', 'index'),
)

Fix compatibility with Django 1.6
Fix compatibility with Django 1.6

+ try:
+     from django.conf.urls import *
+ except ImportError:
- from django.conf.urls.defaults import *
+     from django.conf.urls.defaults import *
+ 
  
  urlpatterns = patterns('django_dowser.views',
      url(r'^trace/(?P<typename>[\.\-\w]+)(/(?P<objid>\d+))?$', 'trace'),
      url(r'^tree/(?P<typename>[\.\-\w]+)/(?P<objid>\d+)$', 'tree'),
      url(r'^$', 'index'),
  )
  
Fix compatibility with Django 1.6
## Code Before:
from django.conf.urls.defaults import *

urlpatterns = patterns('django_dowser.views',
    url(r'^trace/(?P<typename>[\.\-\w]+)(/(?P<objid>\d+))?$', 'trace'),
    url(r'^tree/(?P<typename>[\.\-\w]+)/(?P<objid>\d+)$', 'tree'),
    url(r'^$', 'index'),
)

## Instruction:
Fix compatibility with Django 1.6
## Code After:
try:
    from django.conf.urls import *
except ImportError:
    from django.conf.urls.defaults import *


urlpatterns = patterns('django_dowser.views',
    url(r'^trace/(?P<typename>[\.\-\w]+)(/(?P<objid>\d+))?$', 'trace'),
    url(r'^tree/(?P<typename>[\.\-\w]+)/(?P<objid>\d+)$', 'tree'),
    url(r'^$', 'index'),
)
