Search code examples
djangopythonanywhere

How to initialize db.sqlite3 database in pythonanywhere?


I'm neewbie in pythonanywhere. I've just deploy my django project and all seems to be OK except I need initialize ma database first and I don't know how to do this. I can I get a python shell?

thanks for help


Solution

  • You can log in with SSH and then you will be able to populate your database through the command line or a shell

    ssh <username>@ssh.pythonanywhere.com
    

    Look at: https://help.pythonanywhere.com/pages/SSHAccess