Hi Przemek, Is that running by runserver:8000? Is your django dev server serving static files? What log file is show?
On 8/3/07, Matt Davies <[EMAIL PROTECTED]> wrote: > Hi Przemek > > I do, but I hand the request from apache to Lighttpd, which in it's conf > file handles the serving of docs. > > I'm not sure but I think you need something extra in apche to tell it where > the static content is. > > > > On 03/08/07, Przemek Gawronski <[EMAIL PROTECTED]> wrote: > > > > Hi, I'm having some problems running Django behind an Apache with a > > mod_proxy. > > > > So my router transmits all it's communication on port 80 to 192.168.0.2, > > on which I've setup mod_proxy (with django server on 192.168.1.2, the > > networks see each other) > > > > <IfModule mod_proxy.c> > > ProxyRequests On > > ProxyPass /django/ http://192.168.1.2:8000/ > > ProxyPassReverse /django/ http://192.168.1.2:8000/ > > </IfModule> > > > > I do hit the login screen to my django app, but then all the files > > (static, js,...) and sub pages aren't served properly :( > > > > Here is a part of my urlpatterns: > > > > urlpatterns = patterns('', > > (r'^/js/(?P<path>.*)$', 'django.views.static.serve',{'document_root': > '/home/django/work/fw/media/'}), > > (r'^/css/(?P<path>.*)$', 'django.views.static.serve',{'document_root': > '/home/django/work/fw/media/'}), > > (r'^/accounts/login/$', 'django.contrib.auth.views.login ', > {'template_name': '/login.html'}), > > (r'^/accounts/profile/$', > 'django.views.generic.simple.redirect_to', {'url': > '/zlecenia/strona1'}), > > (r'^/$', ' django.contrib.auth.views.login', {'template_name': > '/login.html'}), > > (r'^/wyloguj/$', > 'django.contrib.auth.views.logout_then_login' ), > > (r'^/zlecenia/strona(?P<page>[0-9]+)/$', > limited_workorder_list, workorder_info_dict ), > > ... > > > > Any one uses django behind apache with mod_proxy? > > > > Przemek > > -- > > AIKIDO TANREN DOJO - Poland - Warsaw - Mokotow - Ursynow - Natolin > > info: http://www.tanren.pl/ phone: +48501516666 email: [EMAIL PROTECTED] > > > > > > > > > > > > > -- -- Michael --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---