擅长:python、mysql、java
<p>Pycharm和Django设置之间存在差异。在</p>
<p>当Django设置试图连接到<code>''</code>时,Pycharm明确地连接到<code>localhost</code>。在</p>
<p>只需将<code>'localhost'</code>作为<code>HOST</code>Django设置就可以了。在</p>
<p><strong>请注意,正确的设置名称是大写<code>HOST</code>和{<cd6>},而不是小写<code>host</code>和{<cd8>}。</strong></p>