Re: Reactive frontend + Session Authentication (+ csrf ?)

2024-07-10 Thread Swarup Selvaraj
. host front end in a domain and backend in another domain In case of option 1 (front end and backend hosted under the same domain) you can manage to use session authentication. You could design the login form in Django and redirect to the frontend url upon successful login. You need not have to worry

Re: Reactive frontend + Session Authentication (+ csrf ?)

2024-07-08 Thread Joseph Aidoo
tant at all) solution, the Login form is created by Svelte. Them >> submission: not the real submission, but under the Submit button Svelte >> sends credentials to Django using FetchAPI. Maybe this submission is the >> 1st communication to Django server and so we haven't the

Re: Reactive frontend + Session Authentication (+ csrf ?)

2024-07-08 Thread Joseph Aidoo
to Django using FetchAPI. Maybe this submission is the > 1st communication to Django server and so we haven't the csrf token yet (?!) > > So I have realized the Session Authentication without any regard to > csrftoken cookie. My login view is wrapped by csrf_exempt. Svelte form >

Re: Reactive frontend + Session Authentication (+ csrf ?)

2024-05-20 Thread Natraj Kavander
submission is the > 1st communication to Django server and so we haven't the csrf token yet (?!) > > So I have realized the Session Authentication without any regard to > csrftoken cookie. My login view is wrapped by csrf_exempt. Svelte form > sends credentials, Django makes login()

Reactive frontend + Session Authentication (+ csrf ?)

2024-05-20 Thread zvo...@seznam.cz
have realized the Session Authentication without any regard to csrftoken cookie. My login view is wrapped by csrf_exempt. Svelte form sends credentials, Django makes login() and sends sessionid cookie back. It works. Now my question is: Is this solution safe enough? Or is it danger and I should firs

Re: login()/logout() with valid user and request not attaching user to session

2022-10-22 Thread Jordan Edmunds
d down the underlying issue to be that the cookies and CSRF tokens were not being transmitted on request/responses - this was an issue in my frontend. Now (almost) fixed. On Sat, Oct 22, 2022 at 11:05 AM Jordan wrote: > So I have some rather bizarre behavior on my hands - I am trying to

login()/logout() with valid user and request not attaching user to session

2022-10-22 Thread Jordan
So I have some rather bizarre behavior on my hands - I am trying to use session authentication to login a user. I am able to login/logout through the django admin console just fine. However, when I explicitly call django.contrib.auth.login(), nothing happens. No errors are thrown, the login

Re: session id attribute error

2022-09-19 Thread Mohammad Ehsan Ansari
Hi SessionStore is a model class? if yes you can use pk instant of id On Monday, 19 September 2022 at 22:48:02 UTC+5:30 aashishk...@gmail.com wrote: > Do this > > request.session.get(‘id’) > > On Mon, 19 Sep 2022 at 1:30 PM, shiva singh wrote: > >> hello everyone please help me how can solve

Re: session id attribute error

2022-09-19 Thread Aashish Kumar
Do this request.session.get(‘id’) On Mon, 19 Sep 2022 at 1:30 PM, shiva singh wrote: > hello everyone please help me how can solve this problem:-[image: > image.jpeg] > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from

Re: session id attribute error

2022-09-19 Thread Muhammad Juwaini Abdul Rahman
That was user, so probably you need request.user.id, not session. On Mon, 19 Sept 2022 at 16:00, shiva singh wrote: > hello everyone please help me how can solve this problem:-[image: > image.jpeg] > > -- > You received this message because you are subscribed to the Google G

session id attribute error

2022-09-19 Thread shiva singh
hello everyone please help me how can solve this problem:-[image: image.jpeg] -- 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...@googlegr

Re: session related error

2022-09-16 Thread subin
Kindly notify me should you need any other information. On Fri, Sep 16, 2022 at 3:40 PM shiva singh wrote: > Hi everyone > > anyone give solution for this problem: > AttributeError: 'SessionStore' object has no attribute 'id' > [16/Sep/2022 19:28:16] "POST /jobpostsubmit/ HTTP/1.1" 500 66025 > >

session related error

