Django- Nixpacks- Easypanel - Static files and media files not working #100
Unanswered
amalraj1264
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,
I'm encountering some challenges with serving static and media files in my Django application deployed on EasyPanel using Nixpacks.
Specifics:
I've configured STATIC_URL, MEDIA_URL, STATIC_ROOT, and MEDIA_ROOT in my settings.py following the standard Django guidelines.
However, static files aren't accessible through my API, and media uploads aren't functioning as expected.
Interestingly, the same code works perfectly when hosting Django directly on an Ubuntu server with nginx and gunicorn.
Tried Troubleshooting Steps:
I've tried setting the environment variables on EasyPanel. There is no error , and same as before
Current Status:
The server is running without errors.
The issue is solely related to static and media file access only.(Django admin panel styles also not working because of staticfiles issue)
Request for Help:
Any insights or suggestions on resolving this specific issue with EasyPanel and Nixpacks would be immensely valuable.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions