Hi guys, i'm trying implements paymen methos but i can't set properly the template overriding.
I have this project structure:
location = lambda x: os.path.join(os.path.dirname(os.path.realpath(__file__)), x)
THIRD_PARTY_APPS = [
'jet.dashboard',
'jet',
'axes',
'cashondelivery',
'django_extensions',
'oscarapi',
'paypal',
'payu',
'rest_framework',
'robots',
'widget_tweaks',
'webpack_loader',
]
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
# os.path.join(BASE_DIR, 'templates'),
location('templates'),
OSCAR_MAIN_TEMPLATE_DIR,
],
# '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',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.tz',
'django.template.context_processors.static',
'oscar.apps.search.context_processors.search_form',
'oscar.apps.promotions.context_processors.promotions',
'oscar.apps.checkout.context_processors.checkout',
'oscar.apps.customer.notifications.context_processors.notifications',
'oscar.core.context_processors.metadata',
],
'loaders': [
# ('django.template.loaders.cached.Loader', [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader',
# ]),
],
},
},
]
I inspect the templates whit debug toolbar and i found this:
But, i don't understand what happen here.
('django.template.loaders.cached.Loader', [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader',
]),
],
},
},
]
OSCAR_DASHBOARD_NAVIGATION += [
{
'label': _('Payments'),
'icon': 'icon-credit-card',
'children': [
# TODO: Group links by service
# TODO: Add detailed view urls (is it needed?)
{
'label': _('PayPal Express Transactions'),
'url_name': 'paypal-express-list',
},
{
'label': _('PayU Transactions'),
'url_name': 'payu-nonseamless-list',
},
{
'label': _('COD Transaction'),
'url_name': 'cashondelivery-transaction-list',
},
]
},
]
url(r'^checkout/paypal/', include('paypal.express.urls')),
url(r'^dashboard/paypal/express/', include(paypal.urls)),
url(r'^dashboard/payu/', include(payu.urls)),
url(r'^dashboard/cash-on/', include(cashon.urls)),