Skip to content
Snippets Groups Projects
Commit 55b53658 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Use set_urlconf() to set urlconf sice we not are in a proper request.

parent e056b806
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ from django.contrib.messages.storage.fallback import FallbackStorage
from django.core.management.base import BaseCommand
from django.http import HttpRequest
from django.utils import timezone
from django.urls import set_urlconf
from opentech.apply.activity.messaging import MESSAGES, messenger
from opentech.apply.home.models import ApplyHomePage
from opentech.apply.projects.models import Project
......@@ -19,6 +19,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
site = ApplyHomePage.objects.first().get_site()
set_urlconf('opentech.apply.urls')
# Mock a HTTPRequest in order to pass the site settings into the
# templates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment