. 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
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
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
>
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()
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
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
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
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
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
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
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
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
>
>
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
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
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
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
*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
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
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
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
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
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
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
&tok=
Mjcjc2F0eWFqaXRiYXJpay5kZXZAZ21haWwuY29tOGY4OTdiMTE4OGJlODIzMTlmZWU5ZGE3MWZ
jODY0NWY0MDkxMjg0NQ&ctz=Asia%2FKolkata&hl=en&es=1.\n-::~:~::~:~:~:~:~:~:~:~
:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-
LAST-MODIFIED:20220716T074602Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SU
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
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
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
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
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.
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
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
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
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
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
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:
>>
>>>
>>>
>>
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
>>
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
>
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
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
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
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
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
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
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(
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
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
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
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
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
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_
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
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
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
>
> --
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
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
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
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
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
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
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 :
>
>
>
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
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
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
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
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
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[
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', '
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
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: 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
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
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
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
://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
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
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
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
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
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
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.
&
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
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
>
>
>
-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
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
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 - 100 of 1249 matches
Mail list logo