Django 1.11.x Documentationemails • Syndication feeds (RSS/Atom) • Pagination • Messages framework • Serialization • Sessions • Sitemaps • Static files management 4 Chapter 1. Django documentation Django Documentation, Release 1.11 ugettext_lazy as _ from about import views as about_views from news import views as news_views from sitemaps.views import sitemap urlpatterns = [ url(r'^sitemap\.xml$', sitemap, name='sitemap-xml'), ] news_patterns get_flatpages '/about/' for someuser as about_pages %} Integrating with django.contrib.sitemaps class FlatPageSitemap The sitemaps.FlatPageSitemap class looks at all publicly visible flatpages defined for the current0 码力 | 1878 页 | 6.40 MB | 2 年前3
django cms 2.2.x Documentation2.1 documentation » previous | next | modules | index ### 2. Sitemap Guide #### 2.1. Sitemap Sitemaps are XML files used by Google to index your website by using their Webmaster Tools and telling them #### 2.2. Configuration • Add Django.contrib.sitemaps [http://readthedocs.org/docs/django/en/latest/ref/contrib/sitemaps.html#module- django.contrib.sitemaps] to your project's INSTALLED_APPS [http://readthedocs setting. • Add from cms.sitemaps import CMSSitemap to the top of your main urls.py. • Add url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': {'cmspaces':0 码力 | 105 页 | 679.29 KB | 1 年前3
Django 2.2.x Documentationframework admin auth contenttypes flatpages gis humanize messages postgres redirects sessions sites sitemaps syndication Other add-ons Cross Site Request Forgery protection How to use it Rejected requests Sending emails Syndication feeds (RSS/Atom) Pagination Messages framework Serialization Sessions Sitemaps Static files management Data validation Other core functionalities Learn about some other core functionalities gettext_lazy as _ from about import views as about_views from news import views as news_views from sitemaps.views import sitemap urlpatterns = [ path('sitemap.xml', sitemap, name='sitemap-xml'),0 码力 | 2915 页 | 2.83 MB | 2 年前3
Django CMS 2.1.x Documentation• 2. Sitemap Guide • 2.1. Sitemap • 2.2. Configuration • 2.3. Django.contrib.sitemaps • 3. Templatetags • 3.1. placeholder • 3.2. show_placeholder • 3.3. show_uncached_placeholder display a language chooser. django cms 2.1.5 documentation » ### 2. Sitemap Guide #### 2.1. Sitemap Sitemaps are XML files used by Google to index your website by using their Webmaster Tools and telling them contrib.sitemaps to your project's INSTALLED_APPS setting. Add from cms.sitemaps import CMSSitemap to the top of your main urls.py. Add url(r'^sitemap.xml$', 'django.contrib.sitemaps.views0 码力 | 81 页 | 554.09 KB | 1 年前3
Django 2.0.x Documentationframework admin auth contenttypes flatpages gis humanize messages postgres redirects sessions sites sitemaps syndication Other add-ons Cross Site Request Forgery protection How to use it Rejected requests Sending emails Syndication feeds (RSS/Atom) Pagination Messages framework Serialization Sessions Sitemaps Static files management Data validation Other core functionalities Learn about some other core functionalities gettext_lazy as _ from about import views as about_views from news import views as news_views from sitemaps.views import sitemap urlpatterns = [ path('sitemap.xml', sitemap, name='sitemap-xml'),0 码力 | 2746 页 | 2.67 MB | 2 年前3
Django 1.10.x Documentationframework admin auth contenttypes flatpages gis humanize messages postgres redirects sessions sites sitemaps syndication Other add-ons Cross Site Request Forgery protection How to use it Rejected requests Sending emails Syndication feeds (RSS/Atom) Pagination Messages framework Serialization Sessions Sitemaps Static files management Data validation Other core functionalities Learn about some other core functionalities ugettext_lazy as _ from about import views as about_views from news import views as news_views from sitemaps.views import sitemap urlpatterns = [ url(r'^sitemap\.xml$', sitemap, name='sitemap-xml')0 码力 | 2538 页 | 2.59 MB | 2 年前3
Django 4.2.x Documentationframework admin auth contenttypes flatpages gis humanize messages postgres redirects sessions sites sitemaps syndication Other add-ons Cross Site Request Forgery protection How it works Limitations Utilities Sending emails Syndication feeds (RSS/Atom) Pagination Messages framework Serialization Sessions Sitemaps Static files management Data validation Other core functionalities Learn about some other core gettext_lazy as _ from about import views as about_views from news import views as news_views from sitemaps.views import sitemap urlpatterns = [ path("sitemap.xml", sitemap, name="sitemap-xml"),0 码力 | 3305 页 | 3.16 MB | 2 年前3
Django 2.0.x Documentationemails • Syndication feeds (RSS/Atom) • Pagination • Messages framework • Serialization • Sessions • Sitemaps • Static files management • Data validation 1.15 Other core functionalities Learn about some other gettext_lazy as _ from about import views as about_views from news import views as news_views from sitemaps.views import sitemap urlpatterns = [ path('sitemap.xml', sitemap, name='sitemap-xml'), ] news_patterns get_flatpages '/about/' for someuser as about_pages %} Integrating with django.contrib.sitemaps class FlatPageSitemap The sitemaps.FlatPageSitemap class looks at all publicly visible flatpages defined for the current0 码力 | 1880 页 | 6.41 MB | 2 年前3
Django CMS 2.4.x DocumentationCopyright 2009, Patrick Lauber. Created using Sphinx 1.3.5. ### 2. Sitemap Guide #### 2.1. Sitemap Sitemaps are XML files used by Google to index your website by using their Webmaster Tools and telling them #### 2.2. Configuration • Add Django.contrib.sitemaps [http://readthedocs.org/docs/django/en/latest/ref/contrib/sitemaps.html#module- django.contrib.sitemaps] to your project's INSTALLED_APPS [http://readthedocs setting. • Add from cms.sitemaps import CMSSitemap to the top of your main urls.py. • Add url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': {'cmspaces':0 码力 | 156 页 | 727.78 KB | 1 年前3
Scrapy 0.24 Documentationerrors during the scraping process. Support for crawling based on URLs discovered through Sitemaps [http://www.sitemaps.org] A caching DNS resolver What’s next? The next obvious steps are for you to download scraping cases, like following all links on a site based on certain rules, crawling from Sitemaps [http://www.sitemaps.org], or parsing a XML/CSV feed. For the examples used in the following spiders, we’ll itertag attribute. Example: class YourSpider(XMLFeedSpider): namespaces = [('n', 'http://www.sitemaps.org/schemas/sitemap/0.9')] itertag = 'n:url' # ... Apart from these new attributes, this0 码力 | 298 页 | 544.11 KB | 2 年前3
共 409 条
- 1
- 2
- 3
- 4
- 5
- 6
- 41
相关搜索词
messages frameworksecurity releasesserializationsessionssitemapsDjango CMSInstallationConfigurationPluginsSekizaiCheckConstraintUniqueConstraintModel validationDjango ORMSessionMiddlewareContributingDjangorelease notesdocumentationPythonframeworkDjango 1.10安全漏洞弃用功能新功能开发人员Django 4.2弃用特性长期支持版本Python兼容性Sphinx贡献指南版本发布文档编写依赖项版本要求迁移插件注册Scrapy爬虫架构组件扩展













