D
D
Dmitry Vyatkin2015-12-30 17:37:33
Django
Dmitry Vyatkin, 2015-12-30 17:37:33

How to properly customize applications in django?

If I'm in a virtualenv, I install and connect to my project, an application, for example "django-accounts" and I need to override the properties or methods of views and use my templates, then how to do it right?
I have now created a new application in the project folder and in it I inherit and override the properties and methods of the application view that is installed in the virtualenv.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-12-30
@dim137

Templates: copy from the source app while maintaining the relative path
View: copy-paste into your own views, modify there, also rewriting urls for yourself
Models: copy-paste into your models
Customization of each app is a separate story.
Customizing views and models is a tricky business. It's easier to rewrite the app for yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question