Commit 5e339f96 authored by Ciella Francisco's avatar Ciella Francisco 😵

Updated the project's settings and URLs to take into account media uploads from Event model

parent e1529106
......@@ -134,3 +134,6 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
LOGIN_REDIRECT_URL = "index"
LOGOUT_REDIRECT_URL = "index"
AUTH_USER_MODEL = "accounts.CustomUser"
MEDIA_ROOT = BASE_DIR/'media'
MEDIA_URL = '/media/'
\ No newline at end of file
......@@ -15,13 +15,17 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.conf import settings
from django.urls import path, include
from django.conf.urls.static import static
from django.views.generic.base import TemplateView
urlpatterns = [
path('admin/', admin.site.urls),
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("", include("home.urls"), name="index"),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment