Skip to content

Commit 65d60a0

Browse files
committed
Update on Profile for the User.
Update on Profile's of the User.
1 parent 20e0ebc commit 65d60a0

26 files changed

+216
-371
lines changed
236 Bytes
Binary file not shown.
245 Bytes
Binary file not shown.

Base_Master/settings.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@
4242
'firstapp',
4343
# External pacakages
4444
'crispy_forms',
45+
'import_export',
46+
'django_cleanup.apps.CleanupConfig',
4547
]
46-
48+
IMPORT_EXPORT_USE_TRANSACTIONS = True
4749
CRISPY_TEMPLATE_PACK = 'bootstrap4'
4850

4951
MIDDLEWARE = [
@@ -124,6 +126,8 @@
124126

125127
STATIC_URL = 'static/'
126128
STATICFILES_DIRS = [BASE_DIR / 'static']
129+
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
130+
MEDIA_URL = '/media/'
127131

128132
# Default primary key field type
129133
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
@@ -162,7 +166,7 @@
162166
"site_brand": "Brand Name",
163167

164168
# Logo to use for your site, must be present in static files, used for brand on top left
165-
"site_logo": "logo.png",
169+
"site_logo": "../static/login_styling/favicon.svg",
166170

167171
# Logo to use for your site, must be present in static files, used for login form logo (defaults to site_logo)
168172
"login_logo": None,
@@ -209,7 +213,7 @@
209213
# Related Modal #
210214
#################
211215
# Use modals instead of popups
212-
"related_modal_active": False,
216+
"related_modal_active": True,
213217

214218
#############
215219
# UI Tweaks #

Base_Master/urls.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
from django.urls import path,include, re_path
33
from django.contrib.auth.views import LoginView
44
from firstapp import views
5+
from django.conf import settings
6+
from django.conf.urls.static import static
57
urlpatterns = [
68
path('admin/', admin.site.urls),
79
path('accounts/', include('django.contrib.auth.urls')),
810
path('', LoginView.as_view(), name='login'),
911
path('home', views.home, name="home"),
1012
path('register/', views.signup_view, name="sign_up"),
1113
path('profile/', views.profile, name="profile"),
12-
path('update/<str:id>/', views.update, name="update"),
14+
path('update/', views.profile_update, name="update"),
1315
path('disable/<str:id>/', views.disable_user, name="disable_user"),
1416
path('theme', views.theme, name="theme"),
15-
]
17+
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

db.sqlite3

8 KB
Binary file not shown.
584 Bytes
Binary file not shown.
181 Bytes
Binary file not shown.
624 Bytes
Binary file not shown.
589 Bytes
Binary file not shown.
1.09 KB
Binary file not shown.

0 commit comments

Comments
 (0)