Tukhtamurod
maybe 5 billion items
Fabian
How can I process a future object inside a sync function, where there is already a running loop?
Fabian
How can I process a future object inside a sync function, where there is already a running loop?
I already googled, couldnt find the exact answer, that's why I ask here
Anonymous
hi everyone
Javad
Hi In views.py we have: Context['baseurl']= SampleModel.objects.value_list ('baseurl','api').filter(user=self.request.user) In template we have: <script> let base_url= {{baseurl|safe}}</script> Out put: base_url= https://example.com Desired format: base_url= "https://example.com" Note url string between double quotes. If we want to add double quotes using javascript there is a problem with special charachter ':' . Is there a shortcut soloution using django template filter or javascript?
Zey
In model I have a attribute route in that I have to select multiple stations and I have a model Station so how I can select multiple stations from Station model?
Zey
If user select route from x to y how can I show him trains of that route?
Shubham
https://docs.djangoproject.com/en/3.2/ref/models/querysets/#field-lookups It will help you alot.. I suggest to read whole documentation
Shubham
Although wrap with quote.
Shubham
Jinja Templates wil handle the rest.
Anonymous
https://stackoverflow.com/questions/67149200/input-autocomplete
Zey
can we store array in database?
Mirco
can we store array in database?
Yes, with Postgres db fields
Zey
not with sqlite?
Mirco
not with sqlite?
I don't remember honestly https://docs.djangoproject.com/en/3.2/ref/contrib/postgres/fields/#arrayfield For PG yup
Zey
ok Thanks
Doragonsureiyā
ok Thanks
You're welcome! 😊
Enigma
can anyone help with Server Error (500) ? all parts of my website on the host works fine , just in one part that i will create an object in db after process...
Michael
I'm having problem uploading my django website because of pypaystack
Michael
What can I do?
Есбол
Is there any tools to show statistics in Django admin with plots
Есбол
Harsh
I want to learn django asgi anyone have usefull links regarding that please share
Patience
Thanks, bookmark it
Does it need apart codes or is only install?
Schohreh
Any one knows the code to upload the file in Django ?
Schohreh
Files like pdf or excel and etc
Schohreh
Yes
Harsh
I have code i will send you tomorrow
Schohreh
Why tomorrow 🤦🏻‍♀️I need now But it’s ok Send me tomorrow Thanks
Patience
Files like pdf or excel and etc
Use this code in model: Models.FileField() Use documentation
Patience
Use this code in model: Models.FileField() Use documentation
But my problem here is that: when I am playing video from Media file, when I start it in the middle it doesn't work. Anyone know how to resolve it?
Schohreh
any one know how can I bring " Article or New " to the " offer " , how can I put them in offer from backend
Schohreh
they are two models which I want to put them inside the offer folder
Schohreh
but how from backend
Schohreh
I can’t send picture here ?
Doragonsureiyā
I can’t send picture here ?
To share code or error tracebacks, be considerate and use an online pasting service - here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you post a wall of text (many lines), delete it or you can get a warn strike.
Mirco
I tried all the link I wanted to send the screen shot of my problem not to paste any code It’s not what I wanted to show Leave it Thanks
No screenshot, Copy the error or the code that has the issue with those tools Otherwise you won't get any help 🙂
Schohreh
I know But the point is There is no error There is no code I wanted to change the location of my model which I made and it came to admin page I want to change its location to another model in admin page only
Fiqih
Hallo, please help me, how to briefly rename classes in models and work in migrations?
Sai
Hello, can k follow the django, nginx, gunicorn, celery in one docker architecture. Please suggest me which is good for the production and also keep future in mind
Akash
I have created an HTML form and have linked it to a function based View. Issue is, when I submit my Form, it does not POST form data. Not sure why ?
Ramzarz96
Hello. I'm looking for free logging app with GUI. Can you help me?
Ramzarz96
Yes.
Ramzarz96
Log-viewer
Ramzarz96
But my python version is 2.7
Agent Q
Log-viewer
Why not use logging?
Akash
What did you set as method in HTML form?
POST it POST request does contain csrf token but not my form data
Agent Q
GUI.
Why do you need a GUI?
Ramzarz96
User friendly.
Agent Q
POST it POST request does contain csrf token but not my form data
Check network tab in devtools? Maybe it's not sending the requests? Perhaps CORS?
Ramzarz96
Why do you need a GUI?
For access log file from web.
Mirco
But my python version is 2.7
Time to upgrade, python 2 is dead
Akash
Check network tab in devtools? Maybe it's not sending the requests? Perhaps CORS?
The request is sent successfully, it is even returning 200 response, but there is no activity performed at backend. Network tab Form Data just shows crsf token as body.
Agent Q
For access log file from web.
Not recommended. If you can access it on from the web, hackers can use that to find a weakness and exploit. If you need to access the logs, log into your server and access the logs on and in the server.
Ramzarz96
👍
Saurabh Maheshwari
Hi Folks, Could anyone be so kind to help me understand how can I generate models from existing SQL Server db in a REST API I am developing using Django Rest Framework?
Damir
for i in queryset: i['stock'] = (StockBalance.objects .filter(ingredientv1=i["ingredient__pk"], warehouse=(Warehouse.objects .filter(point_of_sale=i["point_of_sale__pk"]))) .first() .quantity) can somebody please tell me how to get rid of i['field'] thing to squeze that code into queryset and get rid of for loop?
Damir
or in other words how do i properly filter inner queryset by value from base queryset