You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I override oscar_accounts app, because I want customize models, but dashboard templates doesn't load after that. Is it possible somehow reuse dashboard templates from original oscar_accounts app? Thank you!
Django's app template loader will not work in this case - because the core accounts app is no longer installed. What you can do is add the path to the core accounts template folder in your TEMPLATES['DIRS'] setting.
It seems that this is not the best solution for production, depending on the environment, the path to the folder may be different, and it will need to be specified for each case separately
Maybe the best way would be to spread the templates and models to different applications? for example, leave templates in oscar_accounts and transfer models to oscar_accounts.core, or vice versa, then the templates will work and the application with models can be forked using oscar_fork_app
I override oscar_accounts app, because I want customize models, but dashboard templates doesn't load after that. Is it possible somehow reuse dashboard templates from original oscar_accounts app? Thank you!
my_project.oscar_accounts.apps.py
my_project.oscar_accounts.models.py
settings.py
Error:
The text was updated successfully, but these errors were encountered: