On Tue, Apr 5, 2011 at 9:33 AM, yongzhen zhang <4...@live.cn> wrote: > Hi, > i have one problem with my apache2 work with static file. > In apache2/sites-available file: > <VirtualHost *:80> > ServerName www.imaboy.cn > ServerAlias shop.imaboy.cn > Alias /static /home/yongzhen/workspace/www/iStore/static > </VirtualHost> > I want use apache to route to my static file. It works somehow, like > if i type:imaboy.cn/static, i has the results .in my development > server i opened 8000 port, like that:http://imaboy.cn:8000/ .The > problem is that the static file is not shown, in the command window, > it shows: "GET /static/images/ipad2_6.jpg HTTP/1.1" 200 5175. Anyone > can help me? thanks a lot. >
It seems like you're trying to mix up the development server (./manage runserver) with Apache serving statics. I don't know why would you want that. If you want to serve statics from the development server, then you should read: http://docs.djangoproject.com/en/dev/howto/static-files/ See you, Andres -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.