Friday, October 11, 2019

syntax error: export DJANGO_DEBUG=False

Hi there,

My first post to this group!

I've built the locallibrary project following the MDN tutorial and I'm now preparing to deploy the site on Heroku as described in the same tutorial and have added these lines to my settings.py file:

import os
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', 'cg#p$g+j9tax!#a3cup@1$8obt2_+&k3q+pmu)5%asj6yjpkag')

export DJANGO_DEBUG=False

I get:
SyntaxError: invalid syntax

Has anyone else encountered this problem and / or know why it is occuring or how to resolve the issue?

Thanks in advance for any help you can provide.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/779d99cf-2445-4dcf-9c37-e1f7d9ab7bf0%40googlegroups.com.

No comments:

Post a Comment