16 lines
531 B
Python
16 lines
531 B
Python
# university_ats/urls.py - Clean URL version
|
|
from django.contrib import admin
|
|
from django.urls import path, include
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
|
|
urlpatterns = [
|
|
path('admin/', admin.site.urls),
|
|
path('', include('jobs.urls')), # Jobs app handles root URL
|
|
path('applicant/', include('applicant.urls')), # Applicant app URLs
|
|
]
|
|
|
|
# ONLY SERVE MEDIA FILES IN DEVELOPMENT
|
|
if settings.DEBUG:
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
|
|