Re: Problem with displaying media files

2025-01-08 Thread Ewa Adamus
defined: > > import os > > MEDIA_URL = '/media/' > MEDIA_ROOT = os.path.join(BASE_DIR, 'media') > Make Sure to Serve Media Files (for local development): > > Ensure your urls.py includes: > > from django.conf import settings > from django.conf.url

Re: Problem with displaying media files

2025-01-08 Thread RANGA BHARATH JINKA
, request)) Template Fix: Loop through the queryset correctly in your HTML: {% for miod in mymiody %} {% endfor %} Check Your settings.py: Ensure your media settings are correctly defined: import os MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media'

Problem with displaying media files

2025-01-08 Thread Szawunia
Hi, I completely stuck with displaying media files - 'ImageField' in my html. Static files are displayed ok. I've read the 'whole internet' that topic and still nothing. I'm working on mac OS Sonoma, Django 5.1.3, Python 3.11. My Html: My model: miody_foto

Re: Help serving media files on render

2024-11-05 Thread Deepak kumar
>> Hi All, >> I need help serving media files on render. I already serve static files >> with whitenoise. >> I am able to upload media files but cannot serve them. I get file not >> found. >> If it is not possible, are there other alternatives to s3 bucket. >&

Re: Help serving media files on render

2024-11-04 Thread Adisa Habeebulah
I experienced this recently, try using Idrive On Fri, Nov 1, 2024, 1:41 PM ASAMOAH EMMANUEL wrote: > Hi All, > I need help serving media files on render. I already serve static files > with whitenoise. > I am able to upload media files but cannot serve them. I get file not > fo

Re: Help serving media files on render

2024-11-03 Thread Wekesa Sammy Barasa
Hi, It is important to separate the media files from your application file system in production for security purposes. You cannot trust your users' input files and therefore you should not be bundled with your application files. So in production, you should use file storage systems provid

Re: Help serving media files on render

2024-11-01 Thread RANGA BHARATH JINKA
Hi, You can use cloudinary or Firestore storage bucket to store media files. Thanks On Fri, 1 Nov, 2024, 6:11 pm ASAMOAH EMMANUEL, wrote: > Hi All, > I need help serving media files on render. I already serve static files > with whitenoise. > I am able to upload media files but

Help serving media files on render

2024-11-01 Thread ASAMOAH EMMANUEL
Hi All, I need help serving media files on render. I already serve static files with whitenoise. I am able to upload media files but cannot serve them. I get file not found. If it is not possible, are there other alternatives to s3 bucket. Thanks in advance. -- I don't stop when I'

tienda media files are not working

2022-12-07 Thread Jorge Castro
Hi friends. I write these lines for help as I am new in django. I built a project and I deployed but for some razon, it doesn't work everything fine. The main issue is that my store doesn't appear with its items. The site is *Hi friends. I write these lines for help as I am new in django. I built

Re: Media Files - local network share

2022-02-08 Thread Swelan Auguste
> Thanks. I was more looking for a local solutions (within a closed >>> network) >>> >>> Kindly, >>> >>> Swelan R. Auguste (Mr.) >>> KingShip >>> Technical Information Officer >>> 758-489-3909 >>> Webpage <https://sit

Re: Media Files - local network share

2022-02-07 Thread Jiffin George Kokkat
guste/home> >> >> >> >> On Sun, Feb 6, 2022 at 9:19 PM Yeboah Dominic >> wrote: >> >>> You can try dropbox that is what I used to serve my media files in django >>> >>> On Sun, 6 Feb 2022 at 20:07, Swelan Auguste >>> wr

Re: Media Files - local network share

2022-02-07 Thread Swelan Auguste
t; Swelan R. Auguste (Mr.) >> KingShip >> Technical Information Officer >> 758-489-3909 >> Webpage <https://sites.google.com/view/swelanauguste/home> >> >> >> >> On Sun, Feb 6, 2022 at 9:19 PM Yeboah Dominic >> wrote: >&

Re: Media Files - local network share

2022-02-07 Thread Litesh Garg
n Sun, Feb 6, 2022 at 9:19 PM Yeboah Dominic wrote: > >> You can try dropbox that is what I used to serve my media files in django >> >> On Sun, 6 Feb 2022 at 20:07, Swelan Auguste >> wrote: >> >>> >>> Good day all, >>> >>> >>

