Skip to content

Commit

Permalink
🚧 (dashboard) update Django version, dependencies, and startup script
Browse files Browse the repository at this point in the history
Fixed Django to 5.1.2 in Pipfile. Added honcho in Pipfile and Pipfile.lock for task management. Modified start.sh to set the appropriate shebang, adjusted migrate and runserver commands, and added TODOS. Added `db.sqlite3` to .gitignore to exclude the default Django database from being tracked.
  • Loading branch information
ssorin committed Oct 29, 2024
1 parent ce8d917 commit fa7f81f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ share/python-wheels/
*.egg
MANIFEST

# Default django db
db.sqlite3

# Installed pipenv packages
.cache
.local
Expand Down
3 changes: 2 additions & 1 deletion src/dashboard/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ verify_ssl = true
name = "pypi"

[packages]
django = "*"
django = "5.1.2"
honcho = "==2.0.0"

[dev-packages]

Expand Down
10 changes: 9 additions & 1 deletion src/dashboard/Pipfile.lock

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

9 changes: 6 additions & 3 deletions src/dashboard/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# todo : mode debug or prod
#python manage.py flush --no-input
python manage.py collectstatic --noinput
python manage.py migrate
python manage.py runserver 0.0.0.0:8030
#python manage.py collectstatic --noinput
python dashboard/manage.py migrate
# todo : add the port (8030) in .env
python3 dashboard/manage.py runserver 0.0.0.0:8030

0 comments on commit fa7f81f

Please sign in to comment.