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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
recircle/recircle/settings/base.py
+6
-0
tox.ini
+3
-2
No files found.
recircle/recircle/settings/base.py
View file @
4f79bde7
...
...
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
"django.contrib.messages"
,
"django.contrib.staticfiles"
,
"rest_framework"
,
"rest_framework.authtoken"
,
"djoser"
,
"rest_framework_swagger"
,
"corsheaders"
,
...
...
@@ -106,6 +107,11 @@ AUTH_PASSWORD_VALIDATORS = [
{
"NAME"
:
"django.contrib.auth.password_validation.NumericPasswordValidator"
},
]
REST_FRAMEWORK
=
{
'DEFAULT_AUTHENTICATION_CLASSES'
:
(
'rest_framework.authentication.TokenAuthentication'
,
),
}
# Internationalization
# https://docs.djangoproject.com/en/2.1/topics/i18n/
...
...
tox.ini
View file @
4f79bde7
...
...
@@ -6,4 +6,6 @@ exclude =
recircle/interface_openstack
# No need to check migrations
migrations
max-line-length
=
100
\ No newline at end of file
# Settings module
settings
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