<filename>urlshort/urls.py<gh_stars>0
from django.conf.urls import url
from django.contrib import admin

from graphene_django.views import GraphQLView
from urlshort.views import redirect_view

urlpatterns = [
    url(r"^admin/", admin.site.urls),
    url(r"^graphql$", GraphQLView.as_view(graphiql=True)),
    url(r"^(?P<slug>\w{6})", redirect_view),
]
<filename>urlshort/urls.py<gh_stars>0
from django.conf.urls import url
from django.contrib import admin

from graphene_django.views import GraphQLView
from urlshort.views import redirect_view

urlpatterns = [
    url(r"^admin/", admin.site.urls),
    url(r"^graphql$", GraphQLView.as_view(graphiql=True)),
    url(r"^(?P<slug>\w{6})", redirect_view),
]