Re: Media Files - local network share

2022-02-06 Thread Swelan Auguste
; You can try dropbox that is what I used to serve my media files in django > > On Sun, 6 Feb 2022 at 20:07, Swelan Auguste > wrote: > >> >> Good day all, >> >> >> I am trying to figure out how to attach a Django app to a local network >> server/share

Re: Media Files - local network share

2022-02-06 Thread Yeboah Dominic
You can try dropbox that is what I used to serve my media files in django On Sun, 6 Feb 2022 at 20:07, Swelan Auguste wrote: > > Good day all, > > > I am trying to figure out how to attach a Django app to a local network > server/share. > > I do not want to host the

Media Files - local network share

2022-02-06 Thread Swelan Auguste
Good day all, I am trying to figure out how to attach a Django app to a local network server/share. I do not want to host the media files on the same server so that the server doesn't run out of space and I can and I can grow my media file host share/server as it grows. Kindly, Swe

Re: Protect Django media files per user basis and also under NGINX

2021-04-20 Thread Stats Student
a qr iame can be access if url is known . > > Can somone please help me with best practice to Protect Django media files > per user basis and also under NGINX for later production > > Please advice > > Thanks > > -- > You received this message because you are subscrib

Protect Django media files per user basis and also under NGINX

2021-04-19 Thread Tal Bar-Or
Hello, i have a project that create qrcode per user one to one relation, i discover that this media qr iame can be access if url is known . Can somone please help me with best practice to Protect Django media files per user basis and also under NGINX for later production Please advice

Re: Media files and download url

2020-05-19 Thread Riska Kurniyanto Abdullah
https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html You can used that modules and set the ACL. You can jump here, in Vitor article : https://simpleisbetterthancomplex.com/tutorial/2017/08/01/how-to-setup-amazon-s3-in-a-django-project.html then go to the chapter : Mixing publi

Re: Media files and download url

2020-05-14 Thread Parampal Singh
More details please 😊 On Tue, May 12, 2020, 12:52 AM Riska Kurniyanto Abdullah < alternative@gmail.com> wrote: > Amazon S3 have simple solution for that topic > > > On Tue, May 12, 2020 at 1:27 AM Parampal Singh > wrote: > >> Access media vedio files only when user logged in >> >> Temporary

Re: Media files and download url

2020-05-11 Thread Riska Kurniyanto Abdullah
Amazon S3 have simple solution for that topic On Tue, May 12, 2020 at 1:27 AM Parampal Singh wrote: > Access media vedio files only when user logged in > > Temporary file download url every time change > > > Any suggestions on these topics > > -- > You received this message because you are subs

Media files and download url

2020-05-11 Thread Parampal Singh
Access media vedio files only when user logged in Temporary file download url every time change Any suggestions on these topics -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

What's the best practice for securing static and media files from unauthenticated users?

2019-07-23 Thread Tal
I have a Django project, where, for the most part, users need to be logged in to see or do anything. If an unauthenticated user guesses a page name in my project, they would get redirected to the login page, with an error message, as they should. The project's static and media files o

Re: Docker: NGINX, Postgres, Django, Static, Media Files

2019-07-14 Thread Dan Tagg
r production that accept all >> Host of wourld on port 80. I want a docker container for Nginx another for >> Postgres another for Django and static Files and another container for >> Media Files. I have not enought experience to get a manual like this: >> https://github.com/Pa

Re: Docker: NGINX, Postgres, Django, Static, Media Files

2019-07-14 Thread hunter.cur...@gmail.com
ther container for > Media Files. I have not enought experience to get a manual like this: > https://github.com/Pawamoy/docker-nginx-postgres-django-example > > Can someone give me a package to download? > > Regards > -- You received this message because you are subscri

Re: Docker: NGINX, Postgres, Django, Static, Media Files

2019-07-14 Thread DANIEL URBANO DE LA RUA
0. I want a docker container for Nginx another for > Postgres another for Django and static Files and another container for > Media Files. I have not enought experience to get a manual like this: > https://github.com/Pawamoy/docker-nginx-postgres-django-example > > Can someone give

