from django.conf.urls import patterns, url

urlpatterns = patterns('djpg.views',
    url(r'notifications/$', 'notifications', name='pagseguro_notifications'),
)

from django.conf.urls import url
from .views import notifications

urlpatterns = [
    url(r'notifications/$', notifications, name='pagseguro_notifications'),
]

Support for Django >1.6