from django.conf.urls import patterns, url

from authentication.views import user_login, user_logout
from authentication.views import approve, UnapprovedUsers, CustomAdminIndex
from authentication.views import BeneficiaryRegistrationView, DonorRegistrationView


urlpatterns = patterns('',
   url(r'^register/donor$', DonorRegistrationView.as_view(), name='donor'),
   url(r'^register/beneficiary$',
       BeneficiaryRegistrationView.as_view(), name='beneficiary'),
   url(r'^login/$', user_login, name='login'),
   url(r'^logout/$', user_logout, name='logout'),

   url(r'^$', CustomAdminIndex.as_view(), name='customadmin_index'),
   url(r'^unapproved-users$', UnapprovedUsers.as_view(), name='unapproved'),
   url(r'^approve/(?P<user_id>\d+)$', approve, name='approve'),

)

from django.conf.urls import patterns, url

from .views import user_login, user_logout
from .views import approve, UnapprovedUsers, CustomAdminIndex
from .views import BeneficiaryRegistrationView, DonorRegistrationView


urlpatterns = patterns('',
   url(r'^register/donor$', DonorRegistrationView.as_view(), name='donor'),
   url(r'^register/beneficiary$',
       BeneficiaryRegistrationView.as_view(), name='beneficiary'),
   url(r'^login/$', user_login, name='login'),
   url(r'^logout/$', user_logout, name='logout'),

   url(r'^$', CustomAdminIndex.as_view(), name='customadmin_index'),
   url(r'^unapproved-users$', UnapprovedUsers.as_view(), name='unapproved'),
   url(r'^approve/(?P<user_id>\d+)$', approve, name='approve'),

)

Use relative import for files inside the same package
Use relative import for files inside the same package
