Sorry I forgot to specify a thing.
The thing is to play with django on the console you need an actual
application to poke with. In order to Django to know how to deal with
that you have to tell it where resides the settings.py of your app so
you can play with its model and so on. "python manage.
I try but :
[EMAIL PROTECTED]:~/iti$ export DJANGO_SETTINGS_MODULE=.
[EMAIL PROTECTED]:~/iti$ python
Python 2.4.4c1 (#2, Oct 11 2006, 20:00:03)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from djan
raise EnvironmentError, "Could not import settings '%s' (Is it on
sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)
EnvironmentError: Could not import settings 'iti.settings' (Is it on
sys.path? Does it have syntax errors?): No module named iti.settings
AFAIK that's
3 matches
Mail list logo