mirror of
https://github.com/bratusev07/skb-market.git
synced 2026-12-05 05:09:44 +00:00
feat: auth, role and moderation logic added
This commit is contained in:
1 parent
1212dca845
commit
36b1341a10
14 files changed
+821
-175
No files matched your search
@@ -20,10 +20,18 @@ from django.urls import include
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib.auth import views as auth_views
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('', include('apps.games.urls')),
|
||||
path("login/", auth_views.LoginView.as_view(
|
||||
template_name="games/login.html",
|
||||
redirect_authenticated_user=True,
|
||||
),
|
||||
name="login"
|
||||
),
|
||||
path("logout/",auth_views.LogoutView.as_view(next_page="/"), name="logout"),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
|
||||
Reference in new issue
Block a user