Sitemap en https
This commit is contained in:
parent
58a8cca53b
commit
ede03acf14
@ -5,6 +5,7 @@ from .models import Category
|
|||||||
|
|
||||||
class StaticViewSitemap(sitemaps.Sitemap):
|
class StaticViewSitemap(sitemaps.Sitemap):
|
||||||
priority = 0.5
|
priority = 0.5
|
||||||
|
protocol = "https"
|
||||||
changefreq = "daily"
|
changefreq = "daily"
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
@ -15,6 +16,7 @@ class StaticViewSitemap(sitemaps.Sitemap):
|
|||||||
|
|
||||||
class HomeCategorySitemap(sitemaps.Sitemap):
|
class HomeCategorySitemap(sitemaps.Sitemap):
|
||||||
priority = 0.5
|
priority = 0.5
|
||||||
|
protocol = "https"
|
||||||
changefreq = "daily"
|
changefreq = "daily"
|
||||||
path = "home_category"
|
path = "home_category"
|
||||||
|
|
||||||
@ -27,12 +29,15 @@ class HomeCategorySitemap(sitemaps.Sitemap):
|
|||||||
|
|
||||||
class MonthCategorySitemap(HomeCategorySitemap):
|
class MonthCategorySitemap(HomeCategorySitemap):
|
||||||
priority = 0.3
|
priority = 0.3
|
||||||
|
protocol = "https"
|
||||||
path = "ce_mois_ci_category"
|
path = "ce_mois_ci_category"
|
||||||
|
|
||||||
class WeekCategorySitemap(HomeCategorySitemap):
|
class WeekCategorySitemap(HomeCategorySitemap):
|
||||||
priority = 0.4
|
priority = 0.4
|
||||||
|
protocol = "https"
|
||||||
path = "cette_semaine_category"
|
path = "cette_semaine_category"
|
||||||
|
|
||||||
class UpcomingCategorySitemap(HomeCategorySitemap):
|
class UpcomingCategorySitemap(HomeCategorySitemap):
|
||||||
priority = 0.4
|
priority = 0.4
|
||||||
|
protocol = "https"
|
||||||
path = "a_venir_category"
|
path = "a_venir_category"
|
||||||
|
@ -28,14 +28,14 @@ category_dict = {
|
|||||||
|
|
||||||
sitemaps = {
|
sitemaps = {
|
||||||
"static": StaticViewSitemap,
|
"static": StaticViewSitemap,
|
||||||
"events": GenericSitemap(event_dict, priority=1.0),
|
"events": GenericSitemap(event_dict, priority=1.0, protocol = "https"),
|
||||||
"places": GenericSitemap(place_dict, priority=0.6),
|
"places": GenericSitemap(place_dict, priority=0.6, protocol = "https"),
|
||||||
"categories": GenericSitemap(category_dict, priority=0.8),
|
"categories": GenericSitemap(category_dict, priority=0.8, protocol = "https"),
|
||||||
"home_categories": HomeCategorySitemap,
|
"home_categories": HomeCategorySitemap,
|
||||||
"upcoming_categories": UpcomingCategorySitemap,
|
"upcoming_categories": UpcomingCategorySitemap,
|
||||||
"week_categories": WeekCategorySitemap,
|
"week_categories": WeekCategorySitemap,
|
||||||
"month_categories": MonthCategorySitemap,
|
"month_categories": MonthCategorySitemap,
|
||||||
"organisations": GenericSitemap(organisation_dict, priority=0.2),
|
"organisations": GenericSitemap(organisation_dict, priority=0.2, protocol = "https"),
|
||||||
}
|
}
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user