This is my issue:
After I installed Django and got it somewhat working, I started down
this tutorial: https://docs.djangoproject.com/en/dev/intro/tutorial01/
All was going well until I hit the part called "Playing with the API".
I'm doing this in Windows 7 Enterprise.
<code>
C:\Users\foobar\Development\Code\mysite>python manage.py shell
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit
(Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from polls.models import Poll, Choice
>>> import datetime
>>> Poll.objects.all()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Python27\lib\site-packages\django\db\models\query.py", line
69, in __
repr__
data = list(self[:REPR_OUTPUT_SIZE + 1])
File "C:\Python27\lib\site-packages\django\db\models\query.py", line
84, in __
len__
self._result_cache.extend(self._iter)
File "C:\Python27\lib\site-packages\django\db\models\query.py", line
273, in i
terator
for row in compiler.results_iter():
File "C:\Python27\lib\site-packages\django\db\models\sql
\compiler.py", line 68
0, in results_iter
for rows in self.execute_sql(MULTI):
File "C:\Python27\lib\site-packages\django\db\models\sql
\compiler.py", line 72
5, in execute_sql
sql, params = self.as_sql()
File "C:\Python27\lib\site-packages\django\db\models\sql
\compiler.py", line 59
, in as_sql
out_cols = self.get_columns(with_col_aliases)
File "C:\Python27\lib\site-packages\django\db\models\sql
\compiler.py", line 18
8, in get_columns
col_aliases)
File "C:\Python27\lib\site-packages\django\db\models\sql
\compiler.py", line 27
6, in get_default_columns
r = '%s.%s' % (qn(alias), qn2(field.column))
File "C:\Python27\lib\site-packages\django\db\models\sql
\compiler.py", line 43
, in quote_name_unless_alias
r = self.connection.ops.quote_name(name)
File "C:\Python27\lib\site-packages\django\db\backends\dummy
\base.py", line 15
, in complain
raise ImproperlyConfigured("You haven't set the database ENGINE
setting yet.
")
ImproperlyConfigured: You haven't set the database ENGINE setting yet.
>>>
</code>
I don't get what I'm doing wrong... seems like some small silly screw-
up... anyone know what I'm messing up?
--
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 http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment