擅长:python、mysql、java
<p>google会产生这样的结果:<a href="http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/" rel="nofollow noreferrer">http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/</a></p>
<blockquote>
<p>You can change it through the Django admin interface, phpMyAdmin, or however you feel comfortable. It’s in the django_site table. When setting SITE_ID in settings.py it is the ID in this table.</p>
</blockquote>
<p>所以看起来您需要进入该表并将<code>example.com</code>更改为<code>127.0.0.1:8000</code>。在</p>