2017-07-01から1ヶ月間の記事一覧
Djangoで TypeError: argument to reversed() must be a sequence と出たときの対処法としてこちらを試してみてください。 少しわかりづらいかもしれませんが、 urls.py (urlディスパッチャ)の書き方で、もし以下のように、 波カッコがあれば 角カッコに変更…
from django.shortcuts import render のようなimport文で"unresolved reference"となってしまうことがあります。 そんな時は Preferences > Project: xxx > Project Interpreter の設定が違う環境となってしまっている可能性があるので、こちらを修正すれば…
virtualenvwrapperをインストールしたらこんなのが出た。 /usr/local/opt/python/bin/python2.7: No module named virtualenvwrapper virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module …