Added clean redirects to the game
This commit is contained in:
parent
19c8ca3362
commit
53a4734cae
@ -1,13 +1,14 @@
|
||||
from django.urls import path, include
|
||||
from django.views.generic import RedirectView
|
||||
|
||||
from bloonsa_game.views import IndexView, TermsView, GameView, WIPView
|
||||
|
||||
app_name = "bloonsa_game"
|
||||
|
||||
urlpatterns = [
|
||||
path("", IndexView.as_view(), name="index"),
|
||||
path("", RedirectView.as_view(pattern_name="bloonsa_game:game", permanent=False), name="index"),
|
||||
path("game", GameView.as_view(), name="game"),
|
||||
path("game/<int:pk>", GameView.as_view(), name="gameSelect"),
|
||||
path("terms", TermsView.as_view(), name="terms"),
|
||||
path("contact", WIPView.as_view(), name="contact"),
|
||||
# path("terms", TermsView.as_view(), name="terms"),
|
||||
# path("contact", WIPView.as_view(), name="contact"),
|
||||
]
|
||||
|
||||
@ -17,14 +17,11 @@ from django.contrib import admin
|
||||
from django.urls import path, include, re_path
|
||||
from django.views.generic.base import RedirectView
|
||||
|
||||
crossdomain_view = RedirectView.as_view(url='/static/bloonsa_game/misc/crossdomain.xml', permanent=True)
|
||||
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path("", RedirectView.as_view(pattern_name="bloonsa_game:game", permanent=False), name="index"),
|
||||
path("admin/", admin.site.urls),
|
||||
path("bloonsa_api/", include("bloonsa_api.urls", namespace="bloonsa_api")),
|
||||
path("a/", include("bloonsa_game.urls", namespace="bloonsa_game")),
|
||||
path("users/", include("users.urls", namespace="users")),
|
||||
re_path(r'^crossdomain\.xml$', crossdomain_view)
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user