Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix docker compose up -d errors #52

Closed

Conversation

1Mark
Copy link

@1Mark 1Mark commented Jul 6, 2022

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 #38 but issue 2 started when trying to fix
issue #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

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
@hjwp hjwp closed this Aug 9, 2022
@1Mark
Copy link
Author

1Mark commented Aug 9, 2022

@hjwp do you want me to extract issue 2 into a separate commit?

@hjwp
Copy link
Contributor

hjwp commented Oct 3, 2022

yes please! (sorry i know this is years late, i'll take a look at fixing it myself one of these days, otherwise...)

@1Mark 1Mark deleted the fix_django_docker_compose branch October 3, 2022 13:07
@1Mark 1Mark restored the fix_django_docker_compose branch October 13, 2022 19:28
@1Mark
Copy link
Author

1Mark commented Oct 13, 2022

can't reproduce issue, but instead got a new issue when running pytest directly


ImportError: No module named 'djangoproject'

pytest-django could not find a Django project (no manage.py file could be found). You must explicitly add your Django project to the Python path to have it picked up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants