Saturday, May 25, 2013

Re: Poll tutorial: running the command 'python manage.py runserver' produces an error

The 'python manage.py runserver' by default runs the server on port 8000. But, your 8000 port must be getting used by some other application. Thus, 8001 works, which was free. The four digits are ports and the localhost is your IP address which is equal to 127.0.0.1. You may try this link to get the same result http://127.0.0.1:8001



Thanks,
Rishi


On 26 May 2013 01:16, Branko Majic <branko@majic.rs> wrote:
On Sat, 25 May 2013 12:40:08 -0700 (PDT)
Kokas <79papakon@gmail.com> wrote:

> Hello
>
> When I run the initially created project using the command 'python
> manage.py runserver' gives me
> Error: [Errno 10013]
>
> When I run this command though 'python manage.py runserver 8001', then I
> can see the site on http://localhost:8001
>
> Can you tell me why this happens and what are those 4 digit numbers after
> localhost?
>

The default port that is used by runserver (8000) is already in use by
some other application (or you may have started the Django development
already in another terminal).

The parameter your provided (8001) is used to specify an alternate port
on which the development server should listen. You can learn some more
from:

https://docs.djangoproject.com/en/1.5/ref/django-admin/#runserver-port-or-address-port

Best regards

--
Branko Majic
Jabber: branko@majic.rs
Please use only Free formats when sending attachments to me.

Бранко Мајић
Џабер: branko@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.

--
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+unsubscribe@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment