Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
red_brick_board
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
1
Merge Requests
1
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
Ciella Francisco
red_brick_board
Commits
5e339f96
Commit
5e339f96
authored
Mar 26, 2024
by
Ciella Francisco
😵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the project's settings and URLs to take into account media uploads from Event model
parent
e1529106
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
settings.py
redbrickboard/redbrickboard/settings.py
+4
-1
urls.py
redbrickboard/redbrickboard/urls.py
+5
-1
No files found.
redbrickboard/redbrickboard/settings.py
View file @
5e339f96
...
@@ -134,3 +134,6 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
...
@@ -134,3 +134,6 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
LOGIN_REDIRECT_URL
=
"index"
LOGIN_REDIRECT_URL
=
"index"
LOGOUT_REDIRECT_URL
=
"index"
LOGOUT_REDIRECT_URL
=
"index"
AUTH_USER_MODEL
=
"accounts.CustomUser"
AUTH_USER_MODEL
=
"accounts.CustomUser"
MEDIA_ROOT
=
BASE_DIR
/
'media'
MEDIA_URL
=
'/media/'
\ No newline at end of file
redbrickboard/redbrickboard/urls.py
View file @
5e339f96
...
@@ -15,13 +15,17 @@ Including another URLconf
...
@@ -15,13 +15,17 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
"""
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.conf
import
settings
from
django.urls
import
path
,
include
from
django.urls
import
path
,
include
from
django.conf.urls.static
import
static
from
django.views.generic.base
import
TemplateView
from
django.views.generic.base
import
TemplateView
urlpatterns
=
[
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
"accounts/"
,
include
(
"accounts.urls"
),
name
=
"accounts"
),
path
(
"accounts/"
,
include
(
"accounts.urls"
),
name
=
"accounts"
),
path
(
"event_management/"
,
include
(
"event_management.urls"
,
namespace
=
"event_management"
)
),
path
(
"event_management/"
,
include
(
"event_management.urls"
),
name
=
'eventmanagement'
),
path
(
"eventcatalog/"
,
include
(
"eventcatalog.urls"
),
name
=
"eventcatalog"
),
path
(
"eventcatalog/"
,
include
(
"eventcatalog.urls"
),
name
=
"eventcatalog"
),
path
(
""
,
include
(
"home.urls"
),
name
=
"index"
),
path
(
""
,
include
(
"home.urls"
),
name
=
"index"
),
]
]
urlpatterns
+=
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
\ No newline at end of file
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