Docker: NGINX, Postgres, Django, Static, Media Files

2019-07-14 Thread Sebastian Jung
Hello, i want i complete ready Docker Container for production that accept all Host of wourld on port 80. I want a docker container for Nginx another for Postgres another for Django and static Files and another container for Media Files. I have not enought experience to get a manual like this

Re: Django 2.2 Media files

2019-07-06 Thread John Bagiliko
ic file serving trick like you did. >> >> Now when getting url in template you should use something like {{ >> image.url }} which should render correct absolute url to your uploaded >> file. >> >> HTH. >> >> pe 5. heinäk. 2019 klo 15.55 Michał Ratajczak >&

Re: Django 2.2 Media files

2019-07-05 Thread Michał Ratajczak
t absolute url to your uploaded > file. > > HTH. > > pe 5. heinäk. 2019 klo 15.55 Michał Ratajczak > kirjoitti: > >> Hi, i'm new in Django, I'm trying to configure media files correctly. >> >> That's in my model.py: >> >> c

Re: Django 2.2 Media files

2019-07-05 Thread Jani Tiainen
. Now when getting url in template you should use something like {{ image.url }} which should render correct absolute url to your uploaded file. HTH. pe 5. heinäk. 2019 klo 15.55 Michał Ratajczak kirjoitti: > Hi, i'm new in Django, I'm trying to configure media files correctly. >

Re: Django 2.2 Media files

2019-07-05 Thread Michał Ratajczak
{% endfor %} W dniu piątek, 5 lipca 2019 16:22:22 UTC+2 użytkownik John Bagiliko napisał: > > Remove the upload_to in the model. > > On Fri, Jul 5, 2019, 12:55 PM Michał Ratajczak > wrote: > >> Hi, i'm new in Django, I'm trying to configure media files

Re: Django 2.2 Media files

2019-07-05 Thread Anonymous Anon
create a folder 'media' > inside the media folder. > > On Fri, Jul 5, 2019, 2:21 PM John Bagiliko > wrote: > >> Remove the upload_to in the model. >> >> On Fri, Jul 5, 2019, 12:55 PM Michał Ratajczak < >> luminousshado...@gmail.com> wrote

Re: Django 2.2 Media files

2019-07-05 Thread John Bagiliko
On Fri, Jul 5, 2019, 12:55 PM Michał Ratajczak > wrote: > >> Hi, i'm new in Django, I'm trying to configure media files correctly. >> >> That's in my model.py: >> >> class Question(models.Model): >> description = models.CharField(max_

Re: Django 2.2 Media files

2019-07-05 Thread John Bagiliko
Remove the upload_to in the model. On Fri, Jul 5, 2019, 12:55 PM Michał Ratajczak wrote: > Hi, i'm new in Django, I'm trying to configure media files correctly. > > That's in my model.py: > > class Question(models.Model): > description = models.Char

Django 2.2 Media files

2019-07-05 Thread Michał Ratajczak
Hi, i'm new in Django, I'm trying to configure media files correctly. That's in my model.py: class Question(models.Model): description = models.CharField(max_length=200) image = models.ImageField(upload_to='media/', null=True, blank=True) in settings.p

Re: Media files

2018-06-19 Thread Cody “theultimatecasual” Davis
Thank you so much. Sent from my iPhone > On Jun 19, 2018, at 16:56, Jason wrote: > > https://docs.djangoproject.com/en/2.0/howto/static-files/#serving-files-uploaded-by-a-user-during-development > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Media files

2018-06-19 Thread Jason
https://docs.djangoproject.com/en/2.0/howto/static-files/#serving-files-uploaded-by-a-user-during-development -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to dja

Re: Media files

2018-06-19 Thread Cody “theultimatecasual” Davis
Well i have that. My problem really is i can’t find anywhere in the docs that says i need to add that. I’m really just looking for the documentation on it. Sent from my iPhone > On Jun 19, 2018, at 08:06, Akshay Gaur wrote: > > Maybe there is an issue with the way django is serving the docs.

Re: Media files

2018-06-19 Thread Akshay Gaur
Maybe there is an issue with the way django is serving the docs. Try the following: - in your base urls.py, add the following: if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) In case this doesn't work, would it be possible for you to p

