from django.core.paginator import Paginator
from django.db import transaction
from houslyspace.models import *
import os

def get_secret_key():
    file_path = os.path.join(os.path.dirname(__file__), 'secret_key.txt')
    try:
        with open(file_path, 'r') as f:
            return f.read().strip()
    except FileNotFoundError:
        raise Exception("Secret key file not found.")

