2015-06-16 02:07:31 +08:00
|
|
|
from django.views.generic.base import RedirectView, TemplateView, View
|
|
|
|
from django.views.generic.dates import (
|
|
|
|
ArchiveIndexView, DateDetailView, DayArchiveView, MonthArchiveView,
|
|
|
|
TodayArchiveView, WeekArchiveView, YearArchiveView,
|
|
|
|
)
|
2010-10-18 21:34:47 +08:00
|
|
|
from django.views.generic.detail import DetailView
|
2015-06-16 02:07:31 +08:00
|
|
|
from django.views.generic.edit import (
|
|
|
|
CreateView, DeleteView, FormView, UpdateView,
|
|
|
|
)
|
2010-10-18 21:34:47 +08:00
|
|
|
from django.views.generic.list import ListView
|
|
|
|
|
2013-10-18 19:25:30 +08:00
|
|
|
__all__ = [
|
|
|
|
'View', 'TemplateView', 'RedirectView', 'ArchiveIndexView',
|
|
|
|
'YearArchiveView', 'MonthArchiveView', 'WeekArchiveView', 'DayArchiveView',
|
|
|
|
'TodayArchiveView', 'DateDetailView', 'DetailView', 'FormView',
|
|
|
|
'CreateView', 'UpdateView', 'DeleteView', 'ListView', 'GenericViewError',
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2008-07-19 03:45:00 +08:00
|
|
|
class GenericViewError(Exception):
|
|
|
|
"""A problem in a generic view."""
|
|
|
|
pass
|