I
I
Ilya Muntyan2020-02-07 23:55:16
linux
Ilya Muntyan, 2020-02-07 23:55:16

I can't create a project in Django, what should I do?

I installed django version 3 but when I create a project I only get a folder and I get
this error:
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in
sys.exit(execute_from_command_line ())
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/local/lib/ python2.7/dist-packages/django/core/management/__init__.py", line 356, 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/startproject.py", line 34, in handle
super(Command, self).handle('project', project_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 0xd0 in position 11: ordinal not in range(128)

5e3dceaf71d2d876599325.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Web Dentist, 2020-02-08
@BETS_05

Use python from 3.6 or Django 1.11

spoiler
5e3dd00f189ab931690554.png

D
Dzhemchik, 2020-02-08
@dzhem911

mb because the path is given in Cyrillic? Try ASCII path to use

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question