Source

django-cms-mycmsproject-toporojo / cms / test_utils / util / urls.py

1
2
3
4
5
6
7
# -*- coding: utf-8 -*-
from django.core.urlresolvers import clear_url_caches, set_urlconf


def set_urls(urlpatterns):
    clear_url_caches()
    set_urlconf(urlpatterns)