MCPcopy
hub / github.com/django/django / handle

Method handle

django/contrib/sessions/management/commands/clearsessions.py:13–21  ·  view source on GitHub ↗
(self, **options)

Source from the content-addressed store, hash-verified

11 )
12
13 def handle(self, **options):
14 engine = import_module(settings.SESSION_ENGINE)
15 try:
16 engine.SessionStore.clear_expired()
17 except NotImplementedError:
18 raise CommandError(
19 "Session engine '%s' doesn't support clearing expired "
20 "sessions." % settings.SESSION_ENGINE
21 )

Callers

nothing calls this directly

Calls 2

CommandErrorClass · 0.90
clear_expiredMethod · 0.45

Tested by

no test coverage detected