from content import views as content_views
from django.conf import settings, urls
from django.conf.urls import static
from django.contrib import admin
from django.views import generic
from entities import views as entities_views


urlpatterns = [
    urls.url(r'^stadt/', urls.include('account.urls')),
    urls.url(r'^stadt/', urls.include('content.urls')),
    urls.url(r'^stadt/', urls.include('entities.urls')),
    urls.url(r'^stadt/', urls.include('features.memberships.urls')),
    urls.url(r'^stadt/', urls.include('features.subscriptions.urls')),
    urls.url(r'^stadt/admin/', admin.site.urls),
    urls.url(r'^stadt/api/', urls.include('api.urls')),
    urls.url(r'^$', content_views.ContentList.as_view(), name='index'),
    urls.url(r'^gestalt/(?P<gestalt_slug>[\w.@+-]+)/$', entities_views.Gestalt.as_view(), name='gestalt'),
    urls.url(r'^gestalt/(?P<gestalt_slug>[\w.@+-]+)/(?P<slug>[\w-]+)/$', content_views.Content.as_view(), name='gestalt-content'),
    urls.url(r'^(?P<group_slug>[\w-]+)$', entities_views.Group.as_view(), name='group'),
    urls.url(r'^(?P<group_slug>[\w-]+)/(?P<slug>[\w-]+)/$', content_views.Content.as_view(), name='content'),
] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

@@ -144,16 +144,53 @@
 t admin%0A
+from django.core import urlresolvers%0A
 from dja
@@ -1039,16 +1039,17 @@
 %3E%5B%5Cw-%5D+)
+/
 $', enti

Fix trailing slash for group urls #144