fix: set LOGIN_URL for drf-yasg
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m59s
CI/CD Pipeline / Run Tests (push) Successful in 2m9s
CI/CD Pipeline / Build Docker Images (push) Failing after 3s
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m59s
CI/CD Pipeline / Run Tests (push) Successful in 2m9s
CI/CD Pipeline / Build Docker Images (push) Failing after 3s
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
This commit is contained in:
@@ -275,6 +275,9 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
||||
# Custom user model
|
||||
AUTH_USER_MODEL = "user.User"
|
||||
|
||||
# Login URL for drf-yasg and DRF browsable API
|
||||
LOGIN_URL = "/auth/login/"
|
||||
|
||||
# REST Framework settings
|
||||
REST_FRAMEWORK = {
|
||||
"DEFAULT_AUTHENTICATION_CLASSES": [
|
||||
|
||||
Reference in New Issue
Block a user