title: Shopify Django app failing in shopify_app/views.py in finalize
body: <p>I created a Shopify app hosted on Heroku. I had to modify the name of the shopify app from shopify_app to shopifyapp for Heroku to recognize it as a Django app.</p>
  
  <p>If I visit my app directly though app-name.herokuapp/login and connect the app to my store, It correctly pulls my recent orders and products.</p>
  
  <p>If I visit the app through the app menu and it redirects to app-name.herokuapp/login/finalize it shows </p>
  
  <p>KeyError at /login/finalize/</p>
  
  <p>I haven't modified anything in shopify_app except changed it's name to shopifyapp everywhere.</p>
  
  <p>I suspect since the app cant finalize, that is why the links like this also don't work:
  https://{{ current_shop.domain }}/admin/orders/{{ order.id }}">{{ order.name }}
  They just direct to something like </p>
  
  <pre><code>    https://admin/orders/000000000
  </code></pre>
  
  <p>Can anyone help troubleshoot this problem with the shopify app? </p>
  
  <p>I've made my app repo public since it's still essentially just the demo app:
  <a href="https://github.com/dpetrillo740/scm" rel="nofollow">https://github.com/dpetrillo740/scm</a></p>
  
  <p>App is running at <a href="http://scmapp.herokuapp.com/" rel="nofollow">http://scmapp.herokuapp.com/</a></p>