Django Error - Unicode Decode Error

Asked

Viewed 213 times

0

When trying to create an App in Django with the command django-admin.py startapp Name, such command raises the following error :

Traceback (most recent call last):

  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)

  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
    utility.execute()

  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 355, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)

  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)

  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)

  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/startapp.py", line 29, in handle
    super(Command, self).handle('app', app_name, target, **options)

  File "/usr/local/lib/python2.7/dist-packages/django/core/management/templates.py", line 162, in handle
    if new_path.endswith(extensions) or filename in extra_files:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)

I have to remove this 0xc3 ? or has some way of getting it to decode ?

Django 1.11

Paths I have tested:

/home/bezerk/Área de Trabalho/Blogger

/home/bezerk/Downloads

I researched in Stf, but mostly the question was in another context, not in Djando ( But in emoji and things like )

  • 1

    Does this happen in all the projects you create? If you create a new project without any code and then create an app, it also happens?

  • 1

    Does it not have to do with the folder that you are trying to start the project? Put her way for us there

  • Yes, in all projects, I added the paths to the body of the question for better visualization.

  • Possible duplicate of Django runserver does not work

  • ' Possible duplicate ' ?! - I asked before ******, and the error is not in run server because I checked the name ( By that table )

  • 1

    Because you asked first is not possible duplicate of an already answered, eheheh!. Vc tried to run runserver by spelling out the server’s ip and port, as suggested in that reply? No Stress! :-)

  • Ha ha, I said : 'the error is not in run server' because the same is before, precisely in the creation of the application, it is impossible for me to test the items said in question because even the application has not yet been generated because of the error ( Obs : My ' Sress ' is close to the affectionate answers I have received, even searching and formatting the question well ^ - ^ )

  • 1

    Probably,must be related to folders with accents... EX: /HOME/André/

  • My user name is ' Akira '.

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.