On Fri, Jun 19, 2009 at 3:58 PM, mojo <joem...@gmail.com> wrote: > > [snip] > in the "urls.py" file > ... > ... > (r'^work$', direct_to_template, {'template': 'work/f1_index.html'}), > (r'^work/w1/$', direct_to_template, {'template': 'work/subfold1/ > sub1_index.html'}), > ... > ... > > > when I open the page: (http://localhost:8000/work), then everything > looks fine, but wen I tried to add "/" at the end then I get some > errors (which I understand) > > If I changed the "urls.py" to... > ... > ... > (r'^work/$', direct_to_template, {'template': 'work/f1_index.html'}), > (r'^work/w1/$', direct_to_template, {'template': 'work/subfold1/ > sub1_index.html'}), > ... > ... > > and opened the page ("http://localhost:8000/work" or "http://localhost: > 8000/work/"), then I cannot see my CSS stuff. Just plain text in > arranged in a column. > > That happens too if I tried to open ("http://localhost:8000/work/ > w1/ <http://localhost:8000/work/%0Aw1/>"). Cannot see the CSS stuff, even > if I removed the "/" before "$" > > I would really appreciate it if someone can help me. >
You've left out of the puzzle how, exactly, you are specifying the CSS in your .html files. Based on the behavior it sounds like you have made the links relative but they need to be absolute. Notice it only works when the page including the CSS has only one level and doesn't have a trailing slash, meaning the last level is dropped before constructing a relative link. Dropping the trailing slash doesn't fix the http://localhost:80000/work/w1case because only the w1 is dropped then, not work. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---