mirror of
https://github.com/lemeow125/Ivy-Backend.git
synced 2025-06-29 00:55:42 +08:00
Added accounts
This commit is contained in:
parent
9dfdc4aa2f
commit
dab99b17cf
12 changed files with 47 additions and 4 deletions
|
@ -38,8 +38,8 @@ INSTALLED_APPS = [
|
|||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'rest_framework',
|
||||
'rest_framework.authtoken',
|
||||
'djoser',
|
||||
'api',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
@ -124,3 +124,20 @@ STATIC_URL = 'static/'
|
|||
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
|
||||
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||
'rest_framework.authentication.TokenAuthentication',
|
||||
)
|
||||
}
|
||||
|
||||
DJOSER = {
|
||||
'SEND_ACTIVATION_EMAIL': True,
|
||||
'SEND_CONFIRMATION_EMAIL': True,
|
||||
'ACTIVATION_URL': 'activation/{uid}/{token}',
|
||||
}
|
||||
|
||||
EMAIL_HOST = 'sandbox.smtp.mailtrap.io'
|
||||
EMAIL_HOST_USER = '54ff6949e39105'
|
||||
EMAIL_HOST_PASSWORD = 'c59d3eaa05f98d'
|
||||
EMAIL_PORT = '2525'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue