django-media Questions
7
Solved
I am able to upload the files to media folder( '/peaceroot/www/media/') that I have set up in settings.py as below
MEDIA_ROOT = '/peaceroot/www/media/'
MEDIA_URL = '/media/'
But through admin I ...
Quentinquercetin asked 29/3, 2016 at 9:14
17
Solved
I'm trying to upload an image via the Django admin and then view that image either in a page on the frontend or just via a URL.
Note this is all on my local machine.
My settings are as follows:
...
Twannatwattle asked 1/4, 2011 at 19:31
2
Solved
I have been fumbling around with trying to protect Django's media files with no luck so far! I am simply trying to make it where ONLY admin users can access the media folder. Here is my Nginx file....
Lilt asked 24/8, 2017 at 23:55
5
Solved
I am using Django's modelform and its really good. How can I highlight the actual text box (e.g. border:red ) if there is a validation error associated with it. Basically what i want is to add a cl...
Alleluia asked 31/1, 2011 at 5:32
3
I am testing my django app in production mode (debug=false) using nginx, gunicorn, postgresql.
Though I am able to render static files, I am unable to access files stored in 'media' folder.
In my...
Foreknow asked 23/7, 2019 at 10:43
1
Solved
When user uploads image, it is stored in media folder inside project directory. The problem is that when they want to see it on the website, nginx return 403 Forbidden error for images over approxi...
Roshelle asked 20/7, 2018 at 9:42
2
Solved
I am trying to use django-storages with s3boto in my app and trying to serve media and static files from s3.
I have the following settings in my settings file:
AWS_STORAGE_BUCKET_NAME = '<buck...
Purim asked 16/1, 2016 at 21:15
1
I am trying to deploy my django app on heroku. All the static files are served by whitenoise and are migrated successfully. But how do I get my media files that are uploaded using ImageField to dis...
Bordeaux asked 26/6, 2015 at 12:34
3
Solved
I have successfully deployed my Django project in openshift. But I need to be able to serve files that are uploaded by users. I user MEDIA_ROOT and MEDIA_URL for that. I followed this tutorial here...
Breeder asked 22/5, 2014 at 13:16
4
Solved
The media is currently on my local development machine.
My MEDIA_ROOT, MEDIA_URL, ADMIN_MEDIA_PREFIX and are specified as below:
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), "media")
MED...
Hurricane asked 6/2, 2012 at 22:18
1
Solved
I have an application that allows for users to upload CSV files with data which is then graphed and displayed to the user. These files are saved as media within my media folder. In my graph view ho...
Chile asked 19/12, 2014 at 20:1
1
when I upload an image, i see it uploaded twice in my project. The two locations are
/Users/myproject/media/ and /Users/myproject/media/assets/uploaded_files/username/. I expect the image to be up...
Homiletics asked 12/6, 2014 at 3:37
1
© 2022 - 2025 — McMap. All rights reserved.