Yes! I've done it = ) I added a STATIC_PATH variable to my settings.py
which pointed to /static/leaguemanager so that in my templates I can
use static/css/style.css to reference a stylesheet. I added this to my
urls.py in my leaguemanager directory:

from django.conf.settings import STATIC_PATH
from django.conf.settings import DEBUG

if DEBUG:
    urlpatterns += patterns('',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': STATIC_PATH}),
    )

Took me bleedin' ages to work all that out! I think I was getting
confused about what files were actually being served by Django and
their references etc. It's also hard with so many people using many
different directory structures that it's difficult to relate their
project to your project. Maybe you guys at the djangoproject could
extend your template tutorials to include the use of static files?

At least I can sleep at night now.

Thanks to all.

m

m


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

Reply via email to