#19841: Problem in documentation "Writing your first Django app, part 1" with
manage.py runserver
-------------------------------+--------------------
     Reporter:  anonymous      |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Documentation  |    Version:  1.4
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 The documentation at
 https://docs.djangoproject.com/en/1.4/intro/tutorial01/ "Writing your
 first Django app, part 1" explains how to start the development server
 using
 {{{python manage.py runserver}}}
 However on systems where python3 is the default python interpreter, one
 gets an error like the following:

 {{{
 # python manage.py runserver
 Traceback (most recent call last):
   File "manage.py", line 8, in <module>
     from django.core.management import execute_from_command_line
 ImportError: No module named 'django'
 }}}

 It works fine if one runs
 {{{python2 manage.py runserver}}}

 Now to avoid confusion, since it is not always clear on the first sight,
 what interpreter runs and since the documentation gives no hint about,
 that you have to run manage.py with python2, it would be better if it told
 the new user to run the script itself, since the shebang line states the
 correct interpreter already.
 Therefore the documentation could be canged to
 {{{
 chmod +x manage.py
 ./manage.py runserver
 }}}
 and everything should work as expected without python2/3 confusion.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19841>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to