This repository has been archived on 2023-02-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-my-data/mydata/urls.py
Sybren A. Stüvel d9b48a6e90 Migrate from custom oauth module to blender-id-oauth-client
The blender-id-oauth-client project was actually born from the My Data
oauth module, so the database layout is pretty similar. However, since
migration with the Django migration system is hard to get right (because
of ordering issues, we'd need the blender-id-oauth-client migrations to
be dependent on MyData migrations, which would break compatibility with any
other project), some manual intervention is necessary; see the README for
this.
2018-11-06 11:52:31 +01:00

26 lines
1.0 KiB
Python

from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path
import mydata_main.views
urlpatterns = [
url(r'^', include('mydata_benchmarks.urls')),
path('admin/doc/', include('django.contrib.admindocs.urls')),
path('admin/', admin.site.urls),
path('oauth/', include('blender_id_oauth_client.urls', namespace='oauth')),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
handler400 = mydata_main.views.ErrorView.as_view(template_name='errors/400.html', status=400)
handler403 = mydata_main.views.ErrorView.as_view(template_name='errors/403.html', status=403)
handler404 = mydata_main.views.ErrorView.as_view(template_name='errors/404.html', status=404)
handler500 = mydata_main.views.ErrorView.as_view(template_name='errors/500.html', status=500)
if settings.DEBUG:
import debug_toolbar
urlpatterns = [
url(r'^__debug__/', include(debug_toolbar.urls)),
] + urlpatterns