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
a6f2efcd
authored
Jun 05, 2020
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove rest swagger dependency, add static root to prod settings
parent
e624a8fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
recircle/recircle/settings/base.py
+0
-1
recircle/recircle/settings/production.py
+3
-2
recircle/recircle/urls.py
+0
-5
No files found.
recircle/recircle/settings/base.py
View file @
a6f2efcd
...
...
@@ -39,7 +39,6 @@ INSTALLED_APPS = [
"rest_framework"
,
"rest_framework.authtoken"
,
"djoser"
,
"rest_framework_swagger"
,
"corsheaders"
,
"guardian"
,
"django_nose"
,
...
...
recircle/recircle/settings/production.py
View file @
a6f2efcd
...
...
@@ -12,4 +12,6 @@ DATABASES = {
"USER"
:
os
.
getenv
(
"DATABASE_USER"
),
"PASSWORD"
:
os
.
getenv
(
"DATABASE_PASSWORD"
),
}
}
\ No newline at end of file
}
STATIC_ROOT
=
"/static/"
recircle/recircle/urls.py
View file @
a6f2efcd
...
...
@@ -15,10 +15,6 @@ Including another URLconf
"""
from
django.contrib
import
admin
from
django.urls
import
path
,
re_path
,
include
from
rest_framework_swagger.views
import
get_swagger_view
schema_view
=
get_swagger_view
(
title
=
"RECIRCLE API"
)
urlpatterns
=
[
path
(
"api/v1/"
,
include
(
"image.urls"
)),
...
...
@@ -27,5 +23,4 @@ urlpatterns = [
path
(
"admin/"
,
admin
.
site
.
urls
),
re_path
(
r"^auth/"
,
include
(
"djoser.urls"
)),
re_path
(
r"^auth/"
,
include
(
"djoser.urls.authtoken"
)),
path
(
r"swagger"
,
schema_view
),
]
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