On Jul 26, 2006, at 7:17 PM, SmileyChris wrote: > http://www.djangoproject.com/documentation/static_files/ says: > Using this method is inefficient and insecure. Do not use this in a > production setting. Use this only for development.
Inefficient and insecure? Blast. I'm using FCGI, so it looks like I'll have to add a subdomain that points to my media files and, subsequently, hunt down every single place that I've had to hard-code the URL in. Is there a way to avoid hard-coding media URLs? Perhaps there's a global context variable like: <a href="{% MEDIA_ROOT %}/uploads/a.jpg">picture</a> Or some other way to do the equivalent instead of writing custom views for everything? Thanks for the tip. -Tyson --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---