N
N
netromniks2019-08-27 07:22:44
Django
netromniks, 2019-08-27 07:22:44

Not passing context to django 2 wagtail when DEBUG=FALSE?

I'm using nginx - socket - wsgi - (django 2 wagtail 2.6) for development.
When the debug setting is disabled, the context only sends:
[{'True': True, 'False': False, 'None': None}]
When enabled, the context contains:
[{'True': True, 'False': False, ' None': None}, {'csrf_token': ._get_val at 0x7f254cf1dd08>>, 'request': , 'user': . at 0x7f254d0df730>>, 'perms': , 'messages': , 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40} , 'cart': , 'shopItems': ''}, {}, {'page': , 'self': , 'request': , 'post': , 'items': , , ]>

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
            os.path.join(BASE_DIR, 'templates'),
            os.path.join(PROJECT_DIR, 'templates'),
        ],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
                'cart.context_processors.cart',
                ],
        },
    },
]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question