from django.conf.urls import patterns, include, url
from django.conf.urls.i18n import i18n_patterns
from django.conf import settings
from django.contrib import admin
from django.views.generic import TemplateView


urlpatterns = i18n_patterns('',
    url(r'^', include('studygroups.urls')),
    url(r'^interest/', include('interest.urls', namespace='interest')),
    url(r'^about/$', TemplateView.as_view(template_name="about.html"), name="about"),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^accounts/', include('django.contrib.auth.urls')),
    url(r'^ux/', include('uxhelpers.urls'))
)

if settings.DEBUG:
    media_url = settings.MEDIA_URL.lstrip('/').rstrip('/')
    urlpatterns += patterns('',
        (r'^%s/(?P<path>.*)$' % media_url, 'django.views.static.serve',
         {
             'document_root': settings.MEDIA_ROOT,
         }),
    )


@@ -250,16 +250,22 @@
  url(r'%5E
+admin/
 ', inclu
@@ -271,26 +271,23 @@
 ude(
-'studygroups
+admin.site
 .urls
-'
 )),%0A
@@ -448,55 +448,8 @@
 %22),%0A
-    url(r'%5Eadmin/', include(admin.site.urls)),%0A
     
@@ -548,16 +548,60 @@
 .urls'))
+,%0A    url(r'%5E', include('studygroups.urls'))
 %0A)%0A%0Aif s

Fix custom URLs masking admin URL