Forums

Cannot access admin page after successfull login - Server error 500

Hello,

I deployed my web app recently on PythonAnywhere (www.carpeincedo.com), and everything was running smoothly until yesterday, when I couldn't access the admin pages. I can see the login page for admin user, but after logging in I get 500 server error.

  • I tried with a new superuser, which I created using the console, but this also does not work.
  • I can access everything in my app: profiles, apps, upload photos, and add new items in the DB. My only issue is not being able to access the admin pages.
  • Logs: 78.80.80.35 - - [21/Jul/2026:12:25:09 +0000] "GET /management-portal-36963/ HTTP/1.1" 500 2728 "https://www.carpeincedo.com/management-portal-36963/login/?next=/management-portal-36963/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36" "78.80.80.35" response-time=0.142

I would appreciate any ideas you might have! Thank you in advance for your time!

I found the issue:

PROBLEM - I was using for the STORAGES setting, the class django.contrib.staticfiles.storage.ManifestStaticFilesStorage and this was failing because there are some urls in my newly created css files that I forgot to create.

SOLUTION - I created a custom class inheriting from ManifestStaticFilesStorage, and set the attribute manifest_strict to False. I will fix all file path issues and then turn it back to ManifestStaticFilesStorage.

Hope it helps someone in the future...

Thanks for letting us know.