Doragonsureiyā
Hi everyone! I have a question? Where can you learn Django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Rupali
see twilio documentation
Thats is different thing we dont want to use 3rd party app
Charly
Thats is different thing we dont want to use 3rd party app
You can't send SMS without a carrier unless you have specialized hardware with SIM cards
RIP
Hello everyone ,I want to know if there is a way to check all users in Django if they are online ( close browser, logout are all consider as offline) every minute ?
enansi
You can't send SMS without a carrier unless you have specialized hardware with SIM cards
And even then you are using a carrier (just the same way as if you sent an SMS from a personal mobile phone)
enansi
Thats is different thing we dont want to use 3rd party app
You could have a dedicated machine (any desktop machin), attach a Huawei 3G modem on USB and install Asterisk with asterisk-chan-dongle
Eric
Hello everyone ,I want to know if there is a way to check all users in Django if they are online ( close browser, logout are all consider as offline) every minute ?
Django doesn't automatically logout an authenticated user when they close they browser. You'll need to add some configuration to your app to make that happen, basically you need to end the session. In your settings.py you need to set: SESSION_EXPIRE_AT_BROWSER_CLOSE = True and also add an session expiry for when the user is idle with: SESSION_COOKIE_AGE = 60 * 60 You can read more in the Django documentation at: https://docs.djangoproject.com/en/4.1/topics/http/sessions/
Jayashree
Hello Please help me out with one issue. When I reboot the ec2 instance, at first the django api responses will be in milliseconds. After a few minutes the response will be in 4 to 5 seconds. How can I solve this.?
zmod
how to deploy django app thru wsgi with apache
..
how to deploy django app thru wsgi with apache
Google it and follow the steps in u get error u may ask for solution here with the error u getting
..
If u get error*
Maxim
what does the documentation say?
C.
Hi. Im using nginx but authenticate is NOT working
Maxim
Hi. Im using nginx but authenticate is NOT working
i apologize on behalf of both Django and Nginx, whoever is to blame for this
C.
So. You mean there is NO Solutions?
Maxim
So. You mean there is NO Solutions?
no, what i mean is that you didn't provide any details about your issue
C.
view.py:
C.
nginx.conf:
C.
https://dpaste.org/SVoXj
C.
https://dpaste.org/PFLvv
C.
user = authenticate(username=username,password=password)
C.
I'm able to get user but
C.
after login page redirect to home page but authentication not pass to home page
C.
I saw request.user.is_anonymous is become true
Alex
is Django supposed to generate traceback for permission denied ?
Kritesh
I saw request.user.is_anonymous is become true
That means user still not authentication that why in return you get anonymous
Daniil
Hello. I pass from views to the template with the player a link to play the video. I added a button under the player, by which I want to open the player code (I created the code manually and wrapped it in a pre tag for normal code display). The problem is that the path of a specific video <source src> is not displayed in the template with the player code. Can anyone advise please?
ℭ𝔞𝔱 𝔬𝔣 𝔅𝔞𝔯
will anyone help me?
Doragonsureiyā
will anyone help me?
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
▄︻デռǟɦօʍ══━一
how can i access client side file and uplod it to django server without user input i will give the path in the code and it will upload it to my server pls help me
Hello everyone Is it right to create a model object inside the save method of another model? example: from app_2.models import Model2 class Model1: ... def save(self, *args, **kwargs): Model2.objects.create(**some_data) super().save(*args, **kwargs)
AISHWARYA
can anyone help me with this issue :
Charly
pregnancy_month needs to have a value and you didnt send it
Charly
pregnancy_month is not the same pregnacy_month
Charly
you cant redirect to an unamed url redirect(' ') makes no sense, you ned to put there a url name or url
Chuks 🐋🐋
Who have built a crypto investment site here?? Help a brother 🤲
Martins
Please I need help on how to start a Django project
Krishna
Hi I am also need help on django project
Doragonsureiyā
Please I need help on how to start a Django project
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Hi I am also need help on django project
I would say be precise with your issue
Doragonsureiyā
Who have built a crypto investment site here?? Help a brother 🤲
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Adithya
Hii everyone Could someone help me in how to generate OTP in django... Please 🙏🙏
Adithya
I had tried using TOTP package
Adithya
But I am getting error
Charly
But I am getting error
Well, we need to know what error is
Adithya
Totp has no attribute 'secret_key' is the error
Charly
Totp has no attribute 'secret_key' is the error
You need to be more specific on how and where you get that error
Adithya
How to share code in this group?
Doragonsureiyā
How to share code in this group?
To share code or error tracebacks, use a pasting service, like: - https://linkode.org - https://dpaste.org
Adithya
ok
Adithya
https://linkode.org/#gv3H6ASakx7YYORj7FbYu
Adithya
please check the code what i have written
Adithya
https://linkode.org/#gv3H6ASakx7YYORj7FbYu
I am getting error at line 24 in this code
Adithya
Error is AttributeError: 'TOTPDevice' object has no attribute 'value'
Adithya
Actually what is the way to generate OTP in django?
Acquaintance
http://linkode.org/#S3z9NB0hX1zoRxuETwHoE2 I'd like to use one procedure to check that field is present and show it Like.. list all the fields and give it to a procedure to render it without too much the same code Because I have plenty of sub-tables (m2m) and CharFields Can you please help me with the syntax, how can I loop this output? P. S. like loop "for loops"
Adithya
this is the error
Adithya
AttributeError: 'TOTPDevice' object has no attribute 'secret_key'"
Rutya
Plz tell me how Cities fetch
Doragonsureiyā
Plz tell me how Cities fetch
What are you talking about?
Rutya
City api
Rutya
In django
Rutya
How create API
Charly
How create API
Check Django rest framework
Rutya
I have already checked
Rutya
Plz any tell me how create django City api
Charly
Plz any tell me how create django City api
So you didn't read the Django rest framework documentation?
Rutya
I read