How to properly override an application in Django?

I am running Satchmo. There are many applications, and I changed part of the source in the Product application.

So my question is how can I override this correctly, because the change is site-specific. Do I need to copy all Satchmo frames and put them into my project, or can I just copy one of the applications and put it in Satchmo> App> Products? (It seems like with templates)

thank

+5
source share
3 answers

, , , . satchmo\apps\product. .py INSTALLED_APPS 'product', 'myproject.product',

, , .

+4

"Django App" INSTALLED_APPS settings.py , Django , python " python". python, , sys.path.

, Python ( Django) , , sys.path , , , , .

Django-, Satchmo product, python, "" Satchmo product.

, , , , Satchmo, - /satchmo/apps/, /my_custom_path/my_project/. product /my_custom_path/my_project/product/. , Django settings.py, , , product Satchmo.

FYI: , Satchmo , python manage.py shell, import sys; print sys.path.

+3

, Satchmo .

python, , ( ) . , / , .

+2

All Articles