Skip to content

References

The content in this book is based on the following sources:

Not Covered (yet)

  • Databases Notes
  • Database Routers
  • Models page and reorganize (May be move managers and exceptions to CRUD file since those exceptions occur only at retrieving time)
  • Exceptions in Django (ValidationError, IntegrityError etc. apart from Model-specific ones) Besides the model-specific ones, you’ll often run into these:

ValidationError – when calling full_clean() or during form/model validation. IntegrityError (from django.db) – database constraint failures (e.g., unique constraint, foreign key violations). DatabaseError – base class for database-related errors. ObjectDoesNotExist – base class for all DoesNotExist exceptions. FieldError – if you reference a bad field name in a query. ProtectedError / RestrictedError – raised on delete() if on_delete=PROTECT or RESTRICT prevents deletion.