Skip to content

[Question] how do you get django to recognize the dynamically created Event Models during makemigrations? #147

Closed Answered by wesleykendall
simkimsia asked this question in Q&A
Discussion options

You must be logged in to vote

I'm adding the model to the module here. Since this is added during loading of models.py, Django treats it just like any other model.

One annoyance with this approach is that type checkers and intellisense with IDEs won't recognize these models, but one can always directly create the model

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wesleykendall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #105 on September 02, 2024 17:48.