title: Django App Install Script - How to add app to INSTALLED_APPS setting?
body: <p>I've written a Django app, and now I want to make it easy to deploy on multiple servers.</p>
  
  <p>The basic installation is:</p>
  
  <ol>
  <li>Copy the app folder into the Django project folder</li>
  <li>Add it to <code>INSTALLED_APPS</code> in <code>settings.py</code></li>
  <li>Run <code>./manage.py collectstatic</code></li>
  </ol>
  
  <p>This particular app doesn't need to use the DB, but if it did, I'd use south and run <code>./manage.py migrate</code>, but that's another story.</p>
  
  <p>The part I'm having trouble with is #2. I don't want to have to manually edit this file every time. What's the easiest/most robust way to update that?</p>
  
  <p>I was thinking I could use the <code>inspect</code> module to find the variable and then somehow append it, but I'm not having any luck. <code>inspect.getsourcelines</code> won't find variables.</p>