Hi, I've been building a Django site using Lighttpd as a server for a
local sandbox. URLs that do not capture data to send to the view,
e.g.:

(r'^index$', 'Gallerie500.viewer.views.index'),

are working fine. However, galleries that are sending data in the
request, e.g.:

(r'^display/(\d)$', 'Gallerie500.viewer.views.obj_display'),

render the page, but without any static elements (i.e.: CSS and
Javascript).

The Django section of my lighttpd.conf looks like this:

# fcgi for Django
fastcgi.server = (
    "/Gallerie500.fcgi" => (
        "main" => (
            "socket" => "/tmp/test.sock",
            "check-local" => "disable",
        )
    ),
)

# It may be better to define these in Django settings, except that I
tried and
# it didn't work.
alias.url = (
    "/static/" => "/Users/jmags/Code/Gallerie500/static/"
)

url.rewrite-once = (
    "^(/static.*)$" => "$1",
    # "^/favicon\.ico$" => "/static/favicon.ico",
    "^(/.*)$" => "/Gallerie500.fcgi$1",
)

I left the MEDIA_ROOT and MEDIA_URL values in settings.py blank.
Again, for most pages this works fine. I'm not sending the Django fcgi
or Lighttpd instances to the background, and neither console reports
and error. I hope this looks familiar to somebody, thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to