Problem creating environment with Django

Asked

Viewed 120 times

0

I’m trying to create a project in virtualwrapper environment with virtualwrapper tool, in this environment I installed Jango but when trying to create a project with the command django-admin startproject meu-projeto it does not create the default files that are ( but creates the empty folder ) :

Filder de projeto django

And you have an error running the creation command ( already quoted ) :

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 found that article but I think it does not apply in this case ( because I checked the commands and the creation of the default files did not occur ), someone knows how I should proceed to solve ?

  • 1

    What version of Python and Django are you using?

  • python3 and Django in their latest version.

1 answer

0


I found this answer that seems to have a lot to do with what you are doing, because in the answers I saw that you are using python3

https://stackoverflow.com/questions/20251562/how-to-install-django-for-python-3-3

You are using pip3 to install the packages?

In time, you are trying to create a project with a hyphen. I tried to do the same by using python-2.7 and Django 1.10 and I get the following message:

$ django-admin startproject teste-com-hifem
CommandError: 'teste-com-hifem' is not a valid project name. Please use only numbers, letters and underscores.

Hugs and good sources!

  • Vlw, and I’m not using hyphens ( I just asked the question but in practice I put it like this : "site " ) ... solved thx.

  • Curiosity, what was the solution? Hugs!

  • I created another virtual machine and installed Django in its previous version. ( I changed the encoding of the new machine and restarted all services )

Browser other questions tagged

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