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
import sys | |
from django.core.management import BaseCommand | |
from django.conf.urls import RegexURLPattern, RegexURLResolver | |
from django.core import urlresolvers | |
def collect_urls(urls=None, namespace=None, prefix=None): | |
if urls is None: | |
urls = urlresolvers.get_resolver() | |
prefix = prefix or [] |