django-project-architect

Django Project structure, recommended structure to share an extended auth “User” model across apps?

蹲街弑〆低调 提交于 2019-12-08 03:15:51
问题 I'm wondering what the common project/application structure is when the user model extended/sub-classed and this Resulting User model is shared and used across multiple apps. I'd like to reference the same user model in multiple apps. I haven't built the login interface yet, so I'm not sure how it should fit together. The following comes to mind: project.loginapp.app1 project.loginapp.app2 Is there a common pattern for this situation? Would login best be handled by a 'login app'? Similar to

Django Project structure, recommended structure to share an extended auth “User” model across apps?

女生的网名这么多〃 提交于 2019-12-06 16:38:08
I'm wondering what the common project/application structure is when the user model extended/sub-classed and this Resulting User model is shared and used across multiple apps. I'd like to reference the same user model in multiple apps. I haven't built the login interface yet, so I'm not sure how it should fit together. The following comes to mind: project.loginapp.app1 project.loginapp.app2 Is there a common pattern for this situation? Would login best be handled by a 'login app'? Similar to this question but more specific. django application configuration UPDATE Clarified my use-case above. I