Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4f79bde7
authored
Jul 17, 2019
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure token authentication
parent
04d2fa9b
Pipeline
#783
failed with stages
in 3 minutes 14 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
recircle/recircle/settings/base.py
+6
-0
tox.ini
+2
-0
No files found.
recircle/recircle/settings/base.py
View file @
4f79bde7
...
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
...
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
"django.contrib.messages"
,
"django.contrib.messages"
,
"django.contrib.staticfiles"
,
"django.contrib.staticfiles"
,
"rest_framework"
,
"rest_framework"
,
"rest_framework.authtoken"
,
"djoser"
,
"djoser"
,
"rest_framework_swagger"
,
"rest_framework_swagger"
,
"corsheaders"
,
"corsheaders"
,
...
@@ -106,6 +107,11 @@ AUTH_PASSWORD_VALIDATORS = [
...
@@ -106,6 +107,11 @@ AUTH_PASSWORD_VALIDATORS = [
{
"NAME"
:
"django.contrib.auth.password_validation.NumericPasswordValidator"
},
{
"NAME"
:
"django.contrib.auth.password_validation.NumericPasswordValidator"
},
]
]
REST_FRAMEWORK
=
{
'DEFAULT_AUTHENTICATION_CLASSES'
:
(
'rest_framework.authentication.TokenAuthentication'
,
),
}
# Internationalization
# Internationalization
# https://docs.djangoproject.com/en/2.1/topics/i18n/
# https://docs.djangoproject.com/en/2.1/topics/i18n/
...
...
tox.ini
View file @
4f79bde7
...
@@ -6,4 +6,6 @@ exclude =
...
@@ -6,4 +6,6 @@ exclude =
recircle/interface_openstack
recircle/interface_openstack
# No need to check migrations
# No need to check migrations
migrations
migrations
# Settings module
settings
max-line-length
=
100
max-line-length
=
100
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment