前提・実現したいこと
Djangoのcreatesuperuserを実行したい
該当のソースコード
python
1NameError: name 'unicode' is not defined
試したこと
File "/usr/lib64/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 194, in get_input_data raw_value = input(unicode(messages, "utf-8").encode("utf-8"))
Djangoのファイルを上記のように修正したのですが変わらずエラーとなってしまいます。
raw_value = input(messages.encode("utf-8"))
これだとユニコードのまま表示されてしまいます。どのように対処すればいいのでしょうか?
補足情報(FW/ツールのバージョンなど)
Django2.1
python3.6
centos7
postgresql9.5
###9/8追記
元はraw_value = input(messages)
こちらです
https://qiita.com/tinaba/items/01bc72c100f97438a36e
このサイトを参考にdjangoをインストールしました
回答1件
あなたの回答
tips
プレビュー