File: urls.py

package info (click to toggle)
django-maintenance-mode 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 188 kB
  • sloc: python: 499; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 403 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- coding: utf-8 -*-

import django

if django.VERSION < (2, 0):
    from django.conf.urls import url as re_path
else:
    from django.urls import re_path

from maintenance_mode.views import maintenance_mode_off, maintenance_mode_on


urlpatterns = [
    re_path(r'^off/$', maintenance_mode_off, name='maintenance_mode_off'),
    re_path(r'^on/$', maintenance_mode_on, name='maintenance_mode_on'),
]