2025-02-11 16:47:30 +05:30
|
|
|
from django.conf import settings
|
|
|
|
from django.conf.urls.static import static
|
2025-01-20 05:02:25 +05:30
|
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
|
2025-02-11 16:47:30 +05:30
|
|
|
|
2025-01-20 05:02:25 +05:30
|
|
|
urlpatterns = [
|
2025-02-11 16:47:30 +05:30
|
|
|
path('', views.home, name='home'),
|
|
|
|
path('games/', views.games, name='games'),
|
|
|
|
path('games/<str:game>/', views.game_detail, name='game_detail'),
|
|
|
|
# path('active-servers/', views.active_servers_view, name='active-servers'),
|
|
|
|
# path('games/<str:game_name>/', views.game_servers_view, name='game-servers'),
|
|
|
|
]
|
|
|
|
|
|
|
|
if settings.DEBUG: # Only serve media files in development
|
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|