Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

soul4code
Copy link

No description provided.

@soul4code soul4code changed the title [fix] Use mocked site when get static sitemaps url [fix] Use mocked site when get static sitemaps url, Sep 14, 2018
@soul4code soul4code changed the title [fix] Use mocked site when get static sitemaps url, [feature] Allow multiple sites for sitemaps Sep 14, 2018
@xaralis
Copy link
Owner

xaralis commented Sep 22, 2018

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 + '/'
Copy link
Owner

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)
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants