DRF_Template/backend/api/urls.py

18 lines
650 B
Python
Raw Normal View History

2024-01-06 12:27:41 +08:00
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
2024-01-06 12:13:39 +08:00
from django.urls import path, include
from config.settings import DEBUG, CLOUD, MEDIA_ROOT
2024-01-06 12:13:39 +08:00
urlpatterns = [
path('accounts/', include('accounts.urls')),
path('subscriptions/', include('subscriptions.urls')),
path('notifications/', include('notifications.urls')),
path('billing/', include('billing.urls')),
path('stripe/', include('payments.urls'))
2024-01-06 12:13:39 +08:00
]
# URLs for local development
if DEBUG and not CLOUD:
2024-01-06 12:13:39 +08:00
urlpatterns += staticfiles_urlpatterns()
urlpatterns += static(
'media/', document_root=MEDIA_ROOT)