title: how do you slugify a url?
body: <p>I'm using slugify, and I have no idea how to make my post title slugified, do I need to make a new column in my post? I've been stuck on this all day long.</p>
  
  <p>Any suggestions ?</p>
  
  <p><strong>Views.py</strong></p>
  
  <pre><code>@app.route('/posts/&lt;title&gt;')
  @login_required
  def show(title):
  
      link = db.session.query(Post).filter_by(title = title).one()
      link2 = slugify(link.title)
  
      return render_template("post.html", post=link2,  pid=id, title=link2)
  </code></pre>
  
  <p><strong>Models.py</strong></p>
  
  <pre><code>class Post(db.Model):
      __tablename__ = "posts"
      id = db.Column(db.Integer, primary_key=True)
      title = db.Column(db.String(80))
      body = db.Column(db.Text)
  
  
  
  
      def __init__(self, title, body):
          self.title = title
          self.body = body
  </code></pre>
  
  <p><strong>error message</strong></p>
  
  <pre><code>  File "C:\Program Files\Python35-32\lib\site-packages\sqlalchemy\orm\query.py", line 2760, in one
      raise orm_exc.NoResultFound("No row was found for one()")
  sqlalchemy.orm.exc.NoResultFound: No row was found for one()
  </code></pre>