title: AttributeError: module 'app' has no attribute 'route'
body: <p><strong>attendanceproject/app/__init.py__</strong></p>
  
  <pre><code>from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  
  app=Flask(__name__)
  app.config.from_object('config')
  db=SQLAlchemy(app)
  
  from app import dbmodels, routes, forms
  </code></pre>
  
  <p><strong>attendanceproject/app/routes.py</strong></p>
  
  <pre><code>from app import app
  from app import db
  from flask import render_template,url_for,session,request
  import app.forms
  
  @app.route('/index')
  def index():
      return render_template('index.html')
  
  @app.route('/signin.html',methods=['GET','POST'])
  def signin():
      form=Signinform()
      if request.method=='POST':
          if form.validation==False:
              flash("Please enter all the fields")
              return render_template('signin.html',form=form)
  </code></pre>
  
  <p><strong>attendanceproject/run.py</strong></p>
  
  <pre><code>from app import app
  from app import db
  import app.dbmodels
  
  db.create_all()
  app.run(debug=True)
  </code></pre>
  
  <p><strong>error thrown</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "run.py", line 1, in &lt;module&gt;
      from app import app
    File "D:\Python projects\attendance project\app\__init__.py", line 11, in     &lt;module&gt;
      from app import dbmodels, routes, forms
    File "D:\Python projects\attendance project\app\routes.py", line 6, in &lt;module&gt;
      @app.route('/index')
  AttributeError: module 'app' has no attribute 'route'
  </code></pre>
  
  <p>In need of assistance . i can't quite get why the error!!</p>