On 2/9/14 1:13 AM, Mike wrote:
> I am working through the Django tutorial. Python was working. Python
> directory is still in my PATH. I made it through part 2 up until I
> tried to add the TEMPLATE_DIRS statement into mysite\settings.py. I
> don't know where the source of Django is so in the command prompt I
> began typing:
I'm guessing that you are still in the python interpreter. Try typing
"quit()" and see if you can exit back to the console.
- Tom
>
> python -c"
> import sys
> sys.path = sys.path[1:]
> import django
> print(django.__path__)"
>
> Of course, hitting enter after the, python -c " part didn't work so well and I laughed at myself for a second.
> But after that, invoking python from the command propmt does not produce errors or results. The interpreter does not load this way anymore, it just dumps me back at the propmt without feedback.
> Since .py files are associated to python, I tried running a couple scripts by name alone. That works fine. What happened to my interpreter?
>
> Thank you,
> Mike
>
> --
> 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...@googlegroups.com.
> To post to this group, send email to
django...@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/2840eb0e-4e1e-4841-b8b6-3938de7d1ab0%40googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.