File: __init__.py

package info (click to toggle)
django-dbbackup 4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 512 kB
  • sloc: python: 3,767; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Management commands to help backup and restore a project database and media"""

from pathlib import Path

import django

src_dir = Path(__file__).parent
with (src_dir / "VERSION").open() as f:
    __version__ = f.read().strip()
    """The full version, including alpha/beta/rc tags."""

VERSION = (x, y, z) = __version__.split(".")
VERSION = ".".join(VERSION[:2])
"""The X.Y version. Needed for `docs/conf.py`."""


if django.VERSION < (3, 2):
    default_app_config = "dbbackup.apps.DbbackupConfig"