Muflone
Sorry, but it literally doesn't leave a record in the logs, nor does it give me an error
this is not possible, how do you determine it's not working then?
Rishabh
When timer start we need to execute the function and if condition goes false we need to initiate the function at 55th second here what api we use web-socket or rest api
Valentin
this is not possible, how do you determine it's not working then?
The problem was that there was no folder for the request.session cache, but it doesn't leave an error anywhere
Harsh
can someone give me any tutroial of integration of opencv with django
Nihalxxxx
hii need help here
Doragonsureiyā
hii need help here
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
Vishnu
Can someone help me with using django URLs on javascript files? Assigning to a variable working fine when I call the URL by name inside script tag but not on the js file which is linked to the html
Vishnu
Also may I know how to filter a queryset with same parameter? Ex: For users I have set up active, inactive,... Etc as status. I want to get the users data with status=active and status= inactive. Can I do it in a single line of code?
Charly
Now am taking both data seperately and merging
Show that code because I don't understand you
Vishnu
act_user=User.objects.filter(status='active').count() inact_user=User.objects.filter(status='in-active').count() total_act_inact_user_count= act_user+inact_user Can I make these 3 lines working on a single line?
bar
Hi I use msal in my front for microsoft login and recive a token and send it to my backend to validate the token, my backend is django i tryed to Look for ways to validate my token in django msal but didnt find any way, if anyone know how to validate the token of my user i recive after i looged in with my user to microsoft and to do it in my backend in django it would help alot. Thanks
R
I am new in django can any one help me in authentication part in three different login 1. admin login and signup 2. Staff login and signup 3. Usser login and signup
Д.....
younis
Hi I have an APP called “account”, inside this APP a model called “Account” in this model a field called message this field is link to Message model that exist in chatting APP.Now I want following relationship: From Account model to Message model Manytomany relationship means each user can create multiple messages From Message to Account model OneToOne relationship means each message can have only one user. After all above, when I import Account model inside Message model no error occurred but when import Message model inside Account model following error happened from chatting.models import Message ImportError: cannot import name 'Message' from partially initialized module 'chatting.models' (most likely due to a circular import) (E:\drive D\CHAT\Scripts\chatapp\chatting\models.py)
younis
I want this: From Account model to Message model Manytomany relationship means each user can create multiple messages From Message to Account model OneToOne relationship means each message can have only one user. but raise error
younis
error :mportError: cannot import name 'Message' from partially initialized module 'chatting.models' (most likely due to a circular import) (E:\drive D\CHAT\Scripts\chatapp\chatting\models.py)
ashu
Hey guys can anyone tell me like i have already connected a MySQL with django i wanted a data which is showing on Admin but I wanted to in my Google sheets and any other but when user submit the image it is showing in admin panel but not opening so I only know about that how I extract tha data
ashu
Admin panel*
ashu
Can be extracted the data without installed MySQL in local computer
ashu
Extract from where?
Like i already connected MySQL database with django and I want that in my sheets how I do
ManDo
Can be extracted the data without installed MySQL in local computer
Your database has to be stored somewhere. If you don't want to store it on your computer, you have to find a host to store it. Change the DATABASE setting in your app to connect to that host. I think so.
HAJI MASTAN
i have 2 queries one for fetching only Leads and applied many filters on this query, another TotalLeadsCount query is to count total, what i want is to paginate over my TotalLeadsCount query not Leads query ?
Mahan
hi guys how to fix this error : IntegrityError at /admin/account/user/add/ FOREIGN KEY constraint failed
Doragonsureiyā
hi guys how to fix this error : IntegrityError at /admin/account/user/add/ FOREIGN KEY constraint failed
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://hastebin.com, https://nekobin.com, https://dpaste.org (or your favorite one)
Mahan
how did you define your user model
https://hastebin.com/share/eqejeheges.sql
ManDo
https://hastebin.com/share/eqejeheges.sql
I cannot find Foreignkey in your model. Could you show your query user/add ?
ManDo
Where is that?
do you use rest-framework?
ManDo
No
so what you have in the path /admin/account/user/add/? Any python file?
Anonymous
Hi,everyone when I changed the DEBUG = False in settings my static files are not working
Anonymous
after that I went to stack overflow ,I got resolution with Cling from dj_static package it is working fine in local system so I am trying to deploy with elasticbeanstalk now i am getting error here application not found
Mr 🏧
is there any open source telegram bot backend frame which is still useful?
Doragonsureiyā
is there any open source telegram bot backend frame which is still useful?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Mr 🏧
we use django
ashu
Hey can someone tell me like when i upload files on frontend part the image name is also showing in admin panel but when i click it's not open its saying page not found how I solve this
ashu
If any one who know about this🥺
Maxim
we use django
but what does your question have to do with Django? the question, not the project
Anonymous
Anyone had any success setting up cron jobs using django-chutad ?
TonFutures 💎
Hello I have a question. CSRF token is diffrent for each request? For example client send 5 request.POST, so django generate 5 csrf token for each request?
TonFutures 💎
Or for each browser id diffrent?
TonFutures 💎
Or for each browser id diffrent?
I mean, when i clear data browser my csrf token expire
Anonymous
Each request token will change
Anonymous
TonFutures 💎
Look at my simulate code : if test == True : coin += 5 I wanna to limit this code, it means i want to run this every 5 sec in django So i write this code : if request.method == 'POST' and not cashe.get(request.csrf_token) : cashe.set(request.csrf_token, time = 5) if test = True : coin += 5 if csrf change every request, my code didn't work Can you help me to limit?
Doragonsureiyā
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
AXU 🫰🏻
Can i ask stupid question? Hello, a few days ago started learning Python, you can say I don’t know anything. I know how to Google and that’s it. I have such a task, please tell me how I can display this data on the main screen? That is, until I write something, no data is displayed Unfortunately, I can't attach a photo. I can show my code
Muflone
Dude please respond for my query
This question has been asked so many times you can find using the search feature It's tiresome having to repeat the same faq continuously only because people is unwilling to read Click on #static
K
hello everyone! I need to make a function in Django version 2.2 that will work with the signal and how the client will access the get method via grpc. Is it possible to do this and if so, how?
Georg
hello. Is there a way to precompile template (I mean build a complex template from "extends" and "blocks" but not to placehold variables) ?
Georg
I need to get intermediate result before render but after "extend" and "block" parse
JayJo
Unicode error
Doragonsureiyā
HAJI MASTAN
how to use server side datatable with django and mongodb? please i need
Boini
Guys I have an signup data in mysql database and I want to authenticate login details with using django rest framework please help
Soa
how to change size[height, width] of field in form it's very huge [i would like to share how big it is [https://app.gemoo.com/share/image-annotation/578719268147924992?codeId=DGVoL3kdwjkn3&origin=imageurlgenerator]] i tried using widget [forms.py] : resulted a conflict in my admin/change vs add-form conflict was change-form wouldn't open and throw error change-form is working fine as required [i wanted such that once added it shouldn't be modified ; the code in admin.py activates this] https://nekobin.com/koyiteniju
Soa
How to deploy from Django + xampp Os : windows To Server. Os: Ubuntu
Виктор
Guys, how to store variables that i need globally in all my views? So i need to get data from google sheets at site opening and operate this data in all my different views. What is the best way to reach that