Hi jsachs,

Could you reply to the list with a couple copy-pasted outputs to help
diagnose the problem?
1) From the window shell, could you run `python manage.py shell` and paste
the output? Could you also please run `dir` and paste that output?
2) Could you also trigger that same error the full error you are getting,
starting with "Traceback (most recent call last):" and ending where she
shell prints out the next line of '>>>' ?
3) After you run that, within the same python shell, can you get the result
of the python statement `import os; print
os.environ['DJANGO_SETTINGS_MODULE']`

-- Andrew


On Tue, Aug 11, 2015 at 11:56 AM, <[email protected]> wrote:

> 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 [email protected].
> To post to this group, send email to [email protected].
> 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
> <https://groups.google.com/d/msgid/django-users/98c81681-2008-44f3-9f27-937359768f49%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CA%2By5TLbBb1zSEN505rH1LfTZZewrv3Sm9XeNU6uN-AMTZ03KEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to