from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from .views import * from django.contrib.sitemaps.views import sitemap from .sitemaps import sitemaps urlpatterns = [ path('', index, name='home'), path('about/', about, name='about'), path('solutions/', solution, name='solution'), path('competence/', ability, name='ability'), path('recall/', recall, name='recall'), path('post//', show_post, name='post'), path('callback/', callback_request, name='callback'), path('admin/statistics/', statistics_view, name='statistics'), # Sitemap path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'), path('robots.txt', robots_txt, name='robots'), ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)