Re: Media files not served automatically anymore in 1.3?
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. Based on feedback from the
community this release adds two new options to the runserver command
to modify this behavior:
--nostatic: prevents the runserver command from serving files
completely.
--insecure: enables serving of static files even if running with DEBUG
set to False. (This is not recommended!)
On Aug 25, 6:08 am, Reinout van Rees <rein...@vanrees.org> 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 (static_url) *are* served automatically in DEBUG mode,
> which is a nice change from django 1.2 where I had to enable
> django-staticfiles' static file handling by hand.
>
> Now... If I look in the 1.3 change notes and follow some pointers I end
> up athttps://docs.djangoproject.com/en/dev/howto/static-files/#django.conf...
>
> There I see an "example for serving MEDIA_URL ('/media/') during
> development". That's mentioned basically as an aside. So it looks like
> I'm right that the DEBUG mode media_url handing is gone now.
>
> 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?
>
> - Serving static_url automatically but omitting media_url is a bit
> strange if you ask me. Is this a bug?
>
> Reinout
>
> --
> Reinout van Rees http://reinout.vanrees.org/
> rein...@vanrees.org http://www.nelen-schuurmans.nl/
> "If you're not sure what to do, make something. -- Paul Graham"
--
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 email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home