Problem at server startup

72 views
Skip to first unread message

Sebastian Andres Guerra Montecino

unread,
Mar 27, 2015, 9:19:44 AM3/27/15
to django...@googlegroups.com
Hi everyone, i'm just started on django... and i have a problem :(. I install django on windows (with Setuptools and PIP, according to the documentation), create a new project, use migrate but throws me a mistake:

C:\Users\Kompressor\Documents\lalolando>python manage.py runserver 8080
Performing system checks...


System check identified no issues (0 silenced).
March 27, 2015 - 09:48:37
Django version 1.7.7, using settings 'lalolando.settings'
Starting development server at http://127.0.0.1:8080/
Quit the server with CTRL-BREAK.
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x03678390>
Traceback (most recent call last):
 
File "C:\Python34\lib\site-packages\django\utils\autoreload.py", line 222, in wrapper
    fn
(*args, **kwargs)
 
File "C:\Python34\lib\site-packages\django\core\management\commands\runserver.py", line 134, in inner_run
    ipv6
=self.use_ipv6, threading=threading)
 
File "C:\Python34\lib\site-packages\django\core\servers\basehttp.py", line 176, in run
    httpd
= httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
 
File "C:\Python34\lib\site-packages\django\core\servers\basehttp.py", line 117, in __init__
   
super(WSGIServer, self).__init__(*args, **kwargs)
 
File "C:\Python34\lib\socketserver.py", line 430, in __init__
   
self.server_bind()
 
File "C:\Python34\lib\site-packages\django\core\servers\basehttp.py", line 121, in server_bind
   
super(WSGIServer, self).server_bind()
 
File "C:\Python34\lib\wsgiref\simple_server.py", line 50, in server_bind
   
HTTPServer.server_bind(self)
 
File "C:\Python34\lib\http\server.py", line 135, in server_bind
   
self.server_name = socket.getfqdn(host)
 
File "C:\Python34\lib\socket.py", line 463, in getfqdn
    hostname
, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 7: invalid continuation byte

Please, someone can help me?? :)
thanks

Anderson Resende

unread,
Mar 28, 2015, 9:40:55 AM3/28/15
to django...@googlegroups.com
Put this code on first line in your files.py:

# -*- coding: utf-8 -*-


Maybe work!



Luis Zárate

unread,
Mar 28, 2015, 5:55:09 PM3/28/15
to django...@googlegroups.com
What is your machine name? It had a non ASCII character?    

Do you use __unicode___ ?  In python 3 is __str__
> --
> 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/56961c03-87af-4f8d-8c18-1080b88d446c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

--
"La utopía sirve para caminar" Fernando Birri



Reply all
Reply to author
Forward
0 new messages