add authentication app

This commit is contained in:
j3d1 2023-06-15 01:16:52 +02:00
parent 5f68e12f82
commit 12191369b7
12 changed files with 882 additions and 0 deletions

View file

@ -46,6 +46,7 @@ INSTALLED_APPS = [
'rest_framework.authtoken',
'corsheaders',
'drf_yasg',
'authentication',
]
REST_FRAMEWORK = {
@ -109,6 +110,7 @@ DATABASES = {
}
}
AUTH_USER_MODEL = 'authentication.ToolshedUser'
# Password validation
# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators

View file

@ -30,5 +30,6 @@ schema_view = get_schema_view(
urlpatterns = [
path('djangoadmin/', admin.site.urls),
path('auth/', include('authentication.api')),
path('docs/', schema_view.with_ui('swagger', cache_timeout=0), name='api-docs'),
]