django現在インストールエラーにつきまして

147 views
Skip to first unread message

makamaka32

unread,
Feb 6, 2016, 7:56:13 AM2/6/16
to Django users
お世話になります。
現在djangoを学習しようとしている者ですがインストール時にエラーが起こり先に進めないようになっております。

easy_installにてdjangoをダウンロードし
python manage.py startapp myapp まで進むと
importError: No module named mysite.settings
と表示されます。

こういった場合どのように対処すればよろしいでしょうか?
同じフォルダの中にはsettings.pyは存在するのですが。

誠に申し訳ございません。
回答どうかよろしくお願いいたします。

Sergiy Khohlov

unread,
Feb 6, 2016, 5:23:06 PM2/6/16
to django-users
 look like you have used pip or easy_install  for downloading  django
 Verify that  django is ok
python -c "import django; print(django.__path__)"

After this 

django-admin startproject mysite
 this command creates mysite dir  and  settings.py of course


Many thanks,

Serge


+380 636150445
skype: skhohlov

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9a31b441-6771-4078-844f-90da754bfd52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yoong Kang Lim

unread,
Feb 6, 2016, 7:52:18 PM2/6/16
to Django users
(日本語で話すのが久しぶりだけど... 笑)

"mysite" の中に"settings.py"と"__init__.py"がありますか?その二つのファイルがなければ、importするとerrorが起こります。
Reply all
Reply to author
Forward
0 new messages