Friday, August 31, 2012

Re: How sitemaps used in the Django

Hey Mugdha,

Have you had a look at django sitemap framework ?

1. add django.contrib.sitemaps to INSTALLED_APPS and then syncdb
2. add (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}) to urls.py
3. Create a sitemap class according to your app.

--
Thanks & Regards
----------------------------

Amyth [Admin - Techstricks]
Email - aroras.official@gmail.com, admin@techstricks.com
Twitter - @a_myth_________
http://techstricks.com/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment