𝕯aniel
Horlarwumhe
Horlarwumhe
Anshu
Anshu
The
Hi all,
I am just beginner in django
I want to know how can i create field in django model
Whose value is like
student_id = STUD/(counter)/(year)
The
Counter should increment and
Reset to 1 for every year
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
Kashif
any one have free course related to ERP?
Anonymous
Setayesh
Hii guys
In my project
I want to build a web app where a user is brought to a web page with a search bar and upon every keystroke the results of the search should be displayed below the search box
A real-time search bar
Searching the database (about 500 objects and growing)
How should i go about doing this؟
Should i handle it in frontend with ajax or backend ?
If backend
What should i use?
What is the best way?
Anshu
Anshu
Anonymous
Thanks to you guys for answer me. When I said "More than one app" is because I've been working with only one app in Django projects. And thanks to answer about Django and Node.js
Anonymous
Anonymous
Tried using achor tag
Anonymous
Anchor
ADI
i am facing small herror any one tell THIS IS CRUD operation Reverse for 'update' with arguments '('',)' not found. 1 pattern(s) tried: ['upd/(?P<id>[0-9]+)/$']
Mirco
ADI
i used i.id but not work
ADI
<a href="{% url 'update' i.id %}" class="btn btn-info"><abbr title="DO YOU WANT UPDATE DATA">UPDATE</a></abbr> i put it
Mirco
ADI
Now what should I put
whatsinaname
Django rendering html page which doesn't even exist(It's a distorted form of another html page, but idk why would it return that)
Jose
ParseError
JSON parse error Expecting value: line 1 column 1 (char 0)
shashikant
i have this question , in django we usually write our models which automatically writes sql codes for us and to query the data base we use view and django query.Do there is any need to study database like postgres or sql ? Does it come any use to use somewhere ?
Rohan
Rohan
You need to understand SQL in order to get the most out of your ORM.
shashikant
Thnks rohan
Anonymous
How could I use React.js and other FrontEnd frameworks with Django?
Anonymous
Oh, I understand. Thanks so much!
Mirco
Doragonsureiyā
Anonymous
When I try to assign my IP in runserver i'm getting this error
Error: That IP address can't be assigned to.
Anonymous
Horlarwumhe
Anonymous
what is ip you tried to assign ?
It's my VM's IP address, where I have containerized my django application...
python manage.py runserver 10.127.196.xx:8000
Horlarwumhe
Anonymous
Horlarwumhe
Anonymous
Anonymous
Mysterious
How to save QR code to a pdf file???
Doragonsureiyā
Xəyal
Hello everyone.
Is it possible to write code all the functions of zoom(meeting, screenshare, unmute participant, chat and etc) on a website with django?
𝕯aniel
Hey sure is it possible
Xəyal
Thanks
lychnobite
Hello, I am creating Table in Ckeditor and writing down the features of the product. Width on the desktop was normal. How can I do this for the media?
Hamed
Hi everybody we can use all bootstrap classe in django_ crispy??
Anonymous
Hello, I'm sorry. Do you have a tutorial for make a custom user model? I created one but when I apply migrations it comes with the default Django model. _.
kuzmich
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
Hi
How to create "star rating" for articles?
I found this link https://pypi.org/project/django-star-ratings/
but I confused with the descriptions
Mirco
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
Линар
When I log in to steam, I use the local ip, because of this, after logging in, it just goes to localhost instead of the main site. How fix it, or at least how you can approach the solution of this problem, I don't even know how to google, what to try
Najim patel
return self.cursor.execute(sql) django.db.utils.OperationalError: could not open extension control file "C:/Program Files/PostgreSQL/13/share/extension/postgis.control": No such file or directory
Any one solve this error
Damilola
Question
Hello guys, is there a way to quit selenium peacefully in Django test without it saying "an existing connection was forcibly closed..."
Damilola
It tend to mess up test result view with the "forcibly closed" message
Arezoo
When I use django backend minio I get error:
Maxretry error at privateattachment/add
Arezoo
?
Anonymous
Authorization
1. User posts his username and password on '/sign_up' or whatever path I want
2. I hash the password and put it to the server database
3. Return success to user and redirect him to login page if anything is okay
Authentication
1. User posts his username and password on '/login' or whatever path I want
2. I check username and password are same by hashing his password and checking hashes of password stored in database
3. In success I return jwt
4. User uses this jwt in authorization header each time when resources on my site are restricted
Did I get it right?
Rinat
Mikael
Hello people. Mike here. So I have am having problems trying to subtract variables stored in different classes. I am at the Withdrawal class and I have defined a custom method for computing the difference. The custom method is called balance(). Now my problem is how to import a variable from a different class and use it to find the difference. Am doing this in the Django models.py. Let me share the models.py file.
Mikael
Ooops, sending media is not allowed here😒
Mikael
Here's the link: https://www.dpaste.org/GfUZ
Mikael
Someone help me
~:$
Write a function as utility fiction. Not as a property of a model class.
~:$
In that utility function balance you can fetch data from both classes. Simple.