# Django
# Third-Party
from rest_framework.documentation import include_docs_urls
from rest_framework.schemas import get_schema_view
from django.conf import settings
from django.conf.urls import (
    include,
    url,
)
from django.contrib import admin
from django.http import HttpResponse, HttpResponseRedirect

schema_view = get_schema_view(
    title='Barberscore API',
)

urlpatterns = [
    url(r'^$', lambda r: HttpResponseRedirect('admin/')),
    url(r'^admin/', admin.site.urls),
    url(r'^api/', include('api.urls')),
    url(r'^api-auth/', include('rest_framework.urls')),
    url(r'^schema/', schema_view),
    url(r'^docs/', include_docs_urls(title='Foobar', description='foo to the bar')),
    url(r'^robots.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /", content_type="text/plain")),
]

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

04bf8204124637b437cfd84931bd1584930b6566
<mask token>

<mask token>
if settings.DEBUG:
    import debug_toolbar
    urlpatterns += [url('^__debug__/', include(debug_toolbar.urls))]

<mask token>
schema_view = get_schema_view(title='Barberscore API')
urlpatterns = [url('^$', lambda r: HttpResponseRedirect('admin/')), url(
    '^admin/', admin.site.urls), url('^api/', include('api.urls')), url(
    '^api-auth/', include('rest_framework.urls')), url('^schema/',
    schema_view), url('^docs/', include_docs_urls(title='Foobar',
    description='foo to the bar')), url('^robots.txt$', lambda r:
    HttpResponse("""User-agent: *
Disallow: /""", content_type='text/plain'))]
if settings.DEBUG:
    import debug_toolbar
    urlpatterns += [url('^__debug__/', include(debug_toolbar.urls))]

from rest_framework.documentation import include_docs_urls
from rest_framework.schemas import get_schema_view
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.http import HttpResponse, HttpResponseRedirect
schema_view = get_schema_view(title='Barberscore API')
urlpatterns = [url('^$', lambda r: HttpResponseRedirect('admin/')), url(
    '^admin/', admin.site.urls), url('^api/', include('api.urls')), url(
    '^api-auth/', include('rest_framework.urls')), url('^schema/',
    schema_view), url('^docs/', include_docs_urls(title='Foobar',
    description='foo to the bar')), url('^robots.txt$', lambda r:
    HttpResponse("""User-agent: *
Disallow: /""", content_type='text/plain'))]
if settings.DEBUG:
    import debug_toolbar
    urlpatterns += [url('^__debug__/', include(debug_toolbar.urls))]

# Django
# Third-Party
from rest_framework.documentation import include_docs_urls
from rest_framework.schemas import get_schema_view
from django.conf import settings
from django.conf.urls import (
    include,
    url,
)
from django.contrib import admin
from django.http import HttpResponse, HttpResponseRedirect

schema_view = get_schema_view(
    title='Barberscore API',
)

urlpatterns = [
    url(r'^$', lambda r: HttpResponseRedirect('admin/')),
    url(r'^admin/', admin.site.urls),
    url(r'^api/', include('api.urls')),
    url(r'^api-auth/', include('rest_framework.urls')),
    url(r'^schema/', schema_view),
    url(r'^docs/', include_docs_urls(title='Foobar', description='foo to the bar')),
    url(r'^robots.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /", content_type="text/plain")),
]

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