2022-09-16 Thread shiva singh
Hi everyone anyone give solution for this problem: AttributeError: 'SessionStore' object has no attribute 'id' [16/Sep/2022 19:28:16] "POST /jobpostsubmit/ HTTP/1.1" 500 66025 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-26 Thread Satyajit Barik
your consideration, I look forward to hearing from you and hope to see you at our WhatsApp python group. Thanks & Best Regards, Satyajit Barik On Wed, 27 Jul 2022 at 1:40 AM, government jobsalert < ingovernmentjobsal...@gmail.com> wrote: > is the session still av

Re: Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-26 Thread government jobsalert
is the session still available? you can share contact at governmentjobsalert.in -- 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-user

Re: Core Python Session - Google Classroom

2022-07-18 Thread 'Kasper Laudrup' via Django users
On 18 July 2022 10.44.29 CEST, Muhammad Juwaini Abdul Rahman wrote: >*sigh* This guy keep spamming this group. > Report it: https://support.google.com/groups/answer/81275?hl=en Not sure if it helps but it's worth a try. Kind regards, Kasper Laudrup -- You received this message because you

Re: Core Python Session - Google Classroom

2022-07-18 Thread Muhammad Juwaini Abdul Rahman
*sigh* This guy keep spamming this group. On Mon, 18 Jul 2022 at 15:41, Satyajit Barik wrote: > Join using the below link. > > https://classroom.google.com/c/NTUwOTUwNDUwOTha?cjc=433md5r > > Core Python Session Google Classroom Link > <https://classroom.google.com/c/NTUwOTU

Core Python Session - Google Classroom

2022-07-18 Thread Satyajit Barik
Join using the below link. https://classroom.google.com/c/NTUwOTUwNDUwOTha?cjc=433md5r Core Python Session Google Classroom Link <https://classroom.google.com/c/NTUwOTUwNDUwOTha?cjc=433md5r> -- You received this message because you are subscribed to the Google Groups "Django users

Re: Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-17 Thread Frederick Muthuri
venue On Sun, Jul 17, 2022, 6:22 PM UJJWAL CHAUDHARY wrote: > Send me Invitation on next Scheduled > > On Sat, 16 Jul 2022, 13:16 , wrote: > >> PYTHON SESSION >> Join with Google Meet – You have been invited by >> satyajitbarik@gmail.com to attend an

Re: Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-17 Thread Satyajit Barik
The link will be same. Join the link at 8:00 PM IST(Indian standard time) everyday except sunday. > Thanks & Regards, Satuajit Barik > On 17-Jul-2022, at 8:52 PM, UJJWAL CHAUDHARY > wrote: > >  > Send me Invitation on next Scheduled > >> On Sat, 16 Jul 2022, 13:16 , wrote: >> >> >> Join

