I'm using the ImageKit and for some reason it's displaying the absolute path to images. Any idea how to make it to display the path I have set in the MEDIA_URL ?
django / ImageKit - showing absolute path to images
755 views Asked by avatar 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 DJANGO-TEMPLATES
- use dict from python in django html template and also in js
- django allauth settings.SOCIALACCOUNT_ENABLED overwritten?
- Django-Cross Model Query 3 Models
- How can I get a comma separated list with related posts from a many-to-many field?
- I am experiencing a 404 error in the console on my django project
- How to start a download and render a response without hitting disk?
- django add filters in template is not working expectedly
- Access to stye.css denied - Django Static files - Nginx - I can't make my project read staticfiles (style.css)
- How to get an object for editing transfer to a form?
- class Media in Django formsets
- Django. Correct way to get and pass complicated data to template
- (Django 5.03] problem with django.contrib.auth.views.LogoutView
- Why are my Django project JavaScript files not loading, while the CSS files load successfully when they are both placed within the same static folder?
- Navbar items are not aligning on right hand side
- Django Template render annotated data along with Model data in UI for Many to Many relationship objects
Related Questions in DJANGO-VIEWS
- use dict from python in django html template and also in js
- Django - ModuleNotFoundError: No module named 'backend'
- Error fetching the entry page through Django url path
- How can I get a comma separated list with related posts from a many-to-many field?
- I am experiencing a 404 error in the console on my django project
- Issue Passing Size Parameter from JavaScript to Django Backend
- Should i use GET or POST for request with body in DRF?
- My djanco configuration fail to download images but store them in the db without occuring any error
- MultipleObjects returned when selecting a choice and creating an object for it
- Unable to see text in the dropdown list
- KeyFeatures for Product implementation
- Always incorrect password in Django
- fix django login bug
- How to get an object for editing transfer to a form?
- Can't display page content in Django
Related Questions in IMAGEKIT
- How to retrieve the URL from an image saved in imageKit?
- How to upload Flask FIleStorage object file to another API?
- ImageKit works fine on local but doesn't work on heroku why?
- Imagekit react SDK show error when upload image {message: 'The authenticator function is not provided.'}
- Firebase Emulator, Ngrok and imageKit not connecting
- Upload Image to imagekit using Golang (Gin)
- Can not upload image in library imagekitio-react version 2.0.0 in NextJs
- How to set different assetPrefix for images and js files in nextjs
- Randomise image order from Firebase storage
- Imagekit - Golang | How to use Context
- Django Imagekit I/O operation on closed file
- Format to POST a file to the ImageKit server?
- Imagekit EACCES - Access denied by AWS S3. Check attached IAM policy on AWS
- imagekit used with external storage - how to disable some random number (t=xxxxxxx) at the end of the url
- ImageKit.io list just the url of all pictures existing in a folder
Related Questions in DJANGO-IMAGEKIT
- upload images in Django save onlyto folder but not saving to mysql database
- Django database image stopped showing
- Can multiple images be uploaded from one selection field in Django?
- Django Rest Framework - How to store a GIF image
- Django shows Internal Server Error in Production while uploading images
- django-imagekit - do not crash when source file does not exist
- Django Imagekit I/O operation on closed file
- Why images are not being uploaded from my template form to django admin and then to the media folder
- How do I fill in the ProcessedImageField after saving the original image?
- Django open local image
- Django ImageKit change image dimension inside Admin site
- No module named 'imagekit' in django rest framework
- can't upload image from database in django server
- "The file cannot be reopened." error from django-imagekit after moving a file
- How to save an image from my DOM to backend in django?
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?
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)
The problem is in Models with the ImageKit's
cache_dirseting. If you put a slash in front of your path and have the absolute path to your images then when you pull the images in your template it will show the absolute path to your images:But if you take the front slash off from your path and not include the folder mentioned in MEDIA_URL (in settings.py) then the problem with the reference to the absolute path goes away: