Skip to content

Commit

Permalink
fix docker compose up -d errors
Browse files Browse the repository at this point in the history
django app fails to boot for two reasons

Issue 1:
-------
ModuleNotFoundError: No module named 'alloc'
Fix:
app name needs to be the path
https://stackoverflow.com/a/67057826/5506988

Same as issue cosmicpython#38 but issue 2 started when trying to fix
issue cosmicpython#38

Issue 2:
-------
psycopg2.errors.UndefinedColumn: column c.relispartition does not exist
django version is not fixed and in django 4 something broke
https://stackoverflow.com/questions/69477858/django-error-column-does-not-exist-but-i-have-no-control-over-that-table#comment122830337_69477858

Fix:
Hardcode django version in requirements.txt
  • Loading branch information
Mark Abdel Malak committed Jul 6, 2022
1 parent 165435b commit 063f0d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# app
psycopg2-binary
django
django==3.2.7
dj-database-url

# tests
Expand Down
2 changes: 1 addition & 1 deletion src/djangoproject/alloc/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


class AllocConfig(AppConfig):
name = "alloc"
name = "djangoproject.alloc"

0 comments on commit 063f0d4

Please sign in to comment.