title: Issues deploying django-nvd3 charts on heroku
body: <p>Did any one try to deploy django-nvd3 charts on to Heroku recently with success? I was trying to deploy django application using nvd3 charts on to heroku the whole weekend with no luck. It works perfectly fine in my dev enviornment (ubuntu). However when I try to push it to Heroku, am facing all sorts of errors.</p>
  
  <p>on Dev environment I installed npm (this includes node.js) and later installed bower and finally installed django-bower; as suggested on <a href="https://github.com/areski/django-nvd3" rel="nofollow">https://github.com/areski/django-nvd3</a>. I tried different charts and all work okay, with no issues</p>
  
  <p>However, when I was trying to push the code over to Heroku, I was hitting quite a few errors. Fixing one leads to others. I was wondering, if I need to add a package.json (to list npm dependencies like bower) and bower.json (to list bower dependencies like d3, nvd3) files to my repo, in the first place?</p>
  
  <p>I googled a lot for some documentation that gives gun-shot info on this(django, nvd3, bower, npm/node all married together), but couldn't see any</p>
  
  <p>Note: I will try to post heroku logs for more info.</p>
  
  <p>bower.json is given something like:</p>
  
  <pre><code>{
  "dependencies": {    
      "d3": "3.3.6",
      "nvd3": "1.1.12-beta"  
  }
  </code></pre>
  
  <p>package.json is given something like:</p>
  
  <pre><code>"engines": {    
      "node": "0.11.11",    
      "npm": "1.3.25"    
   },  
  "dependencies": {    
      "bower": "1.3.1"    
   }
  </code></pre>
  
  <p>Errors I encountered are something like:</p>
  
  <pre><code>1. gunicorn is not recognized - resolved this
  2. NameError: Name 'DATABASES' is not defined in settings.py - resolved this
  3. django.core.management is not found - resolved this
  4. Git error: fatal: HEAD corrupted/ cannot be deployed on to heroku - resolved this
  5. listening at localhost 127.0.0.1:8000 - am working on this. I think this is also to do with my DATABASES setting that is pointing at dj_database_url.config(default=['DATABASE_URL'])??
  </code></pre>
  
  <p>Is there any Git repo with <code>django+nvd3charts</code> that is deployed successfully on to Heroku? Can I have a look at the configuration? </p>
  
  <p>Also looking at <a href="https://github.com/areski/django-nvd3" rel="nofollow">https://github.com/areski/django-nvd3</a>; I do not see any bower dependencies or npm dependencies listed here, does it work like this? </p>
  
  <p>Or, can Heroku automatically install npm/bower without package.json and also can it look at settings.py file and by looking at bower dependencies, does Heroku also install those dependencies with out a need for bower.json file to specifically listing d3, nvd3 as dependencies? I suppose its not the case, as far as I could see</p>
  
  <p>Please suggest</p>