#!/usr/bin/env python
# -*- coding: utf-8 -*-

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


urlpatterns = [
    url(
        r'^api-auth/',
        include(
            'rest_framework.urls',
            namespace='rest_framework'
        )
    ),
    url(
        r'^oauth2/',
        include(
            'oauth2_provider.urls',
            namespace='oauth2_provider'
        )
    ),
    url(
        r'^admin/',
        include(admin.site.urls)
    ),
    url(
        r'^',
        include('social.apps.django_app.urls', namespace='social')
    ),
    url(
        r'^',
        include('qraz.frontend.urls', namespace='qraz')
    ),
]

if settings.DEBUG:
    urlpatterns += [
        url(r'^404$', 'qraz.frontend.views.handle404'),
    ]

handler404 = 'qraz.frontend.views.handle404'

#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

from qraz.frontend.views import handle404


urlpatterns = [
    url(
        r'^api-auth/',
        include(
            'rest_framework.urls',
            namespace='rest_framework'
        )
    ),
    url(
        r'^oauth2/',
        include(
            'oauth2_provider.urls',
            namespace='oauth2_provider'
        )
    ),
    url(
        r'^admin/',
        include(admin.site.urls)
    ),
    url(
        r'^',
        include('social.apps.django_app.urls', namespace='social')
    ),
    url(
        r'^',
        include('qraz.frontend.urls', namespace='qraz')
    ),
]

if settings.DEBUG:
    urlpatterns += [
        url(r'^404$', handle404),
    ]

handler404 = handle404

Fix deprecated view method passing.
Fix deprecated view method passing.
