My admin panel is not loading static files.

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()

Solved it, I just had to include staticfiles storages with whitenoise and had to run the command to collect static.

Yes, running collectstatic is an important step in a production deployment.

Using whitenoise is necessary only when you’re working in a limited-deployment situation and can’t configure the web server being used (e.g. Heroku)