gunicorn hosting works staticfiles rearranged

This commit is contained in:
xi-pinmping committed 2022-06-10 18:53:10 -04:00
1 parent a2e9d8f879
commit 30bbdc4b17
48 files changed
+77 -42

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
from django.contrib import sitemaps
from django.urls import reverse, path
from .views import home, about, robots_txt
from django.urls import reverse
#from .views import home, about, robots_txt
class StaticViewSitemap(sitemaps.Sitemap):
protocol = 'http'
@@ -8,7 +8,7 @@ class StaticViewSitemap(sitemaps.Sitemap):
changefreq='weekly'
def items(self):
return ['home', 'about', 'robots_txt']
return ['home', 'about']
def location(self, item):
return reverse(item)