I've just started out with Django-oscar, and I do think it will be an amazing framework to work with, as soon as I figure out why it is not behaving as expected 😛
So fare, I have followed the
tutorial to get started. But, I can't seem to get the part right, where I can customize the layout.
As written in the tutorial, I have setup the locations for my templates.
location = lambda x: os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', x)
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
location('templates'),
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'oscar.apps.search.context_processors.search_form',
'oscar.apps.checkout.context_processors.checkout',
'oscar.apps.customer.notifications.context_processors.notifications',
'oscar.core.context_processors.metadata',
],
},
},
]
and made a folder inside the application (simular to other Django projects), where I have put in the base.html file. But, no mather what I change inside the .html file, it has no effect on the project. So, I guess it is not detecting the Base.html file (or any other file in the template folder).
I might be missing something (even though I have followed the tutorial very carefully). But, I can't seem to figure out what I am doing wrong. Anyone who has some good knowledge on setting it up, so that I would be able to start making changes to the layout?