I\'m encountering a very strange error. I have an app ID defined in my settings.py
file like so:
CARDSPRING_APP_ID = \'################\'
Create a file called context_processors.py
and write the following context processor:
from django.conf import settings
def cardspring(request):
return { 'CARDSPRING_APP_ID': settings.CARDSPRING_APP_ID }
Then add your.location.context_processors.cardspring
to TEMPLATE_CONTEXT_PROCESSORS
in your Django settings file, where your.location
is the location of your context_processors.py
file.