from django.conf.urls import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from control import views

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^$', views.index, name='index'),
    # Examples:
    # url(r'^$', 'skeleton.views.home', name='home'),
    # url(r'^skeleton/', include('skeleton.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin/subscription/upload/', 'subscription.views.uploader',
        {'page_name': 'csv_uploader'}, name="csv_uploader"),
    url(r'^admin/subscription/optouts/', 'subscription.views.optout_uploader',
        {'page_name': 'optout_uploader'}, name="optout_uploader"),
    url(r'^', include('subscription.urls')),
    url(r'^', include('servicerating.urls')),
    url(r'^', include('snappybouncer.urls')),
    url(r'^', include('controlinterface.urls')),

) + staticfiles_urlpatterns()

@@ -1152,16 +1152,251 @@
 urls')),
+%0A    url(r'%5E', include('registration.urls')),%0A    # url(r'%5Eapi/auth/',%0A    #     include('rest_framework.urls', namespace='rest_framework')),%0A    # url(r'%5Eapi/token-auth/',%0A    #     'rest_framework.authtoken.views.obtain_auth_token'),
 %0A%0A) + st

add registration urls