Djoser simple install
This commit is contained in:
parent
437a739c89
commit
aa8333cd64
|
|
@ -42,6 +42,10 @@ SHARED_APPS = (
|
||||||
|
|
||||||
# everything below here is optional
|
# everything below here is optional
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
|
'rest_framework',
|
||||||
|
'rest_framework.authtoken',
|
||||||
|
'djoser',
|
||||||
|
|
||||||
'django.contrib.sessions',
|
'django.contrib.sessions',
|
||||||
'django.contrib.sites',
|
'django.contrib.sites',
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
|
|
@ -133,6 +137,17 @@ AUTH_PASSWORD_VALIDATORS = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
REST_FRAMEWORK = {
|
||||||
|
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
|
||||||
|
"DEFAULT_AUTHENTICATION_CLASSES": (
|
||||||
|
"rest_framework_simplejwt.authentication.JWTAuthentication",
|
||||||
|
"rest_framework.authentication.TokenAuthentication",
|
||||||
|
),
|
||||||
|
}
|
||||||
|
|
||||||
|
SIMPLE_JWT = {
|
||||||
|
'AUTH_HEADER_TYPES': ('JWT',),
|
||||||
|
}
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,8 @@ urlpatterns = [
|
||||||
path('jet/', include('jet.urls', 'jet')), # Django JET URLS
|
path('jet/', include('jet.urls', 'jet')), # Django JET URLS
|
||||||
re_path(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
|
re_path(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
|
||||||
path('admin/', public_admin_site.urls, name="public_admin_url"),
|
path('admin/', public_admin_site.urls, name="public_admin_url"),
|
||||||
|
re_path(r'^auth/', include('djoser.urls')),
|
||||||
|
|
||||||
path('', include('MetaBillet.urls')),
|
path('', include('MetaBillet.urls')),
|
||||||
# path('admin/', admin.site.urls, name="public_admin_url"),
|
# path('admin/', admin.site.urls, name="public_admin_url"),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ urlpatterns = [
|
||||||
path('jet/', include('jet.urls', 'jet')), # Django JET URLS
|
path('jet/', include('jet.urls', 'jet')), # Django JET URLS
|
||||||
re_path(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
|
re_path(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
|
||||||
path('admin/', admin.site.urls, name="public_admin_url"),
|
path('admin/', admin.site.urls, name="public_admin_url"),
|
||||||
|
|
||||||
|
re_path(r'^auth/', include('djoser.urls')),
|
||||||
|
re_path(r'^auth/', include('djoser.urls.authtoken')),
|
||||||
|
|
||||||
path('', include('BaseBillet.urls')),
|
path('', include('BaseBillet.urls')),
|
||||||
|
|
||||||
# path('admin/', admin.site.urls, name="public_admin_url"),
|
# path('admin/', admin.site.urls, name="public_admin_url"),
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ RUN pip install django-tenants
|
||||||
RUN pip install mollie-api-python
|
RUN pip install mollie-api-python
|
||||||
RUN pip install markdown # Markdown support for the browsable API.
|
RUN pip install markdown # Markdown support for the browsable API.
|
||||||
RUN pip install django-filter # Filtering support
|
RUN pip install django-filter # Filtering support
|
||||||
|
RUN pip install djoser
|
||||||
|
RUN pip install djangorestframework_simplejwt
|
||||||
|
RUN pip install social-auth-app-django
|
||||||
|
|
||||||
|
|
||||||
## PYTHON FOR DEV
|
## PYTHON FOR DEV
|
||||||
RUN pip install ipython
|
RUN pip install ipython
|
||||||
|
|
@ -50,8 +54,7 @@ RUN apt-get install -y --no-install-recommends postgresql-client
|
||||||
# RUN pip install django-stdimage
|
# RUN pip install django-stdimage
|
||||||
# RUN pip install django-crispy-forms
|
# RUN pip install django-crispy-forms
|
||||||
# RUN pip install reportlab
|
# RUN pip install reportlab
|
||||||
# RUN pip install -U djoser
|
|
||||||
# RUN pip install -U djangorestframework_simplejwt
|
|
||||||
# RUN pip install -U social-auth-app-django
|
# RUN pip install -U social-auth-app-django
|
||||||
# RUN pip install -U django-templated-mail
|
# RUN pip install -U django-templated-mail
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue