Thursday, November 24, 2016

Django FlatPageSitemap

Hi!

i use https://docs.djangoproject.com/en/1.10/ref/contrib/flatpages/#installation
Follow step 1,2,3

I add:
url(r'^pages/', include('django.contrib.flatpages.urls')),
to base urlpatterns



And add test page in admin:


In sitemap url http://mysite.ru/about/, but i need http://mysite.ru/pages/about/



How to fix?
Set url /pages/about/ for test page in admin?

Sorry for my English!
Please reply! Thanks!



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c2e1fb0c-21be-49ca-a296-8ed54782a02e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment