CodeQL library for Python
codeql/python-all 0.11.12 (changelog, source)
Search

Module PrivateDjango

INTERNAL: Do not use.

Provides models for the django PyPI package (that we are not quite ready to publicly expose yet). See https://www.djangoproject.com/.

Import path

import semmle.python.frameworks.Django

Predicates

django

Gets a reference to the django module.

Classes

DjangoFormClass

A class that is a subclass of the django.forms.Form class, thereby handling user input.

DjangoFormFieldClass

A class that is a subclass of the django.forms.Field class, thereby handling user input.

DjangoRouteHandler

A function that is a django route handler, meaning it handles incoming requests with the django framework.

DjangoRouteSetup

A data-flow node that sets up a route on a server, using the django framework.

DjangoViewClass

A class that we consider a django View class.

DjangoViewClassFromRouteSetup

A class that is used in a route-setup, with <class>.as_view(), therefore being considered a django View class.

DjangoViewClassFromSuperClass

A class that has a super-type which is a django View class, therefore also becoming a django View class.

DjangoViewClassHelper

A class that may be a django view class. In order to recognize a class as being a django view class, based on the as_view call, we need to be able to track such calls on any class. This is provided by the member predicates of this QL class.

Modules

DjangoImpl

Provides models for the django module.

DjangoRouteHandler

Provides a class for modeling new django route handlers.