Maxim
Send screenshot of the error
don't give bad advice
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)
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.
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
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
doc -> https://docs.djangoproject.com/en/4.1/topics/db/multi-db/
Hell
thank you so much
Doragonsureiyā
thank you so much
You're welcome! 😊
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 ?
Doragonsureiyā
Best resources to learn celery apart from official documentation ?
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.
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.
Maxim
How is celery not related to django?
look at https://github.com/celery/celery/blob/master/README.rst Framework Integration paragraph
The Inspired
Good afternoon everyone, I have a question, Can I use a fingerprint in a user register form using python and Django, for example I need to register an user, but I need to store the fingerprints...
Not really sure, but based upon this answer, https://stackoverflow.com/questions/37231480/how-to-convert-fingerprint-to-unique-id-to-use-it-for-searching-in-database it seems the best way is to store it as an image and then run it through a matching algorithm
Gaurav
Any tips to make the django based website fast for mobile?
ford
Any tips to make the django based website fast for mobile?
Fast depends on your server and internet speed
ابو السباع
Any tips to make the django based website fast for mobile?
That's kind of a loaded question.... What does the app do? How is it archtected?
Gaurav
Its an website to host blogs articles
Gaurav
Fast depends on your server and internet speed
No I am talking about general time to load page
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?
Nurhonov
Is it possible to create a child object along with creating the parent object?
Yes, you can add a method in parent class that will create child object and call it inside init() method
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 '/' ?
whoami
The point of slug is to not having special characters
is it possible to do with characters?
Charly
is it possible to do with characters?
Don't use a slug field and use a normal string
Anonymous
How to install django 4 in ubuntu 15 ?
whoami
only letters and /
Charly
How to install django 4 in ubuntu 15 ?
the same as in any platform, using pip
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?
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
Still I am getting "no module named psycopg2" error
try googling how to configure postgresql in django
Андрей
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
➣ΞᏦΞᏆΞΝΞᏀΞ ᏔΞϴΞᎡΞᏞΞᎠΞ➣️️️️️️️️️️️️️️️️️️️️️️️️️️
Is there any free server to deploy my django application for testing?
Doragonsureiyā
Is there any free server to deploy my django application for testing?
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so move to @PythonOfftopic group and ask there.
Hamza
i used django_rest_passwordreset , how can set PASSWORD_RESET_TIMEOUT as 15 minutes
Someone
MuhammadAmin
You can use heroku.com
Do you use good this site
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?
➣ΞᏦΞᏆΞΝΞᏀΞ ᏔΞϴΞᎡΞᏞΞᎠΞ➣️️️️️️️️️️️️️️️️️️️️️️️️️️
You can use heroku.com
It is not working
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
Doragonsureiyā
Anyone here who worked on select 2 in jquery need a liitle. Help
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.
Maxim
I have a core python project & I have to convert it into django framework, Need help
this is neither a job board nor a bulletin board if you want to hire someone, read the rules otherwise, ask specific questions here
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ā
How can we make library management system using python django
This is neither a job board nor a bulletin board.
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