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

Hotfix: Add missing __init__.py #40

Merged
merged 1 commit into from
Apr 12, 2021
Merged

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Apr 12, 2021

Overview

Add __init.py__ to core-cms to (hopefully) prevent error:

Apr 12 20:27:24 pprd portal_cms[119096]: django.core.exceptions.ImproperlyConfigured: The app module <module 'taccsite_custom.core-cms' (namespace)> has multiple filesystem locations (['./taccsite_custom/core-cms', '/code/taccsite_custom/core-cms']); you must configure this app with an AppConfig subclass with a 'path' class attribute.

Notes

  • Git will not track a folder with nothing in it (use a .gitignore file). Python will make an empty folder go bybye with an init.py in it. Depends on context. Probably got borked with git commit.

  • https://stackoverflow.com/a/28222093

    The problem was that I deleted an init.py file. Apparently, django uses them to know which folders are apps, so they are kind of important.

@wesleyboar wesleyboar requested a review from taoteg April 12, 2021 21:33
Copy link
Collaborator

@taoteg taoteg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@wesleyboar wesleyboar merged commit 75aebda into master Apr 12, 2021
@taoteg taoteg deleted the hotfix/add-missing-init branch April 12, 2021 22:01
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