mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 09:51:09 -05:00
Prevents 500 errors by filtering out parks and rides with null or empty slugs from trending lists and excludes them from database queries where slugs are required. Additionally, it adds conditional rendering in templates to handle parks without slugs gracefully. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 0bdea3fb-49ea-4863-b501-fa6f5af0cbf0 Replit-Commit-Checkpoint-Type: intermediate_checkpoint
74 lines
1.2 KiB
Plaintext
74 lines
1.2 KiB
Plaintext
modules = ["bash", "web", "nodejs-20", "python-3.13", "postgresql-16"]
|
|
|
|
[nix]
|
|
channel = "stable-25_05"
|
|
packages = [
|
|
"freetype",
|
|
"gdal",
|
|
"geos",
|
|
"gitFull",
|
|
"lcms2",
|
|
"libimagequant",
|
|
"libjpeg",
|
|
"libtiff",
|
|
"libwebp",
|
|
"libxcrypt",
|
|
"openjpeg",
|
|
"playwright-driver",
|
|
"postgresql",
|
|
"proj",
|
|
"tcl",
|
|
"tk",
|
|
"uv",
|
|
"zlib",
|
|
]
|
|
|
|
[agent]
|
|
expertMode = true
|
|
|
|
[workflows]
|
|
runButton = "Project"
|
|
|
|
[[workflows.workflow]]
|
|
name = "Project"
|
|
mode = "parallel"
|
|
author = "agent"
|
|
|
|
[[workflows.workflow.tasks]]
|
|
task = "workflow.run"
|
|
args = "ThrillWiki Server"
|
|
|
|
[[workflows.workflow]]
|
|
name = "ThrillWiki Server"
|
|
author = "agent"
|
|
|
|
[[workflows.workflow.tasks]]
|
|
task = "shell.exec"
|
|
args = "/home/runner/workspace/.venv/bin/python manage.py tailwind runserver 0.0.0.0:5000"
|
|
waitForPort = 5000
|
|
|
|
[workflows.workflow.metadata]
|
|
outputType = "webview"
|
|
|
|
[[ports]]
|
|
localPort = 5000
|
|
externalPort = 80
|
|
|
|
[[ports]]
|
|
localPort = 41923
|
|
externalPort = 3000
|
|
|
|
[[ports]]
|
|
localPort = 45245
|
|
externalPort = 3001
|
|
|
|
[deployment]
|
|
deploymentTarget = "autoscale"
|
|
run = [
|
|
"gunicorn",
|
|
"--bind=0.0.0.0:5000",
|
|
"--reuse-port",
|
|
"thrillwiki.wsgi:application",
|
|
]
|
|
build = ["uv", "pip", "install", "--system", "-r", "requirements.txt"]
|