32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
from django.contrib import admin
|
|
from django.urls import path ,include
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
from django.views.generic import RedirectView
|
|
from django.urls import re_path
|
|
from django.views.static import serve
|
|
|
|
urlpatterns = [
|
|
path('admin/' , RedirectView.as_view(pattern_name="adminHome"), name='adminRedirect'),
|
|
path('dashboard/' , RedirectView.as_view(pattern_name="adminHome"), name='adminRedirect2'),
|
|
path('', include('adminapp.urls')),
|
|
path('', include('accounts.urls')),
|
|
path('', include('home.urls')),
|
|
path('', include('about.urls')),
|
|
path('', include('contact.urls')),
|
|
path('', include('service.urls')),
|
|
path('', include('project.urls')),
|
|
path('', include('custompage.urls')),
|
|
]
|
|
|
|
handler404 = 'accounts.views.error_404'
|
|
handler404 = 'adminapp.views.error_404'
|
|
handler404 = 'home.views.error_404'
|
|
handler404 = 'service.views.error_404'
|
|
handler404 = 'project.views.error_404'
|
|
handler404 = 'contact.views.error_404'
|
|
handler404 = 'about.views.error_404'
|
|
|
|
handler500 = 'adminapp.views.error_500'
|
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |