Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copy this file to .env and fill in SECRET_KEY.
# Generate one with:
# python -c "import secrets; print(secrets.token_urlsafe(50))"
SECRET_KEY=

# Optional overrides (defaults shown):
# DEBUG=True
# ALLOWED_HOSTS=*
# CSRF_TRUSTED_ORIGINS=http://*
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ A Django-based cloud translation management system. Manages translation projects
Local dev uses SQLite by default — no database setup needed.

```bash
cp .env.example .env # then fill in SECRET_KEY
uv sync # or: pip install --group dev
python manage.py migrate
python manage.py runserver 0.0.0.0:8080
Expand Down
4 changes: 4 additions & 0 deletions kaplancloud/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
import os
from pathlib import Path

from dotenv import load_dotenv

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent

load_dotenv(BASE_DIR / ".env")


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ prod = [
"psycopg2-binary>=2.9,<3.0",
"django-tailwind>=4.4,<5.0",
"gunicorn>=25.0,<26.0",
"python-dotenv>=1.0,<2.0",
]
dev = [
{include-group = "prod"},
Expand Down
13 changes: 13 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading