django-fritzconnection_ynh/conf/urls.py

21 lines
459 B
Python
Raw Permalink Normal View History

"""
urls.py
~~~~~~~
"""
2022-04-02 17:44:57 +02:00
from django.conf import settings
from django.urls import include, path
2024-03-28 22:18:52 +01:00
if settings.PATH:
# settings.PATH is the $YNH_APP_ARG_PATH
# Prefix all urls with "PATH":
2022-04-02 17:44:57 +02:00
urlpatterns = [
2024-03-28 22:18:52 +01:00
path(f'{settings.PATH}/', include('djfritz_project.urls')),
2022-04-02 17:44:57 +02:00
]
else:
# Installed to domain root, without a path prefix
# Just use the default project urls.py
from djfritz_project.urls import urlpatterns # noqa