-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Allow multiple sites for sitemaps #65
base: master
Are you sure you want to change the base?
Conversation
Hi, this looks awsome! However, I need you to update README as well, please mention how to use this new stuff. Once that is provided, I will gladly merge this. |
@@ -71,8 +77,7 @@ def get_url(): | |||
elif settings.STATIC_URL.startswith('/'): | |||
# If STATIC_URL starts with '/', it is probably a relative URL to the | |||
# current domain so we append STATIC_URL. | |||
from django.contrib.sites.models import Site | |||
_url = Site.objects.get_current().domain + settings.STATIC_URL | |||
_url = site.domain + settings.STATIC_URL + site.domain + '/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks weird. Why is site.domain contained twice?
@@ -37,8 +42,9 @@ | |||
# Storage class to use. | |||
STORAGE_CLASS = getattr(settings, 'STATICSITEMAPS_STORAGE', 'django.core.files.storage.FileSystemStorage') | |||
|
|||
# How often should the celery task be run. | |||
CELERY_TASK_REPETITION = getattr(settings, 'STATICSITEMAPS_REFRESH_AFTER', 60) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this backwards compatible somehow instead of hard removal?
No description provided.