Re: MDN Locallibrary project - syntax error on 'export DJANGO_DEBUG=False'

2019-10-11 Thread John Martin
Try retyping the lines from scratch. You may have picked up a unicode 
version of single quote, or similar substitution, through copy/pasting.


John

On 11/10/2019 14:12, fishbite wrote:

Hi there,

I've been working on the MDN Locallibrary project and am just 
preparing to publish the website on Heroku.


I seem to be stumbling at the first hurdle though and hope someone can 
help.


The problem is a syntax error pointing to the following line of code 
in my settings.py file:


|
exportDJANGO_DEBUG=False
|

the following lines precede this with no errors:

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

|

|
*DEBUG =os.environ.get('DJANGO_DEBUG','')!='False'*
|

could someone please tell me why this is happening and how to fix it. 
The lines have been copied and pasted from the tutorial into the file, 
so I'm pretty sure there isn't a typo.


Thanks in advance.
--
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/d3b25700-4b4c-4c4f-b468-6f2d344e6951%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/59a52265-3e2f-2c3c-d587-67f2481a4660%40martinhome.org.uk.


Re: Session disposal

2006-01-08 Thread John Martin

Thanks Adrian. What I'm actually wondering about though is whether
there is a "proper" way to clear out a session entirely? Is it just a
matter of iterating through all of the keys and clearing them one by
one? And on that note, I keep feeling like a user, upon login, should
get a fresh session with a fresh ID, rather than reusing a cleaned up
second hand session. Or am I just worrying about nothing?

Thanks again.



Session disposal

2006-01-08 Thread John Martin

Is there any notion of creating or disposing of a session, further than
simply removing the user key from the current session (as is done in
the default auth implementation)? I have items (other than the user) in
the session that I don't want carried through logout/login sequences,
and I'm wondering when and how to get rid of them.

Thanks.