Hi, try two simple checks. The first is to check what URLs are in your
sitemap. The second is to print the URLs from urls.py.

Il dom 10 ago 2025, 17:48 Ewa Adamus <e_ada...@o2.pl> ha scritto:

> Hi there,
> Maybe someone had a similar problem.
> After Google indexed my website. My root url is duplicated in the browser.
> So instead: ‘www.pasiekanadjeziorem.pl’ it is:
> 'https://www.pasiekanadjeziorem.pl/www.pasiekanadjeziorem.pl’.
> My project (config) urls:
>
> 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+unsubscr...@googlegroups.com.
> To view this discussion, visit
> https://groups.google.com/d/msgid/django-oscar/E974B793-1A19-47C2-9FF9-C76D1E770B56%40o2.pl
> <https://groups.google.com/d/msgid/django-oscar/E974B793-1A19-47C2-9FF9-C76D1E770B56%40o2.pl?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion, visit 
https://groups.google.com/d/msgid/django-oscar/CAEjVuhcB14dmjVw9MyrmZ_UqBqn1Aegh81XCGHRdeWiwVWaTjg%40mail.gmail.com.

Reply via email to