You have done a lot of dark magic. I recommend you to start over again and just put your application before "shop" in your INSTALLED_APPS. Then create the customized templates again and everything should be ok.
Cheers, Tomas
On Friday, October 18, 2013 3:57:38 PM UTC+2, Arthur Gonçalves wrote:Dear Gordon, hello!
I'm trying to override django-shop templates (especially the base.html) but following your advice bellow causes no changes (django-shop still uses its default templates).
What I've done so far:
$ django-admin startproject testshop
$ cd testshop
$ django-admin startapp myshop
According to http://django-shop.readthedocs.org/en/latest/getting-started.html, I've correctly created a virtualenv with all dependencies installed with pip, edited testshop/settings.py and testshop/urls.py and synced/migrated the database. Then,
$ cp -Rf ~/.virtualenvs/shop/lib/python2.7/site-packages/shop/templates myshop/
Then, I've edited testshop/myshop/templates/shop/base.html, but nothing happens. I tried to rename testshop/myshop/templates/shop to testshop/myshop/templates/myshop and nothing happened too.
What am I doing wrong?
Kind regards,
Arthur
On Tuesday, September 25, 2012 7:51:46 PM UTC-3, gordon wrote:Hi Gordon,Thanks for replying. I'm new to django, so not sure how to override the templates? Is it the same way we override Admin base templates when we launch a production site? Or we just create templates and then use http://django-shop.readthedocs.org/en/latest/templatetags.html in our templates? Pardon my ignorance, I just want to get some things right. :)Best Regards,Maximilian JacksonMax,Yes, it would be the same way as the admin. For example, you could adjust the base shop template by copying "shop/templates/shop/base.html" to "yourapp/templates/shop/base.html" and changing the markup. Just make sure to define the same blocks. You need to make sure that "yourapp" is listed after "shop" in INSTALLED_APPS in your settings.py file.Thanks,Gordon--
You received this message because you are subscribed to the Google Groups "django-shop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-shop...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.