Hi, I have a lightTPD setup. Assume my django project is foo located at / home/foo, the document root is in /home/foo/public_html, and the django templates are in /home/foo/templates.
I've configured lightTPD as follows: ======================================= fastcgi.server = ( "/django.fcgi" => ( "main" => ( #"socket" => "/home/foo/django.socket" "host" => "127.0.0.1", "port" => 3033, ) ), "/admin.fcgi" => ( "admin" => ( #"socket" => "/home/foo/admin.socket" "host" => "127.0.0.1", "port" => 3034, ) ) ) alias.url = ( "/media/" => "/usr/lib/python2.5/site-packages/django/contrib/ admin/media/", ) url.rewrite-once = ( "^(/media.*)$" => "$1", "^(/static.*)$" => "$1", "^/favicon\.ico$" => "/media/favicon.ico", "^(/admin/.*)$" => "/admin.fcgi$1", "^(/.*)$" => "/django.fcgi$1" ) ======================================= Note that static listing in url.rewrite-once. I want to put my javascript, images, and css in public_html/static. The problem seems to come with the templates. I want to be able to say <img src="/static/img.jpg">. But that seems to want to look in /home/foo/templates/myView/static/ img.jpg. That sucks. I don't want to have to say <img src="foo.com/static/ img.jpg">. I also don't want to say <img src="127.0.0.1:80/static/ img.jpg"> when developing locally. Any solutions? By the way, my .com already exists, so it would be a nice if I could develop locally and use the former (foo.com/static/img.jpg) rather than use localhost. I should be able to configure my lightTPD to do that, right? Thanks! Ivan Kirigin www.kirigin.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---