Maxim
Maxim
M
Can I share urls ?
Doragonsureiyā
Can I share urls ?
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
M
Stockfish
"ModuleNotFoundError: No module named 'psycopg2'" occurs when we forget to install the psycopg2-binary module before importing it or install it in an incorrect environment. To solve the error, install the module by running the pip install psycopg2-binary command.
Mirco
Hell
hello gentlemen, I came across this example
"issues = Model.objects.using('net')"
can anyone tell me what using('') is or give a link where to read
Abhishek
Hell
I ask what " query (.using) is", but in general I figured it out. I understand this is an indication of which base to use
Mirco
Mirco
doc -> https://docs.djangoproject.com/en/4.1/topics/db/multi-db/
Hell
thank you so much
Mirco
Mani
Hey, i'm using a JsonField in my django model
result = {
"cookies":[
{
"expiry":1664294367,
},
{
"expiry":1664294368,
},
{
"expiry":166429439,
},
{
"expiry":1664294366,
},
]
}
but i cannot save result, as in the field. it gives me validation error, but jsonformatter accept this value. How can I save multiple dictionary in one field?
Yameen
Best resources to learn celery apart from official documentation ?
Alberto
Hi, I am creating an API with DRF, I have created a class UserRateThrottle to limit the number of requests depending on the user, I'm having a lot of problems to write a TestCase (because I have to overwrite settings.py and in DRF it is a nightmare, it doesn't work sometimes), there is quite a lot of code so I have created a question in SO: https://stackoverflow.com/q/73861015/13071340, I would appreciate any comments.
Mani
The Inspired
Hey, i'm using a JsonField in my django model
result = {
"cookies":[
{
"expiry":1664294367,
},
{
"expiry":1664294368,
},
{
"expiry":166429439,
},
{
"expiry":1664294366,
},
]
}
but i cannot save result, as in the field. it gives me validation error, but jsonformatter accept this value. How can I save multiple dictionary in one field?
use many=True in its serializer
The Inspired
Gaurav
Any tips to make the django based website fast for mobile?
ford
Gaurav
Its an website to host blogs articles
Gaurav
Like http requests or css or anything else?
ford
On my end it's always instant during dev ..but in production it depends where am hosting my app
Gabriel
Good afternoon
Gabriel
Is it possible to create a child object along with creating the parent object?
whoami
hi all
i have a slugfield: slug = models.SlugField(_('Slug'), db_index=True)
and when i try to give a value like "/some-slug/" i'm getting a bug "slug": [
"Enter a valid \"slug\" consisting of letters, numbers, underscores or hyphens."
]
why slugfield doesnt accept '/' ?
Charly
whoami
Anonymous
How to install django 4 in ubuntu 15 ?
Alejandro
whoami
whoami
only letters and /
Abilash
I need to write api for delete?
But i need to delete 3 modules in that viewset
How can i do this any idea?
Charly
Alejandro
only letters and /
It should work, in any case if you are storing an URL you may be able to use UrlField instead
Gerald
Андрей
Hi! Could someone help me? Now i'm playing with postgres fulltext search in my django app. Thats work not bad, but rather slow when I use django analog of ts_rank. When I use ts_headline in addition it may takes about one minute!
Now, my question. Could I play with pagination, getting all objects list with ts_rank, but rendering current paginator page with ts_headline in addition?? How i can implement this?
Ketan
Hii All Can someone help me to implement timer control in my quiz app using fjango and javascript
Model Name:
time= positiveintegerfield(help_text="Duration of quiz in minute")
I have render exam and as per there time but need to implent timer control please help md
M
➣ΞᏦΞᏆΞΝΞᏀΞ ᏔΞϴΞᎡΞᏞΞᎠΞ➣️️️️️️️️️️️️️️️️️️️️️️️️️️
Is there any free server to deploy my django application for testing?
Hamza
i used django_rest_passwordreset , how can set PASSWORD_RESET_TIMEOUT as 15 minutes
Someone
Amir
MuhammadAmin
heroku.com is difficult but pythonanywhere is cool
javad
Hey guys
I wanted to ask, if I add a series of new custom status codes to the rest_framework.status , is it wrong?
➣ΞᏦΞᏆΞΝΞᏀΞ ᏔΞϴΞᎡΞᏞΞᎠΞ➣️️️️️️️️️️️️️️️️️️️️️️️️️️
Mirco
Shivam
I have a core python project & I have to convert it into django framework,
Need help
Sergey
Hi everyone in TestCase I have setUp and setUpTestData what will be called?
Sergey
why i asking that? I created some objects for models in setUpTestData and then try get in test, but it says i have nothing
Neetanshu
Anyone here who worked on select 2 in jquery need a liitle. Help
Luis
Hi friends
One question, how do I customize this token in Django?
{"username": "XXXXX","password": "m@XkbO507rzf"}
by
{"u_enterprice": "XXXXX","c_enterprice": "m@XkbO507rzf"}
Luis
tnx
Hell
welcome gentlemen, maybe someone has already implemented these mechanisms.
I have a management team that works with a huge database. now I have implemented a logging system through print that transfers data to a file on Linux, and thus generates logs.
I want to use django mechanisms to remake the logging system, specifying my parameters and rules for generating json with logs. at the same time, I want to transfer this to the server in a file, and implement an automatic cleaning system at a certain file size.
can anyone suggest what are the best django logging methods to use
Alek
Hi,
could you please help with websockets quetion in django
https://stackoverflow.com/questions/73887327/could-not-connect-to-wss
Dionatan
Hello people, I'm developing an application with django and I'm having a problem, I'm bringing it from the database in team format,
looping and storing them in a list(array).
example:
["00:40:11", "00:56:00", .....]
this list brings the data as str. I perform the following operation
result = sum(list) / len(list)
in this operation it generates the error, which says it cannot perform the str operation with int.
does anyone know help me?
Billionnaire
Hey there
Anyone there has ever used Django registration redux with a custom user?
It's giving me errors
The problem is that errors came after deployment
Now people can't register
Anyone can please me 🙏
A straight and clear answer would be so much appreciated
Billionnaire
Django registration redux with custom usee
#
Dionatan
I've already tried converting them to int before storing in the list, but python doesn't allow converting data in this format 00:00:00. I tried to deal with replace(":","."), but without success.
Avishkar
How can we make library management system using python django
Doragonsureiyā
Nana
Hello
I used Django forms widgets for my text area but the text area is not showing
Vishal
Type error : quote_from_bytes() expected bytes
Shreyashee
Hey