Answer the question
In order to leave comments, you need to log in
When you try to execute the command - django-admin.py startproject mysite, it swears. What am I doing wrong?
Hello. I am new to the world of Python and Django. Installed Django, then tried to execute the command - django-admin.py startproject mysite, swears.
Traceback (most recent call last):
File "/home/nomad/.local/bin/django-admin", line 11, in
sys.exit(execute_from_command_line())
File "/home/nomad/.local/lib/python2 .7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/home/nomad/.local/lib/python2.7/site-packages/django/ core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/nomad/.local/lib/python2.7/site-packages/django/core /management/base.py", line 292,
self.stderr.write('%s: %s' % (e.__class__.__name__, e))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 13: ordinal not in range(128)
System - Ubuntu 18.04
Python - 2.7 and 3.6
My assumption is that it swears on Python 2.7, but I don't know how to fix it. Help solve the problem.
Answer the question
In order to leave comments, you need to log in
Python - 2.7 and 3.6
https://docs.djangoproject.com/en/2.2/releases/2.2/
Python compatibility¶
Django 2.2 supports Python 3.5, 3.6, and 3.7. We highly recommend and only officially support the latest release of each series.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question