- Dev and prod both now run with the same exact docker configuration, except the .env file copied in. - Removed the `.env` file and added a new `.env.dev` file for development settings, including database configuration and API keys. - Introduced a `.envrc` file for automatic venv activation. - Updated `deploy.sh` to utilize `uv` for running management commands and added a command for building Tailwind CSS. - Created `docker-compose.yml` for local development with PostgreSQL, ensuring proper service dependencies. - Deleted unnecessary files such as `docker-compose_db_only.yml` and `requirements.txt` to streamline the project structure.
22 lines
673 B
Python
Executable file
22 lines
673 B
Python
Executable file
#!/usr/bin/env -S uv run
|
|
"""Django's command-line utility for administrative tasks."""
|
|
import os
|
|
import sys
|
|
|
|
|
|
def main():
|
|
"""Run administrative tasks."""
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_project.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()
|