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