Я следую этому учебнику , и он создал папку миграции без каких-либо ошибок, но когда я вхожу на локальный хост: 8000 / admin и нажимаю города, я получаю OperationalError в / admin / weather / city /
models.py
from django.db import models
# Create your models here.
class City(models.Model):
name = models.CharField(max_length=25)
def __str__(self):
return self.name
class Meta:
verbose_name_plural = 'cities'
views.py
import requests
from django.shortcuts import render
# Create your views here.
def index(request):
url = 'http://api.openweathermap.org/data/2.5/weather?q={}&appid=###'
city = 'Las Vegas'
r = requests.get(url.format(city)).json()
city_weather={
'city':city,
'temperature':r['main']['temp'],
'description':r['weather'][0]['description'],
'icon' : r['weather'][0]['icon'],
}
context = {'city_weather': city_weather}
return render(request,'weather/weather.html',context)
после выполнения python manage.py makemigrations
python manage.py migrate
0001_initial
# Generated by Django 3.0.3 on 2020-03-18 02:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='City',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=25)),
],
options={
'verbose_name_plural': 'cities',
},
),
]
затем добавил код ниже в admin admin.py
from django.contrib import admin
from .models import City
# Register your models here.
admin.site.register(City)
После нескольких похожих вопросов и ответов я удалил папку миграции и снова выполнил python manage.py makemigrations
python manage.py migrate
, тоже попробовал python manage.py migrate --run-syncdb
, но все напрасно получили то же самое ошибка, пожалуйста, помогите застрять над этой ошибкой btw моя django версия 3.0.3
сообщение об ошибке 
команда сообщение с подсказкой 
ПРИМЕЧАНИЕ: - я добавил «погода» (имя моего приложения) в settings.py