Wednesday, July 11, 2012

Re: Static File - help, for a question

On Thu, 12 Jul 2012 01:30:35 +0200, "Dott. Tegagni Alessandro"
<tefari.web@gmail.com> declaimed the following in
gmane.comp.python.django.user:

> Thanks Dennis, in settings.py, the situation are:
>

It's not the "settings.py" file I'm interested in... It's
django.conf.settings.py that is active in your later usage. Unless the
two are somehow the same file you may not be accessing what you think
you are!

What you typed as

from settings import STATIC_ROOT
from django.conf import settings
...
{'document_root', settings.STATIC_ROOT})

is, based on your imports, the same as

import django
...
{'document_root', django.conf.settings.STATIC_ROOT})

If you want the STATIC_ROOT from

from settings import STATIC_ROOT

then you need to use

...
{'document_root', STATIC_ROOT})



--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate