Created
November 22, 2016 09:58
-
-
Save mvantellingen/d0a837dd4b9db74104aa52ff7e3d9ea8 to your computer and use it in GitHub Desktop.
wagtail performance hack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.apps import AppConfig | |
class CMSConfig(AppConfig): | |
name = 'myproj.apps.cms' | |
def ready(self): | |
from wagtail.wagtailcore.models import Site | |
root_paths = Site.get_site_root_paths() | |
Site.get_site_root_paths = lambda: root_paths |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment