Hello, I would like to display an index page at the root url. ( www.site.com) However the root url is redirected to catalogue ( www.site.com/catalogue)
I created an urlpattern for this like so(yellow marked) in the main projec folder urls.py file: urlpatterns = [ url(r'^$', views.home, name ='home'), path('bem-estar/', include('myblog.urls')), path('ckeditor/', include('ckeditor_uploader.urls')), path('i18n/', include('django.conf.urls.i18n')), # > Django-2.0 path('admin/', admin.site.urls), # > Django-2.0 path('', include(apps.get_app_config('oscar').urls[0])), # > Django-2.0 url(r'^sitemap\.xml$', views.index, {'sitemaps': base_sitemaps}), url(r'^sitemap-(?P<section>.+)\.xml$', views.sitemap, {'sitemaps': base_sitemaps}, name='django.contrib.sitemaps.views.sitemap'), ]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) but I am getting this error: url(r'^$', views.home, name ='home'), AttributeError: module 'django.contrib.sitemaps.views' has no attribute 'home' what could be happening? -- https://github.com/django-oscar/django-oscar http://django-oscar.readthedocs.org/en/latest/ https://twitter.com/django_oscar --- 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+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/9e3ca2b3-c909-44ee-9672-a34612ec51f1%40googlegroups.com.