diff --git a/medical_prescription/medical_prescription/settings.py b/medical_prescription/medical_prescription/settings.py index a1f485af..94b7228f 100644 --- a/medical_prescription/medical_prescription/settings.py +++ b/medical_prescription/medical_prescription/settings.py @@ -192,3 +192,12 @@ STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static/'), ] + + +# Media Files +MEDIA_URL = '/public/' + +MEDIA_ROOT = os.path.join( + os.path.dirname(__file__), + '../public', +) diff --git a/medical_prescription/medical_prescription/urls.py b/medical_prescription/medical_prescription/urls.py index d87b364e..62e3d489 100644 --- a/medical_prescription/medical_prescription/urls.py +++ b/medical_prescription/medical_prescription/urls.py @@ -1,9 +1,10 @@ from django.conf.urls.i18n import i18n_patterns +from django.conf.urls.static import static from django.conf.urls import include, url from django.contrib import admin from landing.views import home - +from medical_prescription import settings urlpatterns = [ url(r'^user/', include('user.urls')), url(r'^dashboard_health_professional/', include('dashboardHealthProfessional.urls')), @@ -17,7 +18,8 @@ url(r'^prescription/', include('prescription.urls')), url(r'^chat/', include('chat.urls')), url(r'^recommendation/', include('recommendation.urls')), -] +] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + urlpatterns += i18n_patterns( url(r'^user/', include('user.urls')), diff --git a/medical_prescription/public/image_profile/user.png b/medical_prescription/public/image_profile/user.png new file mode 100644 index 00000000..75ac2b5f Binary files /dev/null and b/medical_prescription/public/image_profile/user.png differ diff --git a/medical_prescription/templates/dashboardHealthProfessional/side_bar.html b/medical_prescription/templates/dashboardHealthProfessional/side_bar.html index 1bf90abb..41f37bb1 100644 --- a/medical_prescription/templates/dashboardHealthProfessional/side_bar.html +++ b/medical_prescription/templates/dashboardHealthProfessional/side_bar.html @@ -49,7 +49,6 @@