Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2219 closed defect (invalid)

Skip the step to edit the settings.py

Reported by: Jza Owned by: Jacob
Component: Documentation Version: 0.91
Severity: minor Keywords: settings.py, database, development server,
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The tutorial1 http://www.djangoproject.com/documentation/tutorial1/ has a tiny bug between the project start and the development server part. At no point they stop to configure the setting, this cause an error for not finding a running database. I suggest to put a paragraph to configure the database before the development server. Or make a note that the following is ok until you configure the setting file:

1	python manage.py runserver  
2	Validating models...  
3	Unhandled exception in thread started by <function inner_run at 0xb78d217c>  
4	Traceback (most recent call last):  
5	  File "/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py", line 757, in inner_run  
6	    validate()  
7	  File "/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py", line 741, in validate  
8	    num_errors = get_validation_errors(outfile)  
9	  File "/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py", line 634, in get_validation_errors  
10	    import django.models  
11	  File "/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/models/__init__.py", line 1, in ?  
12	    from django.core import meta  
13	  File "/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/meta/__init__.py", line 3, in ?  
14	    from django.core import db  
15	  File "/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/db/__init__.py", line 23, in ?  
16	    raise ImproperlyConfigured, "Could not load database backend: %s. Is your DATABASE_ENGINE setting (currently, %r) spelled correctly? Available options are: %s" % \  
17	django.core.exceptions.ImproperlyConfigured: Could not load database backend: No module named psycopg. Is your DATABASE_ENGINE setting (currently, 'postgresql') spelled correctly? Available options are: 'ado_mssql', 'mysql', 'postgresql', 'sqlite3'  }}}

Change History (2)

comment:1 by Adrian Holovaty, 18 years ago

Resolution: invalid
Status: newclosed

The docs you were reading apply to the Django development version, not 0.91. You're looking for the 0.91 docs.

comment:2 by Adrian Holovaty, 18 years ago

milestone: Version 0.91

Milestone Version 0.91 deleted

Note: See TracTickets for help on using tickets.
Back to Top