try:
    from django.conf.urls.defaults import patterns, url
except ImportError:
    from django.conf.urls import patterns, url


urlpatterns = patterns('',
    url(r'^server-data\.js$', 'nested_admin.views.server_data_js',
        name="nesting_server_data"),
)

from django.conf.urls import patterns, url


urlpatterns = patterns('',
    url(r'^server-data\.js$', 'nested_admin.views.server_data_js',
        name="nesting_server_data"),
)

Fix DeprecationWarning in Django 1.5
Fix DeprecationWarning in Django 1.5

- try:
-     from django.conf.urls.defaults import patterns, url
- except ImportError:
-     from django.conf.urls import patterns, url
+ from django.conf.urls import patterns, url
  
  
  urlpatterns = patterns('',
      url(r'^server-data\.js$', 'nested_admin.views.server_data_js',
          name="nesting_server_data"),
  )
  
Fix DeprecationWarning in Django 1.5
## Code Before:
try:
    from django.conf.urls.defaults import patterns, url
except ImportError:
    from django.conf.urls import patterns, url


urlpatterns = patterns('',
    url(r'^server-data\.js$', 'nested_admin.views.server_data_js',
        name="nesting_server_data"),
)

## Instruction:
Fix DeprecationWarning in Django 1.5
## Code After:
from django.conf.urls import patterns, url


urlpatterns = patterns('',
    url(r'^server-data\.js$', 'nested_admin.views.server_data_js',
        name="nesting_server_data"),
)
