Skip to content

OperationalError at / no such table: adoptions_pet #5

@sh108th

Description

@sh108th

Issue Overview

When starting the webserver in lesson 1, I get the above error.

Describe your environment

Using Windows 10, Google Chrome, Django 3.2.3

Steps to Reproduce

  1. In CMD -- 'python manage.py runserver'
  2. WARNINGS --adoptions.Pet: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
    HINT: Configure the DEFAULT_AUTO_FIELD setting or the AdoptionsConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
    adoptions.Vaccine: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
    HINT: Configure the DEFAULT_AUTO_FIELD setting or the AdoptionsConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
  3. Open http://localhost:8000/ via Chrome
  4. Get Error

Expected Behavior

To get the Django Default Load

Current Behavior

Error

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