Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8876757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:17:25+00:00 2026-06-14T19:17:25+00:00

I am trying to develop a web application in Flask, and I have noticed

  • 0

I am trying to develop a web application in Flask, and I have noticed that if I want to use SQLite3 as my database, then I have to input

DATABASE = 'flaskr.json'

However, if I want to use SQLAlchemy for my database implementation, I have to use something like

DATABASE = 'sqlite:////Users/jake/repos/flaskralchemy/flaskr.db

What is the significance of this change? Also, in all the examples that I have seen, no one creates an actual database on their server. What is going on?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:17:26+00:00Added an answer on June 14, 2026 at 7:17 pm

    I’m a little unclear what you’re asking, where you’re setting this DATABASE value and where the flaskr.json value is coming from. But I’ll give it a shot, and hopefully it’ll be of some use.

    So, obviously, you need to tell your app how to connect to your database. You generally set this up in the app configuration like so:

    app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
    

    For SQLlite, you just need a file path (as above) For MySQL, I have our app set up like so:

    app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://username:password@server.site.com/database'
    

    You can read way more than you ever wanted to know about this in the SQLAlchemy docs:

    http://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls

    Also, have you looked at the Flask-SQLAlchemy plugin? It gives you some nice tools to work with this.

    http://flask-sqlalchemy.pocoo.org/2.3/quickstart/#a-minimal-application

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to develop a web application that dispatch (Dispatcher) to multiple versions of
I'm trying to develop a web application that is going to be launched from
I'm trying to develop a web application with Novell LDAP Authentication . I have
I am trying to develop a web application that will do the following: Collect
I have a Web Application that I'm trying to move from Sun Application Server
I am trying to develop a client application that calls a RESTful web service.
I'm trying to develop a web application that mainly uses PHP but i'm using
I am trying to develop a web application using ASP.net MVC 2. For that
I'm trying to develop a Java web based application that can work flow different
I'm trying to develop a web application that would allow users to upload their

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.