Problem orientation
Using Python shell to delete custom user table data
from MyApp import models
dU = models.SysUsers.objects.all()
dU.delete()
The error is as follows
django.db.utils.OperationalError: no such table: django_admin_log
terms of settlement
Direct migrate
may not work. Parameters should be added as follows
python manage.py makemigrations
python manage.py migrate --run-syncdb
Read More:
- Django. DB. Utils. Programmingerror: (1146, “table * doesn’t exist”) causes and Solutions
- How to solve the problem of error reporting in the introduction of Python Django no module name ‘Django. Utils. Six’
- django.core.exceptions . improveconfigured: error loading MySQL DB module. Django configuring MySQL database
- django.db.utils .IntegrityError: NOT NULL constraint failed: blog_ blog.author_ ID error resolution
- django.db.utils.IntegrityError: UNIQUE constraint failed: auth_user.username
- Solve the problem of error loading MySQL DB module. Encountered during Django project
- Importerror of Django error: no module named**
- When Python Django creates a database, can’t open file ‘ manage.py ‘: [Errno 2] No such file or directory
- django Class ‘xxx‘ has no ‘objects‘ member
- Some mistakes and solutions in Django
- Practice based on how to tango with Django 1.7 (1)
- Django. Using f () to solve the competition problem
- DB: the solution of table already exist when migrating
- Exception occurred when Django created app: from exc ^ syntaxerror: invalid syntax
- Error creating Django application: error on Python side.Exit code:1.
- django.core.exceptions . improverconfigured: mysqlclient 1.4.0 or new is required; you have
- Django project running service reported an error NameError: name ‘OS’ is not defined
- Solutions to Django is not importable in this environment
- Forbidden (403) CSRF verification failed. Request aborted. – Django
- IIS + Django project reported an error. The fastcgi process exited unexpectedly