[Python] database configuration in pyramid

Discussão em 'Python' iniciado por Stack, Abril 21, 2025.

  1. Stack

    Stack Membro Participativo

    I tried to create a sqlalchemy project in pyramid and when I run the server, I get this error,

    Pyramid is having a problem using your SQL database. The problem
    might be caused by one of the following things:

    1. You may need to run the "initialize_MyProject_db" script
    to initialize your database tables. Check your virtual
    environment's "bin" directory for this script and try to run it.

    2. Your database server may not be running. Check that the
    database server referred to by the "sqlalchemy.url" setting in
    your "development.ini" file is running.

    After you fix the problem, please restart the Pyramid application to
    try it again.


    when I check my development.ini file the sqlite database is configured as this,

    sqlalchemy.url = sqlite:///%(here)s/MyProject.sqlite


    What needs to changed in here to configure it correctly?

    I run on linux box.

    Continue reading...

Compartilhe esta Página