Re: Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-17 Thread UJJWAL CHAUDHARY
Send me Invitation on next Scheduled On Sat, 16 Jul 2022, 13:16 , wrote: > PYTHON SESSION > Join with Google Meet – You have been invited by > satyajitbarik@gmail.com to attend an event named PYTHON SESSION on > Saturday Jul 16, 2022 ⋅ 8pm – 8:30pm (India Standard Time - Kolkat

Re: Updated invitation with note: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-16 Thread Muhammad Juwaini Abdul Rahman
Stop this spammy invitation. On Sat, 16 Jul 2022 at 16:21, wrote: > PYTHON SESSION > Join with Google Meet – Python notes for beginners: Introduction Syntax > Statement, Indentation, and Comments Variables and Datatypes Operators > Numbers Strings List, Tuple, Set, Dictionary

Updated invitation with note: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-16 Thread satyajitbarik . dev
sia%2FKolkata&hl=en&es=0.\n-::~:~::~: ~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~: :- LAST-MODIFIED:20220716T082108Z LOCATION: SEQUENCE:0 STATUS:CONFIRMED SUMMARY:PYTHON SESSION TRANSP:OPAQUE BEGIN:VALARM ACTION:DISPLAY DESCRIPTION:This is an event reminder

Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-16 Thread satyajitbarik . dev
&tok= Mjcjc2F0eWFqaXRiYXJpay5kZXZAZ21haWwuY29tOGY4OTdiMTE4OGJlODIzMTlmZWU5ZGE3MWZ jODY0NWY0MDkxMjg0NQ&ctz=Asia%2FKolkata&hl=en&es=1.\n-::~:~::~:~:~:~:~:~:~:~ :~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::- LAST-MODIFIED:20220716T074602Z LOCATION: SEQUENCE:0 STATUS:CONFIRMED SU

Re: Session in Python for Login and Logout

2022-06-07 Thread 'Kasper Laudrup' via Django users
On 07/06/2022 06.59, Mukul Verma wrote: yeah i was saying in Django Thanks Everyone please tell me something in steps for this like how to use session variable in django and can create session currently i am able to generate token (access and refresh) and further need to create session  with

Re: Session in Python for Login and Logout

2022-06-07 Thread 'Kasper Laudrup' via Django users
On 07/06/2022 06.59, Mukul Verma wrote: yeah i was saying in Django Thanks Everyone please tell me something in steps for this like how to use session variable in django and can create session currently i am able to generate token (access and refresh) and further need to create session  with

Re: Session in Python for Login and Logout

2022-06-06 Thread Muhammad Juwaini Abdul Rahman
I think what he meant is 'session' in django. Probably can take a look at this: https://docs.djangoproject.com/en/4.0/ref/request-response/ For example, django app wants to know who is the current user, can use something like: `request.user` On Mon, 6 Jun 2022 at 22:45, 'Kasp

Re: Session in Python for Login and Logout

2022-06-06 Thread 'Kasper Laudrup' via Django users
On 06/06/2022 11.16, Mukul Verma wrote: Hii, Help me out in this stuff please, some steps for solve this out Python is a programming language so there's no such thing as a "session for login and logout". If you want someone to help you, you should try to clarify what you

Session in Python for Login and Logout

2022-06-06 Thread Mukul Verma
Hii, Help me out in this stuff please, some steps for solve this out -- 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.

Re: The session doesn't seem to expire after the browser is closed

2022-03-10 Thread Jason
do you also set SESSION_COOKIE_AGE? https://stackoverflow.com/questions/9267957/is-there-a-way-to-combine-behavior-of-session-expire-at-browser-close-and-sessio/9290334#9290334 On Tuesday, March 8, 2022 at 10:43:06 AM UTC-5 hamza...@gmail.com wrote: > I'm trying to clear the expired

The session doesn't seem to expire after the browser is closed

2022-03-08 Thread Hamza Khyara
I'm trying to clear the expired sessions which are set to be expired after the browser is closed but they don't seem to expire. [image: code.PNG] The output: get_expire_at_browser_close: True All sessions: (A QuerySet contains all the sessions including the ones that are changed after the browse

Re: Mobile session issue

2021-06-16 Thread Krish M
Which one are you using? Browser-length-sessions or persistent-sessions? On Tuesday, June 15, 2021 at 6:50:50 PM UTC-4 bhoop...@gmail.com wrote: > Hi team, > > When I am logining from laptop browser then session storing all keys and > respective vales but when I am trying to login

Mobile session issue

2021-06-15 Thread Bhoopesh sisoudiya
Hi team, When I am logining from laptop browser then session storing all keys and respective vales but when I am trying to login from mobile then keys and values are not present in the session. But session is available in both case. Please help me on this. Thanks Bhoopesh sisoudiya -- You

Re: DEFAULT Django Session is still using File in /tmp (Can't read from directory)

2021-06-13 Thread Ryan Nowakowski
You probably don't want to use file-based sessions if you're load balancing your application across multiple nodes. If your session gets created on one application node, how will the other application nodes have access to it? This might work if you have access to each file-based sessio

Re: DEFAULT Django Session is still using File in /tmp (Can't read from directory)

2021-06-08 Thread Andre Foote
7;t work - any pointers would be appreciated.) >> >> However I'm using the default configuration for sessions that's supposed >> to be database-backed. >> On Tuesday, April 27, 2021 at 9:52:03 PM UTC+2 Ryan Nowakowski wrote: >> >>> >>> >>

Re: DEFAULT Django Session is still using File in /tmp (Can't read from directory)

2021-04-28 Thread Ryan Nowakowski
ppreciated.) > >However I'm using the default configuration for sessions that's >supposed to >be database-backed. >On Tuesday, April 27, 2021 at 9:52:03 PM UTC+2 Ryan Nowakowski wrote: > >> >> >> On April 26, 2021 11:31:24 PM CDT, Andre Foote >>

Re: DEFAULT Django Session is still using File in /tmp (Can't read from directory)

2021-04-27 Thread Andre Foote
26, 2021 11:31:24 PM CDT, Andre Foote > wrote: > >However, the application crashes with the error stating that it is > >unable > >to read the session data stored in "/tmp". > > Please post the full error including any exception messages and the full >

Re: DEFAULT Django Session is still using File in /tmp (Can't read from directory)

2021-04-27 Thread Ryan Nowakowski
On April 26, 2021 11:31:24 PM CDT, Andre Foote wrote: >However, the application crashes with the error stating that it is >unable >to read the session data stored in "/tmp". Please post the full error including any exception messages and the full Python trace back if

DEFAULT Django Session is still using File in /tmp (Can't read from directory)

2021-04-27 Thread Andre Foote
I've wired up a Django 3.0.1 Application using the default, DB-backed session configurations. MIDDLEWARE has "django.contrib.sessions.middleware.SessionMiddleware", INSTALLED_APPS has "django.contrib.sessions". During file import (using django-import-export) I see th

Re: User filling form in login session if user logout and login again data of form not to lose.

2021-04-18 Thread Salima Begum
trying. While user enters a value in form input fields the > value should not clear if user logout the session and navigate from one > page to other. After filling the form in django if user fills some form > fields and suddenly user logout and if user login again then it should > save

Re: User filling form in login session if user logout and login again data of form not to lose.

2021-04-18 Thread boyuanl...@gmail.com
PM PDT, Salima Begum wrote: Hi all, Here we are trying. While user enters a value in form input fields the value should not clear if user logout the session and navigate from one page to other. After filling the form in django  if user fills some form fields and  suddenly user logout an

User filling form in login session if user logout and login again data of form not to lose.

2021-04-18 Thread Salima Begum
Hi all, Here we are trying. While user enters a value in form input fields the value should not clear if user logout the session and navigate from one page to other. After filling the form in django if user fills some form fields and suddenly user logout and if user login again then it should

How To Impliment Wishlist in Django eCommerce Without Session

2021-03-29 Thread iamparv...@gmail.com
Hello All, i am new to Django and i want to implement wish-list in eCommerce website. Let me know if any relevant and easy Tutorial or YouTube Video. so i can implement easily and got understand properly wish-list concept. Thanks Regards Kabir -- You received this message because you are sub

adding element to session list

2020-11-11 Thread rssail
I'm confused with how django adds elements to a list. consider the following: def add(request): if request.method == "POST": form = NewTaskForm(request.POST) if form.is_valid(): task = form.cleaned_data["task"] request.session['tasks'].append(

Re: Django session Through login/logout

2020-10-28 Thread Andréas Kühne
Hi, This is per default in django. The way the logout function works is that it completely clears the session (which is good practice, because you don't want to see anything there after a logout). Regards, Andréas Den tis 27 okt. 2020 kl 14:28 skrev kawsar sarker : > Hi, > Nice

Django session Through login/logout

2020-10-27 Thread kawsar sarker
Hi, Nice to be with you here. I am developing an e-commerce site and there I I used a cart session. For login i created a own backend session and the session is still alive. But when I logout , I lost the session and with it the cart items. Please help, as I am new with django. I appreciate

Re: Expire session after N minutes of inactivity

2020-07-14 Thread RANGA BHARATH JINKA
https://pypi.org/project/django-session-timeout/ On Tue, Jul 14, 2020 at 10:36 PM Dan Davis wrote: > Does anyone know of a django pypi package that implements something like > this so that I can steal the code? I know I need to think about "what does > inactivity mean" in

Expire session after N minutes of inactivity

2020-07-14 Thread Dan Davis
Does anyone know of a django pypi package that implements something like this so that I can steal the code? I know I need to think about "what does inactivity mean" in the era of SPA and Ajax, but a module could save me some time. -- You received this message because you are subscribed to the

Re: Unable to modify Session with signed_cookies backend

2020-07-04 Thread Krishna Chaitanya
pip installed. > On Friday, July 3, 2020, Krishna Chaitanya > wrote: > >> Hi, >> >> When I try to modify a session when using signed_cookies backend it >> creates a new session which voids >> the purpose as I am using session_key as a shared data structures a

Re: Unable to modify Session with signed_cookies backend

2020-07-03 Thread Ogunsanya Opeyemi
Hi, Serach for pip install url on ubuntu then you for you to get pip installed. On Friday, July 3, 2020, Krishna Chaitanya wrote: > Hi, > > When I try to modify a session when using signed_cookies backend it > creates a new session which voids > the purpose as I am using session_

Unable to modify Session with signed_cookies backend

2020-07-03 Thread Krishna Chaitanya
Hi, When I try to modify a session when using signed_cookies backend it creates a new session which voids the purpose as I am using session_key as a shared data structures across views/functions. Is this expected or a bug? I am using 1.11 (default on ubuntu 18.04, can't update as pip

Re: How to use session in django??

2020-06-14 Thread Doddahulugappa.B
Refer below first, you need to install Django-session-timeout with the command: pip install django-session-timeout then you need to update your SessionTimeoutMiddleware in settings.py MIDDLEWARE_CLASSES = [ ... 'django.contrib.sessions.middleware.SessionMiddl

Re: How to use session in django??

2020-06-14 Thread cosmos multi
I use sessions more for what shopping carts are, saving information temporarily. El dom., 14 jun. 2020, 11:36 p. m., meera gangani escribió: > Hello , > How To use session in django > Can you please help me out! > > > Thanks in advance > -Meera Gangani > > --

How to use session in django??

2020-06-14 Thread meera gangani
Hello , How To use session in django Can you please help me out! Thanks in advance -Meera Gangani -- 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

Re: how to use session ???

2020-06-12 Thread Kasper Laudrup
Hi Meera, On 12/06/2020 12.55, meera gangani wrote: I am new in django How can i use session in this views.py file Try to explain more in details what you mean by "use session", then you'll have a much better chance of getting some help. Kind regards, Kasper Laudrup -- Yo

Re: The problem with saving the session without using a browser (using python.requests).

2020-03-04 Thread Владимир Пылев
Solution found. For some reason, you must pass the cookie to the session object itself. sess = requests.Session() cj=requests.utils.cookiejar_from_dict(cookie) sess.cookies=cj In this post() and get() requests I did not change: # (3) get to create r3=sess.get(url, cookies = cookie) # (4

The problem with saving the session without using a browser (using python.requests).

2020-03-02 Thread Владимир Пылев
Hello! In my situation, I need to communicate with the django application through python from the desktop application (using python.requests). The logic is this: 1 - Transfer the username and password to the login() - get and save to file the *session_id*. 2 - Use *session_id* from file to ident

Re: Django Session KeyError

2020-02-26 Thread Naveen Arora
Are you using SESSION_COOKIE_DOMAIN in your settings.py ? Are you on local server only ? Are you logged in while maintaining a session ? Have you run the migrate command ? Without makemigrations and migrate properly session doesn't work ! Run manage.py syncdb from the command line. Refer

Re: Django Session KeyError

2020-02-26 Thread Guy NANA
nd bellow the outputs. When I was using sessions stored in >> cache (specially in Memcached) all things were working good until I >> wanted to upload a data set with larger volume of data : it wasn't be >> possible to put them in cache. >> >> >> Tra

Re: Django Session KeyError

2020-02-26 Thread Naveen Arora
specially in Memcached) all things were working good until I > wanted to upload a data set with larger volume of data : it wasn't be > possible to put them in cache. > > > Training dataset uploaded : Coffee > training dataset saved in django session : > > >

Re: Django Session KeyError

2020-02-26 Thread Guy NANA
taset saved in django session : [[0,-0.51841899,-0.48588363,-0.50500747,-0.56018294,-0.63629941,-0.75322902,-0.82722915,-0.85976467,-0.90632072,-0.92379648,-0.93321222,-0.93442926,-0.92078716,-0.93657191,-0.95599685,-0.95934101,-0.96940599,-0.9824055,-0.97659952,-0.96252576,-0.97031893,-0.981

Re: Django Session KeyError

2020-02-26 Thread Guy NANA
taset saved in django session : [[0,-0.51841899,-0.48588363,-0.50500747,-0.56018294,-0.63629941,-0.75322902,-0.82722915,-0.85976467,-0.90632072,-0.92379648,-0.93321222,-0.93442926,-0.92078716,-0.93657191,-0.95599685,-0.95934101,-0.96940599,-0.9824055,-0.97659952,-0.96252576,-0.97031893,-0.981

Re: Django Session KeyError

2020-02-26 Thread Guy NANA
taset saved in django session : [[0,-0.51841899,-0.48588363,-0.50500747,-0.56018294,-0.63629941,-0.75322902,-0.82722915,-0.85976467,-0.90632072,-0.92379648,-0.93321222,-0.93442926,-0.92078716,-0.93657191,-0.95599685,-0.95934101,-0.96940599,-0.9824055,-0.97659952,-0.96252576,-0.97031893,-0.981

Re: Django Session KeyError

2020-02-25 Thread Naveen Arora
arity_func, windows_length, noisy_law, mu, std) return JsonResponse(predictions, safe=False) On Tuesday, 25 February 2020 03:47:25 UTC+5:30, Guy NANA wrote: > > I have an angular frontend app which send file to django backend which > data is setting in django session. Afte

Re: Django Session KeyError

2020-02-25 Thread Guy NANA
onMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] Le mercredi 26 février 2020 02:23:59 UTC+1, juanblo a écrit : > > Hi, > > In your Django application, session middleware i

Re: Django Session KeyError

2020-02-25 Thread Juan Pablo Romero Bernal
Hi, In your Django application, session middleware is enabled ? [1] [1] https://docs.djangoproject.com/en/3.0/topics/http/sessions/ On Tue, Feb 25, 2020 at 8:16 AM Guy NANA wrote: > I don't understand the first part of your answer : *Make sure your >> line request.session[&#

Re: Django Session KeyError

2020-02-25 Thread Guy NANA
tp crosss-origin from angular app to my django app the previously session's elements that I've stored doesn't exist anymore. (I checked the session keys in the upload_local_dataset and receive *In upload_local_dataset Session's keys : dict_keys(['ts_dataset', '

Re: Django Session KeyError

2020-02-25 Thread Pankaj Sharma
le to django backend which > data is setting in django session. After I send a httprequest to django > backend to make ML tratements on that data and get the results. But I've a > 500 sever error: keyerror 'ts_dataset_copy': KeyError: 'ts_dataset_copy' > [24

Django Session KeyError

2020-02-24 Thread Guy NANA
I have an angular frontend app which send file to django backend which data is setting in django session. After I send a httprequest to django backend to make ML tratements on that data and get the results. But I've a 500 sever error: keyerror 'ts_dataset_copy': KeyError: '

Re: Re: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working

2020-02-19 Thread DHRUVA
: Re: I am filling up the form but my filled out items are > not rendering into database and also the session is not working > > > > The template file > > > > > > <*form **method**="post" **novalidate*> > > No action attribute defined here. Where

RE: Re: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working

2020-02-19 Thread dhruvashah1221999
 Yaa did that still facing issue From: onlinejudge95Sent: Thursday, February 20, 2020 12:32 AMTo: django-users@googlegroups.comSubject: Re: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working The template file  <form method=&q

Re: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working

2020-02-19 Thread onlinejudge95
ck %} > > > > > > *From: *Farai M > *Sent: *Wednesday, February 19, 2020 11:19 PM > *To: *django-users@googlegroups.com > *Subject: *Re: I am filling up the form but my filled out items are not > rendering into database and also the session is not working > > > > Th

RE: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working

2020-02-19 Thread dhruvashah1221999
vebutton>  form>{% endblock %}  From: Farai MSent: Wednesday, February 19, 2020 11:19 PMTo: django-users@googlegroups.comSubject: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working The session must be activated in the s

RE: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working

2020-02-19 Thread dhruvashah1221999
://docs.djangoproject.com/en/2.1/topics/i18n/LANGUAGE_CODE = 'en-us'TIME_ZONE = 'UTC'USE_I18N = TrueUSE_L10N = TrueUSE_TZ = True# Static files (CSS, _javascript_, Images)# https://docs.djangoproject.com/en/2.1/howto/static-files/STATIC_URL = '/static/' From: Farai MSen

Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working

2020-02-19 Thread Farai M
The session must be activated in the settings file check that it should work smoothly. On the insert can u share the template file mostly .It is to do with post requests not reaching back end. You can try to print the post request before your save to model to see if all inputs are coming

I am filling up the form but my filled out items are not rendering into database and also the session is not working

2020-02-19 Thread mick
views.py from django.views.generic import FormView, TemplateView from django.shortcuts import render,redirect from .models import modelstep1,modelstep2,modelstep3,modelstep4,modelstep5,modelstep6,modelstep7,modelstep8,modelstep9,modelstep10 from .forms import FormStep1,FormStep2,FormStep3

Re: Session backend for production

2019-11-25 Thread Parth Joshi
Cache implementation will be definitely use faster if you are using MVT. If using REST (DRF) then token Auth definitely helps. Regards, Parth Joshi > On 26-Nov-2019, at 2:41 AM, Lorenzo Peña wrote: > > Hello, fellow djangonauts! > > Is there any particular reason why should I pick memcac

Session backend for production

2019-11-25 Thread Lorenzo Peña
Hello, fellow djangonauts! Is there any particular reason why should I pick memcached backed sessions in production over db, or viceversa? Most documentation seems to slightly suggest that memcached should perform faster than database. Any other criteria I should be aware of? I am using single

Re: How to use session in django

2019-11-03 Thread Parth Joshi
looking for and it helps. regards, Parth On Sunday, 3 November 2019 07:41:12 UTC+5:30, Amit Agarwal wrote: > > Helo everyone, > > I am making a post request to the server from client.py. I am getting > error forbidden csrf cookie not set. > > What is the corre

Re: How to use session in django

2019-11-03 Thread Integr@te System
correct way to use session? > > > -- > 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. &

How to use session in django

2019-11-02 Thread Amit Agarwal
Helo everyone, I am making a post request to the server from client.py. I am getting error forbidden csrf cookie not set. What is the correct way to use session? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: How to manage the separate session for same browser Admin & Frontend in django

2019-08-05 Thread edepe
On Monday, August 5, 2019 at 8:04:58 AM UTC-3, Pravin Yadav wrote: > > I'm looking for a way to separate the session handling for the admin part > of a site and the frontend. > > A person should be able to log in to the admin (only if he has is_staff > and/or is_superuse

How to manage the separate session for same browser Admin & Frontend in django

2019-08-05 Thread Pravin Yadav
I'm looking for a way to separate the session handling for the admin part of a site and the frontend. A person should be able to log in to the admin (only if he has is_staff and/or is_superuser). He should have to be able to login with another username into frontend. So basically it'

Re: Issue i18n django_language in session

2019-07-17 Thread Yoo
I'm not sure, either. Usually, whenever I'm testing, I open a private/incognito browser in case there is caching or cookies are being saved (cookies could be related to session authentication and other stuff). What I would try first is clearing your cookies if you've been u

Issue i18n django_language in session

2019-07-17 Thread Oscar Rovira
posed to have set and this happens, apparently, without changing my browser language preferences or calling the set_language view. I've been looking around the code, checking every statement that makes reference to the language setting of the user in session with no luck on anything tha

Re: Dealing with global or session objects

2019-05-23 Thread Simon A
n wrote: > > Hi, > > I'm coming from a java world, where there exists different scopes for > objects: application-, session-, request scopes all define different > lifecycle for objects. I have some difficulties in finding an equivalent > approach in Django. > > He

Dealing with global or session objects

2019-05-22 Thread Jean-Noël Colin
Hi, I'm coming from a java world, where there exists different scopes for objects: application-, session-, request scopes all define different lifecycle for objects. I have some difficulties in finding an equivalent approach in Django. Here's the need: my project stores

Re: Implementing multiple session support in a chatbot

2019-05-19 Thread Chetan Ganji
to all the remaining sessions, except the current one # as the current session would get this reply in the response of this view settings.nikola.send_session_replies(sessions) return JsonResponse(data=response) I hope its clear now :) Regards, Chetan Ganji +91-900-483-4183 ganji.che

Re: Implementing multiple session support in a chatbot

2019-05-19 Thread Parth Sharma
hetan Ganji wrote: > > What you need is to implement 2 design patterns in your django app. Which > ones? > > 1. *Singleton* Design Pattern for the Chatbot. All the users and all of > their sessions are using the same chatbot instance. > > Why? > > Because when a new ses

Re: Implementing multiple session support in a chatbot

2019-05-18 Thread Chetan Ganji
What you need is to implement 2 design patterns in your django app. Which ones? 1. *Singleton* Design Pattern for the Chatbot. All the users and all of their sessions are using the same chatbot instance. Why? Because when a new session is created for a user, he will be referring to the same

Implementing multiple session support in a chatbot

2019-05-18 Thread Parth Sharma
I am currently implementing a Chatbot purely in python. In my current implementation, each time the user starts a new chat from a session, another Chatbot instance is launched and hence the Chatbot starts from the initial state. I wish to change that behaviour and make it similar to let’s

Re: Django session

2019-05-01 Thread animeshagrawaal
For using file-based sessions, you have to set the setting of SESSION_ENGINE to django.contib.sessions.backends.file You will also have to make sure that your web server has permissions to read and write the directory of the session file. There are 3 more ways to configure session engine in

Django session

2019-05-01 Thread Aakash Bachheriya
How i can configure session engine in Django through File based sessions? -- 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-user

Re: Script for running Daphne and runworker in the background . runworker ends after session expires.

2019-03-23 Thread Aldian Fazrihady
On Sun, Mar 24, 2019 at 11:41 AM Adam Zedan wrote: > Thanks Aldian , what about runworker ? > I don't use Daphne worker. However, I am using celery -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Script for running Daphne and runworker in the background . runworker ends after session expires.

2019-03-23 Thread Adam Zedan
2-user/MyDomainVenv/bin/daphne -b 0.0.0.0 -p 8001 >> main.asgi:channel_layer >> 2>> ./daphne.log & >> >> >> echo "Starting Django worker thread" >> #nohup python ./manage.py runworker 2>>./daphneWorker.log >&2 & >> p

Re: Script for running Daphne and runworker in the background . runworker ends after session expires.

2019-03-23 Thread Aldian Fazrihady
> echo "Starting Daphne." > /home/ec2-user/MyDomainVenv/bin/daphne -b 0.0.0.0 -p 8001 > main.asgi:channel_layer > 2>> ./daphne.log & > > > echo "Starting Django worker thread" > #nohup python ./manage.py runworker 2>>./daphneWorker.lo

Re: Script for running Daphne and runworker in the background . runworker ends after session expires.

2019-03-23 Thread Adam Zedan
Seems like Daphne and runworker both terminate after session expires On Saturday, March 23, 2019 at 7:51:26 PM UTC-7, Adam Zedan wrote: > > I am trying to create a bash script that would run Daphne and runworker in > the background. > This is what I came up with so far > > >

Script for running Daphne and runworker in the background . runworker ends after session expires.

2019-03-23 Thread Adam Zedan
-b 0.0.0.0 -p 8001 main.asgi:channel_layer 2>> ./daphne.log & echo "Starting Django worker thread" #nohup python ./manage.py runworker 2>>./daphneWorker.log >&2 & python ./manage.py runworker However it seems like run worker simply terminates when my

Django Memcached Session Management

2019-03-04 Thread NEERAJ KUMAR
getting error : "*The request's session was deleted before the request completed. The user may have logged out in a concurrent request, for example."* I want to build a distributed apps where one app can be used for auth running on a separate docker, so other apps can share th

Re: Customise Session Engine to distribute session data storage

2018-09-03 Thread Web Architect
Thanks. This seems to be quite helpful. Will look into it. On Thursday, August 30, 2018 at 6:23:10 PM UTC+5:30, Jason wrote: > > https://github.com/adw0rd/django-multi-sessions > > that's a non-working project but might give you some clues how to route > sessions to different backends. > -- Yo

  1   2   3   4   5   6   7   8   9   10   >