In the tutorial (http://docs.djangoproject.com/en/dev/intro/tutorial01/) I
do everything what is written, and in the
"Activating Models" section, when I run the:

python manage.py sql polls

I get the following message:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File
"/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line
340, in execute_manager
    utility.execute()
  File
"/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line
295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py",
line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py",
line 210, in execute
    translation.activate('en-us')
  File
"/usr/lib/python2.5/site-packages/django/utils/translation/__init__.py",
line 73, in activate
    return real_activate(language)
  File
"/usr/lib/python2.5/site-packages/django/utils/translation/__init__.py",
line 43, in delayed_loader
    return g['real_%s' % caller](*args, **kwargs)
  File
"/usr/lib/python2.5/site-packages/django/utils/translation/trans_real.py",
line 209, in activate
    _active[currentThread()] = translation(language)
  File
"/usr/lib/python2.5/site-packages/django/utils/translation/trans_real.py",
line 198, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File
"/usr/lib/python2.5/site-packages/django/utils/translation/trans_real.py",
line 181, in _fetch
    app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]),
appname[p+1:])
AttributeError: 'module' object has no attribute 'pools'

What do I do wrong ?

2008/12/6 Marek Wawrzyczek <[EMAIL PROTECTED]>

> On the page
> http://www.juiceanalytics.com/openjuice/django_settings_module/ I've found
> a script and after I run the script then it worked.
>
> Regards
>
> 2008/12/6 Marek Wawrzyczek <[EMAIL PROTECTED]>
>
> I've created a django application, and after that I get the same error.
>> Before I read Your post i switched to Ubuntu (and I'm still using it) to
>> check if the problem wasn't the operating system but on Ubuntu I get the
>> same error. How can I set this path, and where are stored django.db modules
>> defaultly on linux ?
>>
>> Regards,
>> Marek
>>
>> 2008/12/6 Roland van Laar <[EMAIL PROTECTED]>
>>
>>
>>> marekw2143 wrote:
>>> > Hi
>>> >
>>> > I've installed python 2.5.2 into D:\P25 folder.
>>> > Then i installed diango using python setup.py install.
>>> > After that, when i typed:
>>> >
>>> >
>>> >>>> import django
>>> >>>>
>>> >
>>> > everything was ok, but when i type:
>>> >
>>> >
>>> >>>> import diango.db
>>> >>>>
>>> >
>>> > i get the following message:
>>> >
>>> >
>>> >
>>> > Traceback (most recent call last):
>>> >   File "<stdin>", line 1, in <module>
>>> >   File "d:\P25\Lib\site-packages\django\db\__init__.py", line 9, in
>>> > <module>
>>> >     if not settings.DATABASE_ENGINE:
>>> >  <snip>
>>>
>>> python can't find your configuration settings.py file.
>>> You need to create a django application first.
>>> Read: http://docs.djangoproject.com/en/dev/intro/tutorial01/
>>> > What is the solution for this problem ?
>>> >
>>> >
>>> Regards,
>>>
>>> Roland van Laar
>>>
>>> >>>
>>>
>>
>>
>> --
>> Pozdrawiam,
>>
>> Marek Wawrzyczek
>>
>>
>>
>
>
> --
> Pozdrawiam,
>
> Marek Wawrzyczek
>
>
>


-- 
Pozdrawiam,

Marek Wawrzyczek

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to