Final touches before deployment, celery installed
This commit is contained in:
1 parent
544f5324e0
commit
a2e9d8f879
1212 files changed
+133115
-74
No files matched your search
@@ -0,0 +1,14 @@
|
||||
from django.contrib import sitemaps
|
||||
from django.urls import reverse, path
|
||||
from .views import home, about, robots_txt
|
||||
|
||||
class StaticViewSitemap(sitemaps.Sitemap):
|
||||
protocol = 'http'
|
||||
priority=.5,
|
||||
changefreq='weekly'
|
||||
|
||||
def items(self):
|
||||
return ['home', 'about', 'robots_txt']
|
||||
|
||||
def location(self, item):
|
||||
return reverse(item)
|
||||
Reference in new issue
Block a user