Add /add page and cli.py for updating feeds

This commit is contained in:
Joakim Hellsén 2024-05-21 17:25:11 +02:00
commit 8cea0bd347
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
8 changed files with 130 additions and 57 deletions

View file

@ -1,20 +0,0 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main() -> None:
"""Run administrative tasks."""
os.environ.setdefault(key="DJANGO_SETTINGS_MODULE", value="feedvault.settings")
try:
from django.core.management import execute_from_command_line # noqa: PLC0415
except ImportError as exc:
msg = "Couldn't import Django. Have you run `poetry install` or `poetry shell`?"
raise ImportError(msg) from exc
execute_from_command_line(sys.argv)
if __name__ == "__main__":
main()