from django.conf.urls.defaults import *

from notification.views import notices, mark_all_seen, feed_for_user, single, notice_settings


urlpatterns = patterns("",
    url(r"^$", notices, name="notification_notices"),
    url(r"^settings/$", notice_settings, name="notification_notice_settings"),
    url(r"^(\d+)/$", single, name="notification_notice"),
    url(r"^feed/$", feed_for_user, name="notification_feed_for_user"),
    url(r"^mark_all_seen/$", mark_all_seen, name="notification_mark_all_seen"),
)

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

from notification.views import notices, mark_all_seen, feed_for_user, single, notice_settings


urlpatterns = patterns("",
    url(r"^$", notices, name="notification_notices"),
    url(r"^settings/$", notice_settings, name="notification_notice_settings"),
    url(r"^(\d+)/$", single, name="notification_notice"),
    url(r"^feed/$", feed_for_user, name="notification_feed_for_user"),
    url(r"^mark_all_seen/$", mark_all_seen, name="notification_mark_all_seen"),
)

Change to work with django 1.7
Change to work with django 1.7

+ try:
- from django.conf.urls.defaults import *
+     from django.conf.urls.defaults import *
+ except ImportError:
+     from django.conf.urls import *
  
  from notification.views import notices, mark_all_seen, feed_for_user, single, notice_settings
  
  
  urlpatterns = patterns("",
      url(r"^$", notices, name="notification_notices"),
      url(r"^settings/$", notice_settings, name="notification_notice_settings"),
      url(r"^(\d+)/$", single, name="notification_notice"),
      url(r"^feed/$", feed_for_user, name="notification_feed_for_user"),
      url(r"^mark_all_seen/$", mark_all_seen, name="notification_mark_all_seen"),
  )
  
Change to work with django 1.7
## Code Before:
from django.conf.urls.defaults import *

from notification.views import notices, mark_all_seen, feed_for_user, single, notice_settings


urlpatterns = patterns("",
    url(r"^$", notices, name="notification_notices"),
    url(r"^settings/$", notice_settings, name="notification_notice_settings"),
    url(r"^(\d+)/$", single, name="notification_notice"),
    url(r"^feed/$", feed_for_user, name="notification_feed_for_user"),
    url(r"^mark_all_seen/$", mark_all_seen, name="notification_mark_all_seen"),
)

## Instruction:
Change to work with django 1.7
## Code After:
try:
    from django.conf.urls.defaults import *
except ImportError:
    from django.conf.urls import *

from notification.views import notices, mark_all_seen, feed_for_user, single, notice_settings


urlpatterns = patterns("",
    url(r"^$", notices, name="notification_notices"),
    url(r"^settings/$", notice_settings, name="notification_notice_settings"),
    url(r"^(\d+)/$", single, name="notification_notice"),
    url(r"^feed/$", feed_for_user, name="notification_feed_for_user"),
    url(r"^mark_all_seen/$", mark_all_seen, name="notification_mark_all_seen"),
)
