python - While trying to set up Django on Windows: AttributeError: 'Settings' object has no attribute 'DATABASES' -


i'm following these instructions in order set django on windows. have installed python 2.6, postgresql 8.4, psycopg 2.0.14 python 2.6 , latest version of django svn.

i'm following these instructions run test project (copied page linked above):

c:\documents , settings\john>cd c:\ c:\>mkdir django c:\>cd django c:\django>django-admin.py startproject testproject c:\django>cd testproject c:\django\testproject>python manage.py runserver 

when run last line, output:

validating models... unhandled exception in thread started <function inner_run @ 0x01ecb930> traceback (most recent call last):   file "j:\python26\lib\site-packages\django\core\management\commands\runserver.py", line 48, in inn er_run     self.validate(display_num_errors=true)   file "j:\python26\lib\site-packages\django\core\management\base.py", line 249, in validate     num_errors = get_validation_errors(s, app)   file "j:\python26\lib\site-packages\django\core\management\validation.py", line 22, in get_validat ion_errors     django.db import models, connection   file "j:\python26\lib\site-packages\django\db\__init__.py", line 14, in <module>     if not settings.databases:   file "j:\python26\lib\site-packages\django\utils\functional.py", line 273, in __getattr__     return getattr(self._wrapped, name) attributeerror: 'settings' object has no attribute 'databases' 

did forget database?

any appreciated. thank you!

edit:

seems problems (including one) caused because used development version of django svn. removed development version , installed django 1.1.1, , there no more strange error messages , server running!

the svn checkout version of django looking setting in settings.py:

databases = {     'default': {         'engine': 'django.db.backends.sqlite3',         'name': 'mydatabase'     } } 

this different way it's shown in django book , many tutorials.

checkout online doc.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -