Does anyone know why django doesn't render pages with trailing slashes? I have a template that looks something like this:
templates/ - _base.html - index.html - work/ - subfold1/ -sub1_index.html - subfold2/ - f1_index.html - fold2/ - subfold1/ - subfold2/ - f2_index.html - fold3/ - subfold1/ - subfold2/ - f3_index.html and I have a django project that I named it "mysite" 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/"). Cannot see the CSS stuff, even if I removed the "/" before "$" I would really appreciate it if someone can help me. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---