just-work / django-sitemap-generate Goto Github PK
View Code? Open in Web Editor NEWBackground sitemap generation for Django
License: MIT License
Background sitemap generation for Django
License: MIT License
While trying to generate sitemap an error has occurred
>>>generator = SitemapGenerator(sitemaps=sitemaps)
>>>generator.generate()
File "/usr/local/lib/python3.8/site-packages/sitemap_generate/generator.py", line 110, in generate
index_content = self.fetch_content(url)
File "/usr/local/lib/python3.8/site-packages/sitemap_generate/generator.py", line 96, in fetch_content
return self.recorder.record(url)
File "/usr/local/lib/python3.8/site-packages/sitemap_generate/generator.py", line 59, in record
content = b''.join(self.wsgi(environ, self._start_response))
File "/usr/local/lib/python3.8/site-packages/raven/middleware.py", line 98, in __call__
self.client.http_context(self.get_http_context(environ))
File "/usr/local/lib/python3.8/site-packages/raven/middleware.py", line 106, in get_http_context
'url': get_current_url(environ, strip_querystring=True),
File "/usr/local/lib/python3.8/site-packages/raven/utils/wsgi.py", line 81, in get_current_url
tmp = [environ['wsgi.url_scheme'], '://', get_host(environ)]
KeyError: 'wsgi.url_scheme'
type: bug
version: 0.4.0
description:
storage = storage or defaults.SITEMAP_STORAGE
self.storage = import_string(storage)
SITEMAP_STORAGE = 'testproject.testapp.storage.SitemapStorage'
exists() missing 1 required positional argument: 'name'
because the storage is never initialized
The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.
What should I do to make it work? Very poor usage description :(
Hi ๐,
I just installed the sitemap generator and works fine it generates the sitemaps and saves it to my storage backend. In my case that is amazon s3. But when i load the sitemap it is still served using the database. I know that because it is more up to date then the sitemap stored on s3.
In the readme there is a nginx config example but that does not apply when using 3s or any other storage backend.
Is there a easy way to get it to serve the sitemaps from s3?
The project is limited to one site host given by environment variable SITEMAP_HOST.
In accord with sites framework, it allows to have many domains. It would be awesome to create a sitemap index by domain saved in sites model instead of redefine environment variable for each one.
Any plans on this? is there something that could be done to help?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.