Skip to content

Unable to create the database tables from scratch #150

@ixe013

Description

@ixe013

I am trying out danseschool, it looks like it has all I need for my non-profit ballet studio. Unfortunately, I can't get it to launch locally, following the guide here : https://django-danceschool.readthedocs.io/en/latest/installation_development.html

When I launch python3 manage.py migrate (or createsuperuser or any other Django command) I always get an error about missing tables:

django.db.utils.OperationalError: no such table: financial_expenseitem

I ran manage.py under Python pdb debugger, and I can confirm the path to the sqlite3 database is resolved correctly:

(Pdb) pp DATABASES
{'default': {'ENGINE': 'django.db.backends.sqlite3',
             'NAME': '/home/ixe013/src/clients/espace_variation/danceschool/espacevariation/db.sqlite3'}}

The file is there, but it has no tables (somewhat expected, because I am just getting started):

$ sqlite3 /home/ixe013/src/clients/espace_variation/danceschool/espacevariation/db.sqlite3
SQLite version 3.31.1 2020-01-27 19:55:54
Enter ".help" for usage hints.
sqlite> .tables
sqlite> .quit

What did I miss that will allow me to create the initial tables?

+Here is an animated gif of my attempt:
danceschool-no-tables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions