# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static

from core.forms import CLALoginForm


urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)


if settings.ADMIN_ENABLED:
    # Uncomment the next two lines to enable the admin:
    from django.contrib import admin
    admin.site.login_form = CLALoginForm
    admin.autodiscover()

    urlpatterns += patterns(
        '',
        url(r'^status/', include('status.urls', namespace='status')),
        url(r'^admin/', include(admin.site.urls)),
        url(r'^admin/reports/', include('reports.urls', namespace='reports')),
    )

if settings.BACKEND_ENABLED:
    urlpatterns += patterns(
        '',

        url(r'^checker/api/v1/', include('checker.urls', namespace='checker')),
        url(r'^call_centre/api/v1/', include('call_centre.urls', namespace='call_centre')),
        url(r'^cla_provider/api/v1/', include('cla_provider.urls', namespace='cla_provider')),

        url(r'^oauth2/', include('cla_auth.urls', namespace='oauth2')),
    )

    if settings.DEBUG:
        urlpatterns += patterns(
            '',
            url(r'^means_test/api/v1/', include('means_test_api.urls', namespace='means_test')),
        )

@@ -191,45 +191,8 @@
 ic%0A%0A
-from core.forms import CLALoginForm%0A%0A
 %0Aurl
@@ -386,16 +386,56 @@
 t admin%0A
+    from core.forms import CLALoginForm%0A
     admi

move import of login form