Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group 6
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patricia Isabella Nava
widget_group 6
Commits
738063c2
Commit
738063c2
authored
May 26, 2022
by
Patricia Isabella Nava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: configure media upload settings
parent
aa5cfd9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
settings.py
widget_group_6/widget_group_6/settings.py
+7
-0
urls.py
widget_group_6/widget_group_6/urls.py
+4
-1
No files found.
widget_group_6/widget_group_6/settings.py
View file @
738063c2
...
...
@@ -131,3 +131,10 @@ STATIC_URL = '/static/'
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD
=
'django.db.models.BigAutoField'
MEDIA_URL
=
'/media/'
MEDIA_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'media'
)
STATICFILES_DIRS
=
(
os
.
path
.
join
(
BASE_DIR
,
'static'
),
)
\ No newline at end of file
widget_group_6/widget_group_6/urls.py
View file @
738063c2
...
...
@@ -15,6 +15,8 @@ Including another URLconf
"""
from
django.contrib
import
admin
from
django.urls
import
include
,
path
from
django.conf
import
settings
from
django.conf.urls.static
import
static
urlpatterns
=
[
path
(
'assignments/'
,
include
(
'assignments.urls'
,
namespace
=
"assignments"
)),
...
...
@@ -22,4 +24,5 @@ urlpatterns = [
path
(
"homepage/"
,
include
(
'homepage.urls'
,
namespace
=
"homepage"
)),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'announcements/'
,
include
(
'announcements.urls'
,
namespace
=
"announcements"
)),
]
]
+
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
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