I build a website with Django and now hosting it. I used Whitenoise to serve images but only static ones shows up when debug is False. How can I serve media files uploaded by users too? Since it is my first development with Django detailed help would be much appreciated kind folk of the Stack.
Can not able to serve media files on cpanel django
610 views Asked by İbrahim Hakkı At
1
There are 1 answers
Related Questions in DJANGO
- Django Admin Panel and Sub URLs Returning 404 Error on Deployment
- How to return HTTP Get request response from models class in Django project
- Issue with Quantity Increment in Django E-commerce Cart
- Can't install Pipenv on Windows
- use dict from python in django html template and also in js
- 'pyodbc.Cursor' object has no attribute 'callproc', mssql with django
- Django socketio process
- Root path analogue in uWSGI as in Uvicorn
- Django - ModuleNotFoundError: No module named 'backend'
- Does Python being a loosely typed programming language make it less secure?
- sorl-thumbnail adds a background color when padding is used
- Can't connect to local postgresql server from my docker container
- Why ProductHunt api dont work with Python?
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Django Arrayfield migration to cloud sql (Postgresql) not creating the column
Related Questions in CPANEL
- Cpanel filter encoding utf-8?
- How to setup SES SMTP in WHM cPanel shared hosting
- Nextjs App works with Host File IP, return 400 Bad Request with Domain
- i have my cpanel login of my website. how can i change hosting through cpanel?
- NodeJS running on cpanel
- How to kill number of processes in cpanel
- Publishing an SSR app w/ Angular 17 on a cPanel is possible, right?
- After pointing Cpanel domain to Shopify, I am not able to either Receive or Send Emails
- NodeJS server and client on Cpanel Not Working
- Image is not displayed/loaded in my django website which i deployed on Cpanel
- Cpanel Deployment getting Cannot GET / error React Next js
- React/nodejs Cpanel project - frontend won't connect to backend
- Move BitBucket repository to cPanel
- Is it possible to reject non secured (non ssl / wss) websockets with socket.io?
- External Email html blocked in script php if HTML
Related Questions in PRODUCTION
- Next 14 App Router pages from dynamic routes not generating when deployed on vercel but only work on localhost
- Distorted CSS after Build process
- Flutter Gpay previously working in production is not working now
- Angular 8 project compiled error in production
- Issue with Google Drive API Integration: Unexpected HTML Response from Backend in Production Environment
- Difference between my development app and production app
- Quick reply needed - How to disable / Inactive the production version in Play Store?
- Leaflet-FreehandShapes Not Working in Angular 17 Production Build
- Pm2 mode cluster project Next 14 infinite reload
- How can I improve the production quality of this time series model
- `SSL: CERTIFICATE_VERIFY_FAILED` certificate verify failed: Hostname mismatch, certificate is not valid for 'smtp.gmail.com'. (_ssl.c:1007)
- Executing "strapi admin:reset-user-password" command on a Strapi app deployed on Render
- ng build in Angular not loading
- serving static files in django on pythonanywhere
- NextJS App Router: How to display error in production
Related Questions in WHITENOISE
- Matlab code to add white noise to a movie clip
- Getting whitenoise.storage.MissingFileError: The file 'vendor/bootswatch/default/bootstrap.min.css.map' could not be found
- Django static files Dokku
- Static files not loaded when deploy a django web page in vercel(with whitenoise)
- error (400) when putting whitenoise in django cpanel whit debug in false
- whitenoise dosen't seem to work in Django
- Upload images with Django and Whitenoise
- Django shows Internal Server Error in Production while uploading images
- Django Cache Causes Missing Staticfiles on Azure
- How to handle django static files for production
- Django/Wagtail static assets return 404 only when logged in but works logged out
- How to exclude media folder when deploying to railway
- Django ImageField shows wrong url
- Why staticfiles aren't found when DEBUG=False (in production)?
- Azure - Django deployment Static Files
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I reached my host provider's support and thanks to them I saw it was not that hard. Since I am using a shared host they was conigured serving files defult with CloudLinux. All I have to do is take static and media files on public_html folder. And change the media root for here because I want users uploaded images to get here too. To sum up solution is public_html folder.