title: Flask - 'Request' object has no attribute 'methods'
body: <p>I'm doing a project Under flask, and i have a form wich interact with my Database. But when I load the page where is the form I'm having this error :</p>
  
  <blockquote>
    <p>AttributeError: 'Request' object has no attribute 'methods'</p>
  </blockquote>
  
  <p>I've take a look to other thread I haven't found my soluce so I'm requesting your help^^^</p>
  
  <p>Here is my app.py code :</p>
  
  <pre><code>@app.route('/add/', methods=['POST', 'GET'])
  def add () :
      if not session.get('logged_in'):
  
      return render_template('login.html')
  else:
  
      if request.methods == 'POST':
          nom = str(request.fom.get('nom'))
          lien = str(request.form.get('lien'))
          db = get_db()
          db.execute('INSERT INTO sites (nom, lien) VALUES(%(nom)s, %(lien)`s)',{'nom' : nom, 'lien' : lien})`
          db.commit()
  return render_template('add.html')
  </code></pre>
  
  <p>and my HTML :</p>
  
  <pre><code>{% extends 'layout.html' %}
  
  {% block titre %}
  Ajouter un site
  {% endblock %}
  
  {% block body %}
  &lt;h1&gt;Ajouter votre site&lt;/h1&gt;
  
  
  &lt;form method="POST"&gt;
          &lt;div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label"&gt;
            &lt;input class="mdl-textfield__input" type="text" id="nom" name="nom" required&gt;
            &lt;label class="mdl-textfield__label" for="nom"&gt;Nom du site&lt;/label&gt;
          &lt;/div&gt;
  
          &lt;div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label"&gt;
                  &lt;input class="mdl-textfield__input" type="text" id="lien" name="lien" required&gt;
                  &lt;label class="mdl-textfield__label" for="lien"&gt;lien du site&lt;/label&gt;
          &lt;/div&gt;
  
          &lt;input value="add" id="submit" type="submit"&gt;
        &lt;/form&gt;
  {% endblock %}
  </code></pre>
  
  <p>Thanx for your help.</p>