gunicorn hosting works staticfiles rearranged
This commit is contained in:
1 parent
a2e9d8f879
commit
30bbdc4b17
48 files changed
+77
-42
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user