Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

UnicodeEncodeError at /

'ascii' codec can't encode character u'\xc1' in position 16: ordinal not in range(128)
Request Method:    GET
Request URL:    http://localhost:8000/
Django Version:    1.7.4
Exception Type:    UnicodeEncodeError
Exception Value:    
'ascii' codec can't encode character u'\xc1' in position 16: ordinal not in range(128)
Exception Location:    /usr/lib/python2.7/encodings/utf_8.py in decode, line 16
Python Executable:    /usr/bin/python
Python Version:    2.7.12
Python Path:    
['/home/christian/\xc3\x81rea de Trabalho/CursoDjango/connectedin',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/home/christian/.local/lib/python2.7/site-packages',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/gtk-2.0']
Server time:    Thu, 29 Mar 2018 22:11:36 +0000
Environment:


Request Method: GET
Request URL: http://localhost:8000/

Django Version: 1.7.4
Python Version: 2.7.12
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'perfis')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/christian/Área de Trabalho/CursoDjango/connectedin/perfis/views.py" in index
  4.     return render(request, 'index.html')
File "/usr/local/lib/python2.7/dist-packages/django/shortcuts.py" in render
  50.     return HttpResponse(loader.render_to_string(*args, **kwargs),
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string
  170.         t = get_template(template_name, dirs)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in get_template
  144.     template, origin = find_template(template_name, dirs)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in find_template
  126.             loader = find_template_loader(loader_name)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in find_template_loader
  98.         TemplateLoader = import_string(loader)
File "/usr/local/lib/python2.7/dist-packages/django/utils/module_loading.py" in import_string
  26.     module = import_module(module_path)
File "/usr/lib/python2.7/importlib/__init__.py" in import_module
  37.     __import__(name)
File "/usr/local/lib/python2.7/dist-packages/django/template/loaders/app_directories.py" in <module>
  33. app_template_dirs = calculate_app_template_dirs()
File "/usr/local/lib/python2.7/dist-packages/django/template/loaders/app_directories.py" in calculate_app_template_dirs
  27.                 template_dir = template_dir.decode(fs_encoding)
File "/usr/lib/python2.7/encodings/utf_8.py" in decode
  16.     return codecs.utf_8_decode(input, errors, True)

Exception Type: UnicodeEncodeError at /
Exception Value: 'ascii' codec can't encode character u'\xc1' in position 16: ordinal not in range(128)
1 resposta
solução!

Problema resolvido era o acento da "Área de trabalho" onde estava o projeto