Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_father when can i be on my own i have the hello world to see
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
father when can i be on my own i have the hello world to see
widget_father when can i be on my own i have the hello world to see
Commits
c46404ea
Verified
Commit
c46404ea
authored
May 16, 2022
by
Angelo Esteban
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added serving of static files in development
parent
2e31081f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
settings.py
..._i_be_on_my_own_i_have_the_hello_world_to_see/settings.py
+2
-0
urls.py
..._can_i_be_on_my_own_i_have_the_hello_world_to_see/urls.py
+4
-0
No files found.
widget_father_when_can_i_be_on_my_own_i_have_the_hello_world_to_see/settings.py
View file @
c46404ea
...
...
@@ -19,6 +19,8 @@ load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
MEDIA_ROOT
=
''
MEDIA_URL
=
''
# Quick-start development settings - unsuitable for production
...
...
widget_father_when_can_i_be_on_my_own_i_have_the_hello_world_to_see/urls.py
View file @
c46404ea
...
...
@@ -15,6 +15,8 @@ Including another URLconf
"""
from
django.contrib
import
admin
from
django.urls
import
path
,
include
from
django.conf.urls.static
import
static
from
django.conf
import
settings
urlpatterns
=
[
path
(
'homepage/'
,
include
(
"homepage.urls"
,
namespace
=
'homepage'
)),
...
...
@@ -24,3 +26,5 @@ urlpatterns = [
namespace
=
'announcement_board'
)),
path
(
'assignments/'
,
include
(
"assignments.urls"
,
namespace
=
'assignments'
)),
]
urlpatterns
+=
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