Skip to content
Snippets Groups Projects
urls.py 866 B
Newer Older
  • Learn to ignore specific revisions
  • from django.conf import settings
    
    Todd Dembrey's avatar
    Todd Dembrey committed
    from django.urls import include, path
    
    from two_factor.urls import urlpatterns as tf_urls
    
    
    Fredrik Jonsson's avatar
    Fredrik Jonsson committed
    from .utils import views
    from .users import urls as users_urls
    from .dashboard import urls as dashboard_urls
    
    
    from opentech.urls import base_urlpatterns
    
    Dan Braghis's avatar
    Dan Braghis committed
        path('apply/', include('opentech.apply.funds.urls', 'apply')),
    
        path('activity/', include('opentech.apply.activity.urls', 'activity')),
    
    Todd Dembrey's avatar
    Todd Dembrey committed
        path('dashboard/', include(dashboard_urls)),
    
    Todd Dembrey's avatar
    Todd Dembrey committed
        path('hijack/', include('hijack.urls', 'hijack')),
    
        path('', include(tf_urls, 'two_factor')),
    
    if settings.DEBUG:
        urlpatterns += [
            # Add views for testing 404 and 500 templates
            path('test404/', views.page_not_found),
        ]
    
    
    
    
    handler404 = 'opentech.apply.utils.views.page_not_found'