I'm studying the Django Project tutorial 
<https://docs.djangoproject.com/en/1.8/intro/tutorial01/> using Python 2.7 
(because that's my department's current standard) and Django 1.8.2 (because 
that's the current stable version).

The tutorial says, "If you are still using Python 2.7, you will need to 
adjust the code samples slightly, as described in comments." What comments 
does it mean?

The section "Playing with the API" instructs me to run the command:

$ python manage.py shell
or
>>> import django
>>> django.setup()

Being a methodical sort, I tried both. The first works. The second gives me 
a bunch of errors, beginning with:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\Python27\lib\site-packages\django\__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)

I think it's complaining about an incompatibility between Python 2.7 and 
Python 3.2.

I can evade the immediate problem by using "python manage.py shell" 
instead, but I expect further problems in short order, and I need to know 
how to fix them.

So, where are these "comments" that tell me what to do? I don't see any in 
that part of the tutorial. I opened __init__.py, and there are no helpful 
comments there, either.

I could figure this out myself, but I can't see debugging my way through 
the entire Django codebase. I'm being paid to write an application, not fix 
up Django.

Either I'm missing the comments that the tutorial promised me, or it has 
left me in the lurch. Can someone explain, please?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/98c81681-2008-44f3-9f27-937359768f49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to