mirror of
https://github.com/kennethreitz/photos.kennethreitz.org.git
synced 2026-06-05 06:46:13 +00:00
54bd5bc122
- Remove groups app and multi-user features (user listing, registration, @username profiles, SINGLE_TENANT toggle) - Switch from JWT/localStorage auth to Django session auth - Replace Alpine.js with HTMX + vanilla JS where needed - Add SiteConfig model for customizable site title/tagline - Add photo manager page (/manage/) with multi-select and bulk actions - Add python-dotenv so manage.py loads .env automatically - Server-render dashboard, search, collections (no client-side framework) - Keep vanilla JS only for upload (drag-drop/progress) and manage (multi-select) - Simplify gallery URLs from /@username/collections/ to /collections/ - Clean up API: remove groups/users endpoints, add /images/manage Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
712 B
Python
Executable File
28 lines
712 B
Python
Executable File
#!/usr/bin/env python
|
|
"""Django's command-line utility for administrative tasks."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
|
|
def main():
|
|
"""Run administrative tasks."""
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "exiftree.settings")
|
|
try:
|
|
from django.core.management import execute_from_command_line
|
|
except ImportError as exc:
|
|
raise ImportError(
|
|
"Couldn't import Django. Are you sure it's installed and "
|
|
"available on your PYTHONPATH environment variable? Did you "
|
|
"forget to activate a virtual environment?"
|
|
) from exc
|
|
execute_from_command_line(sys.argv)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|