Pratyush Desai fc6593329b
Redirect to game_detail
The redirect works now. So if you click on a game,
 it wilk take you there

Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
2025-02-11 19:38:01 +05:30

16 lines
612 B
Python

from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('games/', views.games, name='games'),
path('games/<str:game_name>/', 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)