how to include tests in a distributable django app?
<p>I distribute a small django app that I wanted to write a test for. It uses some settings and I was importing </p>

<p><code>from django.conf import settings</code> </p>

<p>in the app file but this leaves me with a problem because the standalone app has no django project so how would one write and run tests on it?</p>

<p>My solution was to create a django project with the name of the app and then put all the distribution files such as </p>

<pre><code>setup.py
MANIFEST.in
</code></pre>

<p>in the project level directory and then indicate only the files I want to include with the distribution in the MANIFEST.in file. </p>

<p>MAINFEST.in:</p>

<pre><code>include myapp/*
</code></pre>

python django