Skip to content

Instantly share code, notes, and snippets.

@mvantellingen
Created November 22, 2016 09:58
Show Gist options
  • Save mvantellingen/d0a837dd4b9db74104aa52ff7e3d9ea8 to your computer and use it in GitHub Desktop.
Save mvantellingen/d0a837dd4b9db74104aa52ff7e3d9ea8 to your computer and use it in GitHub Desktop.
wagtail performance hack
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