import re import secrets from django.conf import settings from django.db import models from django.urls import reverse TAG_RE = re.compile(r'(?