title: Django project structure / importing python views (beginner)
body: <p>I'm using django 1.4 and i've been largely following the free online Django Book up to now, my folder structure looks like this:</p>
  
  <pre><code>TestWebsite/
          TestApp/
                  __init.py
                  admin.py
                  models.py
                  views.py
          TestWebsite/
                  Webpage_Templates/
                          homepage.html
                  __init__.py
                  settings.py
                  urls.py
                  views.py
          manage.py 
  </code></pre>
  
  <p>So far i've just been rendering views in the TestWebsite sub directory and so haven't had any path issues.</p>
  
  <p>Now what i'd like to be able to do (and correct me if this is not how app integration should work), is:</p>
  
  <ul>
  <li>use the line <code>return render_to_response("homepage.html", {})</code> in
  <em>TestApp/views.py</em></li>
  <li>then i'd need to import <em>TestApp/views.py</em> into <em>TestWebsite/urls.py</em> so
  that i can then add that to the urlpatterns. ( I assume i'd also have a problem with having two imports with the same name- views?)</li>
  </ul>
  
  <p>I thought about using <code>PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))</code> like i've done in settings.py you but i still don't know how to handle the going up and down the directory structure. Plus it's not really a path i need anyway but a python import statement(i think) and i suppose those aren't really the same kettle of fish are they? You can tell i'm new to this. Would really appreciate some solid guidance!</p>