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 best solutions below
Related Questions in DJANGO
- Display images on Django Template Site
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Django invalid literal for int() with base 10:
- Removing URL features from tokens in NLTK
- Django Noob URL to from Root Page to sub Page
- Django Admin tables not displaying correctly
- Django with chartkick
- Django urls.py not rendering correct template
- django form errors before submit
- django admin: custom app_index with context
- Display multiple models in one view in Django
- Unexpected NoReverseMatch error when using include() in urls patterns
- Search for a key in django.core.cache
- Django webapp (on an Apache2 server) hangs indefintely when importing nltk in views.py
- Django flush won't load fixtures
Related Questions in CPANEL
- How to install node js and setup a "hello world" website on a shared linux hosting?
- I get 530 access denied in ftp connection after some upgrade in my internet connection
- Cpanel shows blank page on my site.
- Grant Google Access to SMTP on cPanel/WHM Centos Server without advertising SMTP Auth?
- RAM allocation in WHM/Cpanel using SSH
- 403 Error when trying to remove products from Cart
- cPanel API authentication methods
- Curl set returns resource id 34
- current MySql Connection Limit Expansion
- showbw() ---Fatal error: Uncaught exception 'Exception' with message 'curl_exec threw error "
- I have uploaded the files of my website in cpanel in public_html but after that website is not visible on web
- Disable mod_security for QUERY_STRING (table_name) in specific file
- How to load a webpage to refresh data using Cron Job in Cpanel
- SSL certificate verifaction error cPanel
- WHM 11.50.0 (build 10) & X-PHP-Script = Security Bug
Related Questions in PRODUCTION
- Sails lift not working in production
- Django 1.8 how to create my own 404 page?
- Is there any sdk to log exceptions, events and errors in production app?
- Webpack Code Splitting: Does it do anything? Seems like no effect
- Play framework reads assets file in unmanagedResourceDirectories
- getting syntax error while running rails s -e production
- Which mode (sandbox or production) uses Apple during App Review?
- Symfony migration from 3.1.8 to 3.2.x
- Using Carrierwave and Capistrano with Rails
- Meteor.js - Production Meteor.settings throws TypeError undefined
- Globally accessible variable for setting paths - Laravel 4
- SVN development and production branches, with differing content in each
- rake db:schema:load works in development but not production
- Writing (translating) from L-Systems production rules (theory) to Python's turtle graphics (practice)
- Rails 4 can't find fonts in production
Related Questions in WHITENOISE
- collectstatic whitenoise can't see my existing file on deployment to heroku
- In Heroku, how to running gunicorn & import whitenoise?
- How to solve an "OfflineGenerationError: You have offline compression enabled but key ..." served up by Windows 2019 IIS?
- error (400) when putting whitenoise in django cpanel whit debug in false
- Static files not loaded when deploy a django web page in vercel(with whitenoise)
- media file not serve in django with wihtenoise
- Whitenoise doesn't seem to help images to show up in heroku
- Collect Static Error when trying to deploy Django application to heroku
- Static File Hosting, WhiteNoise not Updating - Django
- vb.net - draw rectangle filled with white noise on a image
- Do we need to add files (in the folder) that White Noise creates to the gitignore list?
- Django cannot find staticfiles
- Does whitenoise really require collectstatic?
- Can not able to serve media files on cpanel django
- Django, getting 500 error when debug=False
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)
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?
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.