Media files

2018-06-19 Thread Cody Davis
Hey everyone. New to Django here i apologize is this question is already answered somewhere. So i have read the FileField docs and 50 times. I have defined my MEDIA_URL and MEDIA_ROOT. When i upload an image through the admin, i can see the file goes where i directed it to inside of Django. If

Re: store media files on amazon Elastic File System

2017-12-25 Thread Costja Covtushenko
Hello, I believe that you do need to read this documentation page. It has description how to use Amazon S3 bucket. But approach should be the same. Regards, Constantine C. >

store media files on amazon Elastic File System

2017-12-20 Thread gavaskar . t
How to store the django static and media files in amazon Elastic File System -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

404, media files are not served in template during development

2016-01-06 Thread charito.romeo
Hi ALL, I was trying to render user-uploaded media files into the template but it throws out a 404 only on the media files. The all other context variables are rendered except the media files. I am using django 1.9.1 and python 2.7.9. Here's the settings file. I only included the

Re: Problem rendering media files in template during development

2015-07-22 Thread ltc.hotspot
Hi django folks, I ran into a hiccup when I was rendering media files in templates during development. I wanted to render the image and the video that was uploaded by the user BUT instead of the contents of the image and the video being rendered, the name of the file was rendered instead

Re: Problem rendering media files in template during development

2015-07-21 Thread Charito Romeo
IA_URL }} doesn't > work but {{ media_url }} does. Now all my movies and images are rendered. > Cheers. :) > > On Monday, July 20, 2015 at 3:16:52 PM UTC+8, charito.romeo wrote: >> >> Hi django folks, >> >> I ran into a hiccup when I was rendering media fi

Re: Problem rendering media files in template during development

2015-07-21 Thread ltc.hotspot
. I figured it out. For some reason, {{ MEDIA_URL }} doesn't work but {{ media_url }} does. Now all my movies and images are rendered. Cheers. :) On Monday, July 20, 2015 at 3:16:52 PM UTC+8, charito.romeo wrote: Hi django folks, I ran into a hiccup when I was rendering media fil

Re: Problem rendering media files in template during development

2015-07-21 Thread charito.romeo
n I was rendering media files in templates during > development. I wanted to render the image and the video that was uploaded > by the user BUT instead of the contents of the image and the video being > rendered, the name of the file was rendered instead. > > I am using python 2.7

Re: Problem rendering media files in template during development

2015-07-20 Thread Charito Romeo
Oh, I forgot to include the MEDIA_ROOT = os.path.join(BASE_DIR, 'media') in settings.py. On Mon, Jul 20, 2015 at 3:16 PM, charito.romeo wrote: > Hi django folks, > > I ran into a hiccup when I was rendering media files in templates during > development. I wanted to re

Problem rendering media files in template during development

2015-07-20 Thread charito.romeo
Hi django folks, I ran into a hiccup when I was rendering media files in templates during development. I wanted to render the image and the video that was uploaded by the user BUT instead of the contents of the image and the video being rendered, the name of the file was rendered instead. I

Re: django, mod_wsgi, apache and sharing media files (video) from a separate directory

2014-04-20 Thread Ramón Carrillo
ctory outside of the django app - in the root of > the machine - /PROYECTOS > > > The permissions for the directories and preceding directories are readable > by _www > > > I think that I understand that > > - mod_wsgi will serve the dynamic files > > - apache wi

django, mod_wsgi, apache and sharing media files (video) from a separate directory

2014-04-20 Thread Adam Teale
css and template files, as well as the media files I am referencing in the /PROYECTOS directory I have the following in my settings.py: STATICFILES_DIRS = (os.path.join(BASE, "static"), ) STATIC_URL = "/static/" MEDIA_URL = "/PROYECTOS/" WSGI_APPLICATION = 

Re: text media files for comments

2014-01-14 Thread Sven Aßmann
Hi Fatih, i would ask myself the question is this static data that not changes frequently or is it editable content that should be: a) maintainable from users (without code updates of course) b) is maintained independently form software releaes if one of thoses questions can be answered with ye

text media files for comments

