Performance of file-based sessions vs database-backed sessions

2015-03-27 Thread David Riddle
I am using Django 1.7, and I have read the documentation on
the SESSION_ENGINE setting. It is not clear to me what are the advantages
and disadvantages of using file-based sessions. Do file-based sessions have
better or worse performance than database-backed sessions? Are file-based
sessions appropriate for production environments with large amounts of
traffic?

Thank you,

David Riddle

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABX-mpWYMZ9GQqTduk4RoJfagPAbQ9%3DnChkcu0znqQxtxMBoiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Admin site in Django 1.8 tutorial giving CSRF errors

2015-05-06 Thread David Riddle
Hi,

I am working through the Django 1.8 tutorial. I finished part one and
am starting on part 2. I created an admin user but when I login to the
/admin page I receive a 403 Error because CSRF verification failed.

https://docs.djangoproject.com/en/1.8/intro/tutorial02/

Any idea what the problem is?

Thanks,

David R.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABX-mpU1bmzUGq_MrSwy9SQk8FeUFaOxFAvjwFJsEeDq5q_dkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin site in Django 1.8 tutorial giving CSRF errors

2015-05-07 Thread David Riddle
No I have not made any changes to the admin templates. I simply
followed the instructions in the tutorial. I am using Django's
runserver per the tutorial instructions. I am totally stumped.

David

On Thu, May 7, 2015 at 3:04 AM, aRkadeFR  wrote:
> Hey,
>
> You shouldn't see these errors since the templates with the form
> and so the CSRF token are generated from the contrib app admin.
>
> Could you provide us more details of the error? Did you override
> the admin templates?
>
> Thanks,
>
> aRkadeFR
>
>
> On 05/06/2015 10:03 PM, David Riddle wrote:
>>
>> Hi,
>>
>> I am working through the Django 1.8 tutorial. I finished part one and
>> am starting on part 2. I created an admin user but when I login to the
>> /admin page I receive a 403 Error because CSRF verification failed.
>>
>> https://docs.djangoproject.com/en/1.8/intro/tutorial02/
>>
>> Any idea what the problem is?
>>
>> Thanks,
>>
>> David R.
>>
>
> --
> aRkadeFR
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/554B1CA7.2090800%40arkade.info.
> For more options, visit https://groups.google.com/d/optout.



-- 
Always code as if the (person) who ends up maintaining your code will
be a violent psychopath who knows where you live.
 - M. Golding

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABX-mpX3v2hmctxD2TJqBGSx8Eg1Ki6JNNaByKqNKqSJmBieDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.