I would configure the runtime environment using the function
from
management.py.
And I think that these are the modules to importing, and run
that
function:
--------------------
from django.conf import settings
from django.core.management import setup_environ
setup_environ(settings)
--------------------
But I get the nex error:
AttributeError: 'Settings' object has no attribute
'__file__'
--~--~---------~--~----~------------~-------~--~----~
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 htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|