from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static
from django.contrib import admin
from django.views.i18n import set_language

from core.views import error_page, flat_page, index
from users.views import user_dashboard


urlpatterns = i18n_patterns(

    # Add top-level URL patterns here.
    url(r'^$', index, name='index'),
    url(r'^dashboard/$', user_dashboard, name='user_dashboard'),
    url(r'^accounts/', include('users.urls')),
    url(r'^events/', include('events.urls')),
    url(r'^proposals/', include('proposals.urls')),
    url(r'^reviews/', include('reviews.urls')),
    url(r'^sponsors/', include('sponsors.urls')),
    url(r'^ccip/', include('ccip.urls')),
    # Match everything except admin, media, static, and error pages.
    url(r'^(?!admin|{media}|{static}|404|500/)(?P<path>.*)/$'.format(
        media=settings.MEDIA_URL.strip('/'),
        static=settings.STATIC_URL.strip('/')),
        flat_page, name='page'),

    url(r'^(?P<code>404|500)/$', error_page),
)

# set-langauge and admin should not be prefixed with language.
urlpatterns += [
    url(r'^set-language/$', set_language, name='set_language'),
    url(r'^admin/', include(admin.site.urls)),
]

# User-uploaded files like profile pics need to be served in development.
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# Debug Toolbar's URL.
if settings.DEBUG:
    import debug_toolbar
    urlpatterns += [url(r'^__debug__/', include(debug_toolbar.urls))]

@@ -747,49 +747,8 @@
 )),%0A
-    url(r'%5Eccip/', include('ccip.urls')),
 %0A   
@@ -1065,30 +1065,13 @@
 %0A%0A# 
-set-langauge and admin
+These
  sho
@@ -1122,16 +1122,58 @@
 ns += %5B%0A
+    url(r'%5Eccip/', include('ccip.urls')),%0A
     url(

Move ccip endpoints to top-level