2014-01-13 Thread Fatih Tiryakioglu
Hi all, I want to render a static media .txt file from django template, but I can't load it. Should I use database for text comments, or is it better statatic text files like image files in media folder. Any help is appreciated. -- You received this message because you are subscribed to the

Re: Media files django 1.5

2013-12-29 Thread Mike Dewhirst
On 30/12/2013 3:18am, Carlos Andre wrote: hello guys, i have a problem in django 1.5! I did a migration from version 1.3 to this and when I migrated projects that have worked in version 1.3 there was no recognition of the media in version 1.5! I made the steps of the tutorial, but the problem sti

Media files django 1.5

2013-12-29 Thread Carlos Andre
hello guys, i have a problem in django 1.5! I did a migration from version 1.3 to this and when I migrated projects that have worked in version 1.3 there was no recognition of the media in version 1.5! I made the steps of the tutorial, but the problem still insists! have something new to be configu

Template unable to show media files in production

2013-09-19 Thread vittorio
*Context: Ubuntu linux server 12, Apache 2.2 server, django 1.5.3* * * My project, /home/victor/magazantea is dealt with by admin and it works fine in the development environment (/manage.py runserver 192.168.1.19:8000). I built a view which gets data from the following fields from model "Artic

Fail to load media files in Django(on Windows7)

2012-02-08 Thread 530056...@qq.com
he directory static files should be collected to. # Don't put anything in this directory yourself; store your static files # in apps' "static/" subdirectories and in STATICFILES_DIRS. # Example: "/home/media/media.lawrence.com/static/" STATIC_ROOT = '' # URL

Re: Serving Django Admin Static Media Files with Apache WSGI on Ubuntu

2011-12-20 Thread Timothy Makobu
to > serve requests for /static > > works well on ep.io > > > > On Tue, Dec 20, 2011 at 10:58 AM, Ganesh Kumar wrote: > >> Hi guys, I trying with Serving Django Admin Static Media Files with >> Apache WSGI on Ubuntu.10.04 >> >> This my config files. examp

Re: Serving Django Admin Static Media Files with Apache WSGI on Ubuntu

2011-12-20 Thread Timothy Makobu
, I trying with Serving Django Admin Static Media Files with > Apache WSGI on Ubuntu.10.04 > > This my config files. example_proj.wsgi > http://dpaste.com/675674/ > > apache config file. 000-default > > http://dpaste.com/675675/ > > my setting.py > > http://dpast

Serving Django Admin Static Media Files with Apache WSGI on Ubuntu

2011-12-20 Thread Ganesh Kumar
Hi guys, I trying with Serving Django Admin Static Media Files with Apache WSGI on Ubuntu.10.04 This my config files. example_proj.wsgi http://dpaste.com/675674/ apache config file. 000-default http://dpaste.com/675675/ my setting.py http://dpaste.com/675678/ please guide me. what mistakes I

admin media files are not showing up in deployment

2011-12-02 Thread Nikhil Verma
ous locations. STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', #'django.contrib.staticfiles.finders.DefaultStorageFinder', ) My media is present in /home/nikhil/workspace/CPMS-Source/careprep/media/

Re: Media files not served automatically anymore in 1.3?

2011-08-29 Thread Reinout van Rees
matic serving of media_url, you always had to configure that manually if you wanted it. You're right. My mistake was that django-staticfiles 0.2.0 *did* also serve the media files in addition to "its" staticfiles. The staticfiles that's in django 1.3 now doesn't do

Re: Media files not served automatically anymore in 1.3?

2011-08-27 Thread Karen Tracey
On Thu, Aug 25, 2011 at 7:21 AM, Reinout van Rees wrote: > Only, with this 1.3 change django's 1.2's automatic serving of the > media_url stuff has gone the way of the dodo. Django 1.2 never did automatic serving of media_url, you always had to configure that manually if you wanted it. Karen --

Re: Media files not served automatically anymore in 1.3?

2011-08-25 Thread Reinout van Rees
On 25-08-11 12:08, Reinout van Rees wrote: Two questions: - "Breaking" automatic media_url serving seems worthy of a real note in the 1.3 changelog. That note isn't there. Is this bad? Or am I missing something? Yes, I am missing something... It turns out that django-staticfiles 0.2.0 include

