<gh_stars>0
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import TemplateView

from bbmdweb import views


urlpatterns = [

    url(r'^$',
        views.RunList.as_view(),
        name="home"),

    url(r'^about/$',
        views.About.as_view(),
        name="about"),

    url(r'^admin/',
        include(admin.site.urls)),

    url(r'^accounts/',
        include('myuser.urls', namespace='user')),

    url(r'^',
        include('bbmdweb.urls', namespace='bbmd')),

]


# server media-only in debug mode
if settings.DEBUG:
    from django.views.static import serve
    import debug_toolbar
    urlpatterns += [
        url(r'^__debug__/', include(debug_toolbar.urls)),
        url(r'^media/(?P<path>.*)$',
            serve,
            {'document_root': settings.MEDIA_ROOT, }),
        url(r'^403/$', TemplateView.as_view(template_name="403.html")),
        url(r'^404/$', TemplateView.as_view(template_name="404.html")),
        url(r'^500/$', TemplateView.as_view(template_name="500.html")),
    ]

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

from bbmdweb import views


urlpatterns = [

    url(r'^$',
        views.RunList.as_view(),
        name="home"),

    url(r'^about/$',
        views.About.as_view(),
        name="about"),

    url(r'^admin/',
        include(admin.site.urls)),

    url(r'^accounts/',
        include('myuser.urls', namespace='user')),

    url(r'^',
        include('bbmdweb.urls', namespace='bbmd')),

]


# server media-only in debug mode
if settings.DEBUG:
    from django.views.static import serve
    import debug_toolbar
    urlpatterns += [
        url(r'^__debug__/', include(debug_toolbar.urls)),
        url(r'^media/(?P<path>.*)$',
            serve,
            {'document_root': settings.MEDIA_ROOT, }),
        url(r'^403/$', TemplateView.as_view(template_name="403.html")),
        url(r'^404/$', TemplateView.as_view(template_name="404.html")),
        url(r'^500/$', TemplateView.as_view(template_name="500.html")),
    ]
# server media-only in debug mode