mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Began development of custom user action backend, and basic templating.
This commit is contained in:
@@ -52,7 +52,7 @@ INSTALLED_APPS = [
|
||||
"interface.templatetags",
|
||||
"debug_toolbar",
|
||||
]
|
||||
|
||||
AUTH_USER_MODEL = "interface.CustomUser"
|
||||
MIDDLEWARE = [
|
||||
"django.middleware.security.SecurityMiddleware",
|
||||
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||
@@ -135,6 +135,6 @@ USE_TZ = True
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/2.2/howto/static-files/
|
||||
|
||||
LOGIN_REDIRECT_URL = 'home'
|
||||
STATIC_URL = "/static/"
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, "interface/static/")
|
||||
|
||||
@@ -16,12 +16,13 @@ Including another URLconf
|
||||
from django.conf import settings
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path, re_path
|
||||
from django.contrib.auth import views as auth_views
|
||||
from interface import views
|
||||
|
||||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
path("", views.index, name="index"),
|
||||
path("home", views.home, name="index"),
|
||||
path("home", views.home, name="home"),
|
||||
path("sort/<_order>", views.index, name="index"),
|
||||
path("flip_sort/<_order>", views.flip_sort, name="index"),
|
||||
path("download/<pk>", views.download, name="download"),
|
||||
@@ -35,7 +36,30 @@ urlpatterns = [
|
||||
path("search/", views.index, name="search"),
|
||||
path("search/<query>", views.index, name="search"),
|
||||
path("search/<query>/<_set>", views.index, name="search"),
|
||||
path("show_collection/<_collection>/<_colset>", views.show_collection, name="show_collection",),
|
||||
path("show_collection/<_collection>/<_colset>", views.show_collection, name="show_collection"),
|
||||
path("signup", views.signup, name="signup"),
|
||||
path("login", views.userlogin, name="login"),
|
||||
path('logout', views.userlogout, name='logout'),
|
||||
path(
|
||||
'admin/password_reset/',
|
||||
auth_views.PasswordResetView.as_view(),
|
||||
name='admin_password_reset',
|
||||
),
|
||||
path(
|
||||
'admin/password_reset/done/',
|
||||
auth_views.PasswordResetDoneView.as_view(),
|
||||
name='password_reset_done',
|
||||
),
|
||||
path(
|
||||
'reset/<uidb64>/<token>/',
|
||||
auth_views.PasswordResetConfirmView.as_view(),
|
||||
name='password_reset_confirm',
|
||||
),
|
||||
path(
|
||||
'reset/done/',
|
||||
auth_views.PasswordResetCompleteView.as_view(),
|
||||
name='password_reset_complete',
|
||||
),
|
||||
]
|
||||
if settings.DEBUG:
|
||||
import debug_toolbar
|
||||
|
||||
Reference in New Issue
Block a user