Django Oscar Templates

Posted on

Django Oscar Templates

Assuming you want to use Oscar's templates in your project, there are two options. You don't have to though – you could write all your own templates if you like.
Assuming you want to use Oscar's templates in your project, there are two. DjangoTemplates', 'DIRS': [ location('templates'), # templates directory of the project ] .
Domain-driven e-commerce for Django. Contribute to djangooscar/djangooscar development by creating an account on GitHub.
The easiest way to get access to the original Oscar templates is via their GitHub Repository. Just copy the templates you want to adapt to your project's templates folder – i.e. all files in djangooscar/src/oscar/templates/oscar/ should be copied to a directory called templates/oscar in your project.
Create a virtual environment and pip install DjangoOscar and Mezzanine.. copied Oscar's templates at Python3/Lib/site-packages/oscar/templates/oscar to my .
Add Bluelight's template directory directly before Oscar's.: TEMPLATES [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': .
The issue you're having is that your template names conflict with Oscar's. Oscar has it's own base.html , which is what the template loader will find if you list that .

Leave a Reply

Your email address will not be published. Required fields are marked *