Sunday, January 5, 2020

Re: SyntaxError SECRET_KEY

My guess is that you have an unbalanced '(' on a previous line and the error doesn't get thrown until here (when it thinks maybe SECRET_KEY is a kwarg to the function call). What does the previous setting or two look like?

On Sun, Jan 5, 2020 at 3:06 PM 'Dash LaLonde' via Django users <django-users@googlegroups.com> wrote:
Well I can't go any further, I keep getting SyntaxError SECRET_KEY, the only thing I changed was I added another os.path.dirname to the
settings because that is where it exists. I also set the domain and ip address, neither of which should create the error. While this is a new
endeavor to learn something new, I can't waste time on this, when the only answer I can find the SyntaxError is due to incorrect spacing between command and setting.
Can only move it one spot in either direction and neither work, so if anyone has a better solution let me know, I would like to be able to
learn Django. this is how my settings look

 # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '(%_cwwe@d#gg&+$myg9c%f961^y(kfd*-q=81k28y%#q&*6%o*'

this is my error message

    SECRET_KEY = '(%_cwwe@d#gg&+$myg9c%f961^y(kfd*-q=81k28y%#q&*6%o*'
             ^
SyntaxError: invalid syntax
Thanks

--
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/0c5400fb-f27a-4530-8610-9efad5ad8b1f%40googlegroups.com.

--
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/CAD4ANxXeQq5AJxxOqgF1w-YPm%2BaiTDDNsg2VUK_Lg-eBVqr9%2Bw%40mail.gmail.com.

No comments:

Post a Comment