[Answered ]-Django web app testing

2👍

The Django test runner uses a different database than your production data. If your site requires a Site to exist, you should either add it in your Test setUp, or you should require a fixture that loads the site.

0👍

Try putting “SITE_ID = 1” in your settings. This is part of the sites framework.

Leave a comment