Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Use glamkit's urls for tests, not just icekit's.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Turner committed Oct 19, 2016
1 parent 024c79e commit 9ed4823
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion icekit/project/settings/glamkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
'icekit_events.page_types.eventlistingfordate',
)

ROOT_URLCONF = "icekit.project.glamkit_urls"
# This settings file is loaded after calculated.py, so we don't want to
# overwrite the urlconf if it is set to the test urls.
if not 'test' in ROOT_URLCONF:
ROOT_URLCONF = "icekit.project.glamkit_urls"

# ICEKIT PRESS RELEASES #######################################################

Expand Down
5 changes: 2 additions & 3 deletions icekit/tests/urls.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from django.conf.urls import patterns, url, include

from icekit.project.urls import urlpatterns as icekit_patterns
from icekit.project.glamkit_urls import urlpatterns as glamkit_patterns

urlpatterns = patterns(
'',
url(r'^404/$', 'icekit.response_pages.views.page_not_found', name='404'),
url(r'^500/$', 'icekit.response_pages.views.server_error', name='500'),
url(r'^', include(icekit_patterns)),
url(r'^', include(glamkit_patterns)),
)

0 comments on commit 9ed4823

Please sign in to comment.