Allahverdiyev-Rashad / ToDoAppWithFlask

Flask,Jinja2,html,css,bootstrap
1 stars 0 forks source link

database url #1

Closed ysnghr closed 3 years ago

ysnghr commented 3 years ago

Baxdım proyektə. Ümumi proyektlə bağlı bir sıxıntı görmədim.

Lakin app run etmək istəyəndə bir problemlər qarşılaşdım.

Proyektin içərisində databasein URL səhv yerləşdirilib.

Direk öz rootundakı URL yerləşdirmək düzgün deyil.

Düzəliş edib belə bir kod yazdım.

Əvvəl: app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////Users/MSI GAMING/Desktop/ToDo/todo.db'

Sonra: app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///todo.db"

Allahverdiyev-Rashad commented 3 years ago

Salam çoxsağol)

On Mon, Nov 2, 2020, 14:39 Yasin Uğur notifications@github.com wrote:

Baxdım proyektə. Ümumi proyektlə bağlı bir sıxıntı görmədim.

Lakin app run etmək istəyəndə bir problemlər qarşılaşdım.

Proyektin içərisində databasein URL səhv yerləşdirilib.

Direk öz rootundakı URL yerləşdirmək düzgün deyil.

Düzəliş edib belə bir kod yazdım.

Əvvəl: app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////Users/MSI GAMING/Desktop/ToDo/todo.db'

Sonra: app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///todo.db"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Allahverdiyev-Rashad/ToDoAppWithFlask/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO7QOERLZ5TG6SSV4FZAMY3SN2D4LANCNFSM4THJT44A .