title: Problem with Database ”Could not parse rfc1738 URL from string”
body: <p>Error: Could not parse rfc1738 URL from string. I tried everything, I think and I cannot solve it.</p>
  
  <pre><code>app.config['SQLALCHEMY_DATABASE_URI'] = 'C:/dev/FlaskBlog/blog.db'
  
  db = SQLAlchemy(app)
  
  class Blogpost(db.Model):
      id = db.Column(db.Integer, primary_key=True)
      title = db.Column(db.String(50))
      subtitle = db.Column(db.String(50))
      author = db.Column(db.String(20))
      date_posted = db.Column(db.DateTime)
      content = db.Column(db.Text)
  </code></pre>
  
  <p>Problem appears when I try to post an article.</p>
  
  <p>Here is addpost route:</p>
  
  <pre><code>@app.route('/addpost', methods=['POST'])
  def addpost():
      if request.method == 'POST':
          title = request.form['title']
          subtitle = request.form['subtitle']
          author = request.form['author']
          content = request.form['content']
  
          post = Blogpost(title=title, subtitle=subtitle, author=author, date_posted=datetime.now())
  
          db.session.add(post)
          db.session.commit()
  
          return redirect(url_for('index'))
      else:
          return render_template('index.html')
  </code></pre>