I have set my debug to False and after i deploy my app when i go to my admin page its not load the static files. i works well for the website but not for the admin page. Any advise?
this is how my admin page looks like:
settings.py:
STATIC_URL = '/static/'
if DEBUG:
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static'),]
else:
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
urls.py:
urlpatterns = [
path('admin/', admin.site.urls),
path('', home_view, name='home'),
path('about/', about_view, name='about'),
path('members/', members_view, name="members"),
path('contact/', contact_view, name="contact"),
] + static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)
urlpatterns += staticfiles_urlpatterns()