mirror of
https://github.com/viewflow/viewflow.git
synced 2026-03-13 10:32:34 +08:00
21 lines
588 B
Python
21 lines
588 B
Python
from .celery import app as celery_app
|
|
|
|
__all__ = ("celery_app",)
|
|
|
|
|
|
def print_urls():
|
|
"""For debug purpose"""
|
|
|
|
def list_urls(urls, parent_pattern=""):
|
|
for entry in urls:
|
|
full_pattern = parent_pattern + entry.pattern.regex.pattern
|
|
if hasattr(entry, "url_patterns"):
|
|
list_urls(entry.url_patterns, full_pattern)
|
|
else:
|
|
print(f"{entry.name or '<unnamed>'}: {full_pattern}")
|
|
|
|
from django.conf import settings
|
|
|
|
urlconf = __import__(settings.ROOT_URLCONF, {}, {}, [""])
|
|
list_urls(urlconf.urlpatterns)
|