Re: Media and Admin Media URL Issues

2006-07-27 Thread Nebojša Đorđević
On 26 Jul 2006, at 09:37, Tyson Tate wrote: In my project's root, I have my regular media in "media/" and the admin media in "media/admin/". For some reason, I can't access anything under "media/". My server just gives me a 404. Everything under "media/" has 777 permissions. .htaccess: Rewri

Re: Media and Admin Media URL Issues

2006-07-27 Thread SmileyChris
Tyson Tate wrote: > 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. Hi Tyson Regarding MEDIA_URL, check out that link that Jo

Re: Media and Admin Media URL Issues

2006-07-27 Thread Jonathan Buchanan
> Is there a way to avoid hard-coding media URLs? Perhaps there's a > global context variable like: > > picture > > Or some other way to do the equivalent instead of writing custom > views for everything? > > Thanks for the tip. > > -Tyson This article is about writing a custom template context p

Re: Media and Admin Media URL Issues

2006-07-26 Thread Tyson Tate
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

Re: Media and Admin Media URL Issues

2006-07-26 Thread SmileyChris
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. I'd guess that you just needed to symlink the media and admin media directories to your site root. --~--~

Re: Media and Admin Media URL Issues

2006-07-26 Thread Tyson Tate
Adding that to urls.py and removing the media/ rewrite rule from my .htaccess file seemed to do the trick. Thanks! -Tyson On Jul 26, 2006, at 1:22 AM, Aidas Bendoraitis wrote: > Do you have something like: > (r'^media/(?P.*)$', 'django.views.static.serve', > {'document_root': > '/home/oh

Re: Media and Admin Media URL Issues

2006-07-26 Thread Aidas Bendoraitis
Do you have something like: (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': '/home/ohgoditb/django_projects/fallingbullets/media/'}), in your urls.py? Regards, Aidas Bendoraitis [aka Archatas] On 7/26/06, Tyson Tate <[EMAIL PROTECTED]> wrote: > > I'm having some rather bef

Media and Admin Media URL Issues

2006-07-26 Thread Tyson Tate
I'm having some rather befuddling problems with getting my media URLs working for . In my project's root, I have my regular media in "media/" and the admin media in "media/admin/". For some reason, I can't access anything under "media/". My server just gives m