ArchiveXhrGraphs.as_view(), name='archive-xhr-graphs'), url(r'^statistics$', Statistics.as_view(), name='statistics'), url(r'^statistics/xhr/data$', StatisticsXhrData.as_view(), name='statistics-xhr-data'), url(r'^energy-contracts$', EnergyContracts.as_view(), name='energy-contracts'), url(r'^trends$', cache_page(settings.CACHES['default']['TIMEOUT'])(Trends.as_view()), name='trends'), url(r'^compare$', Compare.as_view(), name='compare'), # Technical information. url(r'^status$', Status.as_view(), name='status'), url(r'^status/xhr/check-for-updates$', XhrUpdateChecker.as_view(), name='status-xhr-check-for-updates'), # Generic redirects to external (help) pages. url(r'^docs-redirect$', DocsRedirect.as_view(), name='docs-redirect'), url(r'^feedback-redirect$', FeedbackRedirect.as_view(), name='feedback-redirect'), # Views requiring authentication. url(r'^export$', Export.as_view(), name='export'), url(r'^export/csv$', ExportAsCsv.as_view(), name='export-as-csv'), ]
EnergyContracts.as_view(), name='energy-contracts'), path('trends', Trends.as_view(), name='trends'), path('trends/xhr/avg-consumption', TrendsXhrAvgConsumption.as_view(), name='trends-xhr-avg-consumption'), path('trends/xhr/consumption-by-tariff', TrendsXhrElectricityByTariff.as_view(), name='trends-xhr-consumption-by-tariff'), path('compare', Compare.as_view(), name='compare'), path('compare/xhr/summary', CompareXhrSummary.as_view(), name='compare-xhr-summary'), # Technical information. path('status', Status.as_view(), name='status'), path('status/xhr/check-for-updates', XhrUpdateChecker.as_view(), name='status-xhr-check-for-updates'), # Generic redirects to external (help) pages. path('changelog-redirect', ChangelogRedirect.as_view(), name='changelog-redirect'), path('docs-redirect', DocsRedirect.as_view(), name='docs-redirect'), path('feedback-redirect', FeedbackRedirect.as_view(), name='feedback-redirect'), path('donations-redirect', DonationsRedirect.as_view(), name='donations-redirect'),
from dsmr_frontend.views.configuration import Configuration, ForceBackup from dsmr_frontend.views.notification import NotificationRead from dsmr_frontend.views.generic import DocsRedirect urlpatterns = [ # Public views. url(r'^$', Dashboard.as_view(), name='dashboard'), url(r'^archive$', Archive.as_view(), name='archive'), url(r'^archive/xhr/summary$', ArchiveXhrSummary.as_view(), name='archive-xhr-summary'), url(r'^archive/xhr/graphs$', ArchiveXhrGraphs.as_view(), name='archive-xhr-graphs'), url(r'^statistics$', Statistics.as_view(), name='statistics'), url(r'^trends$', cache_page(settings.CACHES['default']['TIMEOUT'])(Trends.as_view()), name='trends'), url(r'^compare$', Compare.as_view(), name='compare'), # Maintainance view. url(r'^status$', Status.as_view(), name='status'), # Docs. url(r'^docs$', DocsRedirect.as_view(), name='docs'), # Views requiring authentication. url(r'^export$', login_required(Export.as_view()), name='export'), url(r'^export/csv$', login_required(ExportAsCsv.as_view()), name='export-as-csv'), url(r'^configuration$', login_required(Configuration.as_view()), name='configuration'), url(r'^configuration/force-backup$', login_required(ForceBackup.as_view()), name='configuration-force-backup'), url(r'^notification-read$', login_required(NotificationRead.as_view()), name='notification-read'), ]