title: Flask importing files through Pycharm
body: <p>Following microblog tutorial on Flask: <a href="http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world" rel="nofollow">http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world</a></p>
  
  <p>In Pycharm, no matter how I structure or name the files, I cannot get the dev server to run if I separate the code and import the files. I also can't get it to inherit the codes no matter where I move the init, views, run files. The only way for me to get the server to run is to have all the commands execute on the same file. What am I doing wrong? </p>
  
  <p>I have it setup as: 
  Project 1 > app(directory) > tmp(directory) > run.py(file)</p>
  
  <p>app(directory) > static(directory) > templates(directory) > <strong>init</strong>.py(file) > views.py(file) (I have tried different arrangements.)</p>
  
  <p>Inside views.py: 
  from app import app</p>
  
  <p>Inside run.py:
  from app import app</p>
  
  <p>Inside <strong>init</strong>.py:
  from flask import Flask
  from app import views</p>
  
  <p>(I have tried many different combinations such as from app import app.views. from app import views as app_views. I have also tried renaming the directories/files, nothing is working.)</p>