Skip to content

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.

# 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?

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