Re: SyntaxError SECRET_KEY

2020-01-05 Thread 'Dash LaLonde' via Django users
Hello,

Thanks for the response. I deleted that project and started a new one, got 
through the SyntaxError. I left it alone for now working on my website. Last 
issue I had was not being able to see the home page. I got the response 
Congrats page, but even though I changed the debug to false, it still showed 
true and wouldn't display the main page.

I am just being curious about Django, no reason to spend to much time on it 
right now. Hopefully I will get back to it tomorrow and see what I can figure 
out. I am following a video by TraversyMedia, so I don't have any emergency at 
the moment. Thanks though.

Dash LaLonde
dash.lalo...@protonmail.com
https://dashwoorkz.ca

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐ Original Message ‐‐‐
On Sunday, January 5, 2020 9:42 PM, Integr@te System  
wrote:

> Hi Dash,
>
> Let a look at this config:
>
> settings_secret.py
>
> # SECURITY WARNING: keep the secret key used in production secret!
>
> SECRET_KEY
>
> =
>
> '..key'
>
> settings.py
>
> from
>
> settings_secret
>
> import
>
> *
>
> and .gitignore
>
> # Secret Settings
>
> settings_secret
>
> .
>
> py
>
> Careful for path to file directory.
> Nice.
>
> On Mon, Jan 6, 2020, 04:13 Mohamed A  wrote:
>
>> Be careful your secret key contains a #
>>
>> Which comment everything after
>>
>> Le dim. 5 jan. 2020 à 22:06, 'Dash LaLonde' via Django users 
>>  a écrit :
>>
>>> 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+unsubscr...@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](https://groups.google.com/d/msgid/django-users/0c5400fb-f27a-4530-8610-9efad5ad8b1f%40googlegroups.com?utm_medium=email&utm_source=footer).
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> [https://groups.google.com/d/msgid/django-users/CAJenkLCFT8zC3%3DfQktt3tBfQGWMP2H41%2BM2Woqr1kJtEgm_6ow%40mail.gmail.com](https://groups.google.com/d/msgid/django-users/CAJenkLCFT8zC3%3DfQktt3tBfQGWMP2H41%2BM2Woqr1kJtEgm_6ow%40mail.gmail.com?utm_medium=email&utm_source=footer).
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> [https://groups.google.com/d/msgid/django-users/CAP5HUWq%3DHMJz9QoCDWtGxmDK%3D_OmMZ0_E5GRv5XHpSMD5YnhMw%40mail.gmail.com](https://groups.google.com/d/msgid/django-users/CAP5HUWq%3DHMJz9QoCDWtGxmDK%3D_OmMZ0_E5GRv5XHpSMD5YnhMw%40mail.gmail.com?utm_medium=email&utm_source=footer).

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/SthudHuLzjAFuKZpvlyECmzUEtfdd2pl0jBBkGPoVmkdUgQN-aTwUIyFRw0n_Ij7AOikYCu9YKl_Sj1865BIVxlY-OdhYthNmYQNPfMd120%3D%40protonmail.com.


Re: SyntaxError SECRET_KEY

2020-01-05 Thread Stephen J. Butler
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+unsubscr...@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
> <https://groups.google.com/d/msgid/django-users/0c5400fb-f27a-4530-8610-9efad5ad8b1f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@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.


Re: SyntaxError SECRET_KEY

2020-01-05 Thread Stephen J. Butler
On Sun, Jan 5, 2020 at 3:13 PM Mohamed A  wrote:

> Be careful your secret key contains a #
>
> Which comment everything after
>
>
Not when it's quoted as part of a string. It should be fine in this case.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD4ANxU5rhJ0FtR3UTpfs2MDKfcmb0fE%3D5VLcVkMb9TOb3UENg%40mail.gmail.com.


Re: SyntaxError SECRET_KEY

2020-01-05 Thread Integr@te System
Hi Dash,

Let a look at this config:

*settings_secret.py*

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '..key'

*settings.py*

from settings_secret import *

and *.gitignore*

# Secret Settings
settings_secret.py


Careful for path to file directory.
Nice.



On Mon, Jan 6, 2020, 04:13 Mohamed A  wrote:

> Be careful your secret key contains a #
>
> Which comment everything after
>
> Le dim. 5 jan. 2020 à 22:06, 'Dash LaLonde' via Django users <
> django-users@googlegroups.com> a écrit :
>
>> 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+unsubscr...@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
>> <https://groups.google.com/d/msgid/django-users/0c5400fb-f27a-4530-8610-9efad5ad8b1f%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJenkLCFT8zC3%3DfQktt3tBfQGWMP2H41%2BM2Woqr1kJtEgm_6ow%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJenkLCFT8zC3%3DfQktt3tBfQGWMP2H41%2BM2Woqr1kJtEgm_6ow%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP5HUWq%3DHMJz9QoCDWtGxmDK%3D_OmMZ0_E5GRv5XHpSMD5YnhMw%40mail.gmail.com.


Re: SyntaxError SECRET_KEY

2020-01-05 Thread Mohamed A
Be careful your secret key contains a #

Which comment everything after

Le dim. 5 jan. 2020 à 22:06, 'Dash LaLonde' via Django users <
django-users@googlegroups.com> a écrit :

> 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+unsubscr...@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
> <https://groups.google.com/d/msgid/django-users/0c5400fb-f27a-4530-8610-9efad5ad8b1f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJenkLCFT8zC3%3DfQktt3tBfQGWMP2H41%2BM2Woqr1kJtEgm_6ow%40mail.gmail.com.


SyntaxError SECRET_KEY

2020-01-05 Thread 'Dash LaLonde' via Django users
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+unsubscr...@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.