Re: Media files not served automatically anymore in 1.3?

2011-08-25 Thread Uros Trebec
Somehow (I don't remember setting this up) I use https://github.com/divio/django-appmedia with urlpatterns = patterns('', (r'^' + settings.MEDIA_URL.lstrip('/'), include('appmedia.urls')), ) + urlpatterns in urls.py Good luck, Uros On Aug 25, 1:21 pm, Reinout van Rees wrote: > On 25-08-1

Re: Media files not served automatically anymore in 1.3?

2011-08-25 Thread Reinout van Rees
On 25-08-11 13:10, Landy Chapman wrote: Hope this helps: from https://docs.djangoproject.com/en/dev/releases/1.3-beta-1/ The staticfiles app ships with the ability to automatically serve static files during development (if the DEBUG setting is True) when using the runserver management command.

Re: Media files not served automatically anymore in 1.3?

2011-08-25 Thread Landy Chapman
van Rees wrote: > Hi, > > I'm switching sites over to 1.3 at the moment and I only just discovered > that my media files (the media_url ones, not the new static_url ones) > aren't served anymore by the development server ("runserver"). > > The static files (

Media files not served automatically anymore in 1.3?

2011-08-25 Thread Reinout van Rees
Hi, I'm switching sites over to 1.3 at the moment and I only just discovered that my media files (the media_url ones, not the new static_url ones) aren't served anymore by the development server ("runserver"). The static files (static_url) *are* served automatically in D

Re: Why i can reach my media files from my static url?

2011-04-19 Thread Jeff Blaine
Please show your settings: STATIC_ROOT STATICFILES_DIR STATIC_URL MEDIA_ROOT MEDIA_URL -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send emai

Why i can reach my media files from my static url?

2011-04-19 Thread Mirat Bayrak
Hi, i started a project (with django1.3). I made settings for my media files and static files. After that i realized that : i can reach /myproject/media/foo.txt from localhost:8000/static/foo.txt . 1. Why i can reach that from there? 2. That looks like i don't need to add serve

Re: Browsing through media files on remote machine

2011-02-27 Thread Jagdeep Singh Malhi
On Feb 27, 1:01 am, Borislav Petrović wrote: > Hello, > >         Is there an app, or a suggestion on how to browse through media > files on a remote machine? > > I have a setup that would include two separate machines one from a web > hosting for my django site and an

Browsing through media files on remote machine

2011-02-26 Thread Borislav Petrović
Hello, Is there an app, or a suggestion on how to browse through media files on a remote machine? I have a setup that would include two separate machines one from a web hosting for my django site and another that would host media files. I need to be able to browse and select files from

Re: Working with static media files, {{ MEDIA_URL }} shows up blank even with settings.py set

2010-12-28 Thread Lee Connell
Thanks everyone, the problem was indeed not using the RequestContext, using Context does not automatically include some useful variables which are retrieved from TEMPLATE_CONTEXT_PROCESSORS that includes MEDIA_URL as stated above. Thanks again! On Dec 28, 5:31 pm, dmitry b wrote: > you need to b

Re: Working with static media files, {{ MEDIA_URL }} shows up blank even with settings.py set

2010-12-28 Thread dmitry b
you need to be also using RequestContext in your view instead of the regular Context. What does your view method's return statement look like? On Dec 28, 7:02 am, Lee Connell wrote: > I didn't have TEMPLATE_CONTEXT_PROCESSORS at all, I copied the code > and it did not help, MEDIA_URL is still bl

Re: Working with static media files, {{ MEDIA_URL }} shows up blank even with settings.py set

2010-12-28 Thread Daniel Roseman
On Tuesday, December 28, 2010 3:02:44 PM UTC, Lee Connell wrote: > > I didn't have TEMPLATE_CONTEXT_PROCESSORS at all, I copied the code > and it did not help, MEDIA_URL is still blank. I am using django 1.2.1 > on windows. > You don't actually need to specify TEMPLATE_CONTEXT_PROCESSORS if you

Re: Working with static media files, {{ MEDIA_URL }} shows up blank even with settings.py set

2010-12-28 Thread easylancer
Post your settings.py in a pastebin and add a link to it here. Remove all sensitive data before posting it. On Dec 28, 3:02 pm, Lee Connell wrote: > I didn't have TEMPLATE_CONTEXT_PROCESSORS at all, I copied the code > and it did not help, MEDIA_URL is still blank. I am using django 1.2.1 > on wi

Re: Working with static media files, {{ MEDIA_URL }} shows up blank even with settings.py set

2010-12-28 Thread Lee Connell
I didn't have TEMPLATE_CONTEXT_PROCESSORS at all, I copied the code and it did not help, MEDIA_URL is still blank. I am using django 1.2.1 on windows. On Dec 28, 12:56 am, Kenneth Gonsalves wrote: > On Mon, 2010-12-27 at 08:03 -0800, easylancer wrote: > > TEMPLATE_CONTEXT_PROCESSORS = ( > >     '

Re: Working with static media files, {{ MEDIA_URL }} shows up blank even with settings.py set

2010-12-28 Thread Kenneth Gonsalves
On Mon, 2010-12-27 at 08:03 -0800, easylancer wrote: > TEMPLATE_CONTEXT_PROCESSORS = ( > 'django.contrib.auth.context_processors.auth', > 'django.core.context_processors.debug', > 'django.core.context_processors.i18n', > 'django.core.context_processors.media', > 'django.contrib.

Re: Working with static media files, {{ MEDIA_URL }} shows up blank even with settings.py set

2010-12-27 Thread easylancer
I had this same issue before and it was due to TEMPLATE_CONTEXT_PROCESSORS being missing. Try adding code below in settings.py if not already there. TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.conte

Working with static media files, {{ MEDIA_URL }} shows up blank even with settings.py set

2010-12-27 Thread Lee Connell
I have my media url and root set: MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'media') This is what my template has: Postfix Log Viewer The {{ MEDIA_URL }} shows up blank -- You received this message because you are

What Does Access Log Imply About Media Files' Location

2010-12-02 Thread octopusgrabbus
In my muddling around working on two problems involving serving media pages, I have both problems narrowed down to similar 404 entries in access_log (apache/mod_python). 10.100.0.88 - - [02/Dec/2010:14:15:29 -0500] "GET /media/admin/media/ css/base.cs s HTTP/1.1" 404 2343 "http://amrserver:8002/ad

Re: Django app that uploads media files and servers them through a view?

2010-10-06 Thread m1chael
what about something like x-sendfile in apache? On Wed, Oct 6, 2010 at 7:27 AM, Steve Holden wrote: > On 10/6/2010 7:17 AM, Kenneth Gonsalves wrote: >> On Thu, 2010-09-30 at 04:20 -0700, Stodge wrote: >>> Is anyone aware of a Django app that lets you upload media files (not

Re: Django app that uploads media files and servers them through a view?

2010-10-06 Thread Steve Holden
On 10/6/2010 7:17 AM, Kenneth Gonsalves wrote: > On Thu, 2010-09-30 at 04:20 -0700, Stodge wrote: >> Is anyone aware of a Django app that lets you upload media files (not >> necessarily in the admin site) but serves them through a view instead >> of as static files via the

Re: Django app that uploads media files and servers them through a view?

2010-10-06 Thread Kenneth Gonsalves
On Thu, 2010-09-30 at 04:20 -0700, Stodge wrote: > Is anyone aware of a Django app that lets you upload media files (not > necessarily in the admin site) but serves them through a view instead > of as static files via the web server? I need to control access to the > media using

Re: Django app that uploads media files and servers them through a view?

2010-09-30 Thread Thomas Weholt
sept. 2010 à 13:34, Thomas Weholt a écrit : > >> On Thu, Sep 30, 2010 at 1:20 PM, Stodge wrote: >>> Is anyone aware of a Django app that lets you upload media files (not >>> necessarily in the admin site) but serves them through a view instead >>> of as static fi

Re: Django app that uploads media files and servers them through a view?

2010-09-30 Thread Xavier Ordoquy
> Is anyone aware of a Django app that lets you upload media files (not >> necessarily in the admin site) but serves them through a view instead >> of as static files via the web server? I need to control access to the >> media using permissions. Thanks > > Serving media usi

Re: Django app that uploads media files and servers them through a view?

2010-09-30 Thread Jirka Vejrazka
>> Is anyone aware of a Django app that lets you upload media files (not >> necessarily in the admin site) but serves them through a view instead >> of as static files via the web server? I need to control access to the >> media using permissions. Thanks > > Serv

Re: Django app that uploads media files and servers them through a view?

2010-09-30 Thread Thomas Weholt
On Thu, Sep 30, 2010 at 1:20 PM, Stodge wrote: > Is anyone aware of a Django app that lets you upload media files (not > necessarily in the admin site) but serves them through a view instead > of as static files via the web server? I need to control access to the > media using permiss

Django app that uploads media files and servers them through a view?

2010-09-30 Thread Stodge
Is anyone aware of a Django app that lets you upload media files (not necessarily in the admin site) but serves them through a view instead of as static files via the web server? I need to control access to the media using permissions. Thanks -- You received this message because you are

Re: Deploying application media files

2010-08-06 Thread Alessandro Ronchi
2010/8/6 Reinout van Rees : > Yes, it is :-)  Django-staticfiles is an application that can do it for you. ... > Note: at djangocon.eu in Berlin, there were voices to make this > django-staticfiles solution standard in django 1.3. I'll try that. I think it's the perfect solution, and I hope it wi

Re: Deploying application media files

2010-08-06 Thread Reinout van Rees
On 08/06/2010 09:54 AM, Alessandro Ronchi wrote: I have always used a symbolic link to deploy with apache all my django libraries media files. But now I need a more solid way to deploy those files, without concerning about symlinks I need to make after libraries install. What solution do you

Deploying application media files

2010-08-06 Thread Alessandro Ronchi
I have always used a symbolic link to deploy with apache all my django libraries media files. But now I need a more solid way to deploy those files, without concerning about symlinks I need to make after libraries install. What solution do you use? Apache aliases? As far as I know, it'

Media files from PostgreSQL

2010-07-02 Thread Daniel Espinosa
Hi all, Does any one know how to serve files stored in a PostgreSQL database? I have a PHP application I want to migrate to Django, but I found it just serve files stored on the disk, but not as Large Binary Object of PostgreSQL, where they are stored by the PHP app. -- Trabajar, la mejor arma

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
cal/lib/python2.6/dist-packages/django/contrib/ > > > > > > > admin/media/ > > > > > > > > > > > > > > /usr/local/lib/python2.6/dist-packages/django/contrib/admin/ > > > > > > > media/> > > > > > >

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
min/ > > > > > > media/> > > > > > > Order deny,allow > > > > > > Allow from all > > > > > > > > > > > > Change this to: > > > > > >   > > > > admin/media/> > > > > >   Options Index

Re: Serving media files

2010-06-20 Thread Graham Dumpleton
gt; > > > > > > > > > Change this to: > > > > >   > > > admin/media/> > > > >   Options Indexes > > > >   Order deny,allow > > > >   Allow from all > > > >   > > > > > Then access the URL:

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
b server via the browser. You should get a response > > > something like: > > > > Index of /media > > > >         Name    Last modified   Size    Description > > >         Parent Directory                 - > > >         css/    09-Jun-2010 11:46        - &

Re: Serving media files

2010-06-20 Thread Graham Dumpleton
; Index of /media > > >         Name    Last modified   Size    Description > >         Parent Directory                 - > >         css/    09-Jun-2010 11:46        - > >         img/    09-Jun-2010 11:46        - > >         js/     09-Jun-2010 11:46        - > > > If you

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
Is these setting of my setting.py files are correct ? setting is :- MEDIA_ROOT = '/home/your_name/mysite/media/' MEDIA_URL = 'http://localhost/media' ADMIN_MEDIA_PREFIX = '/media/' On Jun 20, 2:08 pm, Jagdeep Singh Malhi wrote: > On Jun 19, 10:36 pm, Justin Myers wrote:> Have you set > y

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
get a response > something like: > > Index of /media > >         Name    Last modified   Size    Description >         Parent Directory                 - >         css/    09-Jun-2010 11:46        - >         img/    09-Jun-2010 11:46        - >         js/     09-Jun-20

  1   2   3   >