23 lines
822 B
Python
23 lines
822 B
Python
from django.views.generic.base import RedirectView, TemplateView, View
|
|
from django.views.generic.dates import (
|
|
ArchiveIndexView, DateDetailView, DayArchiveView, MonthArchiveView,
|
|
TodayArchiveView, WeekArchiveView, YearArchiveView,
|
|
)
|
|
from django.views.generic.detail import DetailView
|
|
from django.views.generic.edit import (
|
|
CreateView, DeleteView, FormView, UpdateView,
|
|
)
|
|
from django.views.generic.list import ListView
|
|
|
|
__all__ = [
|
|
'View', 'TemplateView', 'RedirectView', 'ArchiveIndexView',
|
|
'YearArchiveView', 'MonthArchiveView', 'WeekArchiveView', 'DayArchiveView',
|
|
'TodayArchiveView', 'DateDetailView', 'DetailView', 'FormView',
|
|
'CreateView', 'UpdateView', 'DeleteView', 'ListView', 'GenericViewError',
|
|
]
|
|
|
|
|
|
class GenericViewError(Exception):
|
|
"""A problem in a generic view."""
|
|
pass
|