from django.apps import apps
from django.contrib import admin
from django.urls import include,path
from django.conf.urls.static import static
from django.conf import settings
from django.contrib.sitemaps import views
#from django.contrib.sitemaps.views import sitemap
from apps.sitemaps import base_sitemaps
urlpatterns = [
#path('admin/', admin.site.urls),
path('i18n/', include('django.conf.urls.i18n')),
# The Django admin is not officially supported; expect breakage.
# Nonetheless, it's often useful for debugging.
path('admin/', admin.site.urls),
path('catalogue/galeria/', include('galeria.urls')),
path('catalogue/contact/', include('contact.urls')),
path('catalogue/about/', include('about.urls')),
path('', include(apps.get_app_config('oscar').urls[0])),
#path("sitemap.xml", sitemap, {"sitemaps": sitemaps}, name="django.contrib.sitemaps.views.sitemap",)
# include a basic sitemap
path('sitemap.xml', views.index,
{'sitemaps': base_sitemaps}),
path('sitemap-<slug:section>.xml', views.sitemap,
{'sitemaps': base_sitemaps},
name='django.contrib.sitemaps.views.sitemap')
]
if settings.DEBUG:
# import debug_toolbar
# Server statics and uploaded media
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# Allow error pages to be tested
# urlpatterns += [
# path('403', handler403, {'exception': Exception()}),
# path('404', handler404, {'exception': Exception()}),
# path('500', handler500),
# path('__debug__/', include(debug_toolbar.urls)),
# ]
Any hints would be appreciated.
All the best
Ewa
--
https://github.com/django-oscar/django-oscar
http://django-oscar.readthedocs.org/en/latest/
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/django-oscar/E974B793-1A19-47C2-9FF9-C76D1E770B56%40o2.pl.