title: flask - easy application but with error 404 not found
body: <p>I am starting with flask, I went through many tutorials and everything worked. But I started my own application and I get only error 404 not found.</p>
  
  <p>Configuration of my apache virtual server is:</p>
  
  <pre><code>&lt;VirtualHost domain:80&gt;
     ServerAdmin webmaster@domain
     ServerName domain
     ServerAlias domain *.domain
  
     WSGIDaemonProcess test user=www-data group=www-data threads=5 home=/var/www-py/domain
     WSGIScriptAlias / /var/www-py/domain/domain.wsgi
  
   &lt;Directory /var/www-py/domain&gt;
      WSGIProcessGroup test
      WSGIApplicationGroup %{GLOBAL}
      WSGIScriptReloading On
      Order deny,allow
      Allow from all
   &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>domain.wsgi:</p>
  
  <pre><code>import sys, os
  
  current_dir = os.path.abspath(os.path.dirname(__file__))
  sys.path.append(current_dir)
  from domain import app as application
  </code></pre>
  
  <p>domain/__init__.py</p>
  
  <pre><code>import os, sys
  from flask import Flask
  from datetime import *
  from flask.ext.sqlalchemy import SQLAlchemy
  
  app = Flask(__name__)
  app.debug=True
  app.secret_key = 'mysecretkey'
  
  db = SQLAlchemy(app)
  </code></pre>
  
  <p>domain/views/index.py</p>
  
  <pre><code># -*- coding: utf-8 -*-
  from flask import Flask, request, session, g, redirect, url_for, \
  abort, render_template, flash
  
  @app.route('/')
  def index():
    return render_template('index.html')
  </code></pre>
  
  <p>That's all and easy application. Problem is that all applications which I tried was written in one file. Now I am trying to separated to classify it into files to be easier to manage bigger project.
  Please could you help me. 
  Thank you.</p>