Horlarwumhe
Anshu
Or use slice:"100"
Slice returns the list
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
𝕯aniel
Slice returns the list
Also u can cut text limit
Kashif
any one have free course related to ERP?
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?
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
Setayesh
https://youtu.be/dIcCi2SG1CU
Is there any possible way for handling this in server side? With Django rest?
Anonymous
I don't know whether I get you right?
Yes .. I am looking for front end
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]+)/$']
ADI
i used i.id but not work
Mirco
i used i.id but not work
Don't write me in PM and share code via pastebin.org
ADI
<a href="{% url 'update' i.id %}" class="btn btn-info"><abbr title="DO YOU WANT UPDATE DATA">UPDATE</a></abbr> i put it
ADI
i.id is empty
Bit I used same I'd in main URLs.py
Mirco
Bit I used same I'd in main URLs.py
It just means that the object you are trying to see does not exist into the database
ADI
Now what should I put
Mirco
Now what should I put
Create the object inside the database before trying to access it
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
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?
Mirco
How could I use React.js and other FrontEnd frameworks with Django?
The easiest way is to handle them as 2 differents projects So with Django you develop APIs and with React or other you consume them
Anonymous
Oh, I understand. Thanks so much!
Setayesh
https://youtu.be/dIcCi2SG1CU
Thank you for answering me🌷
Doragonsureiyā
Oh, I understand. Thanks so much!
You're welcome! 😊
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
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
Anonymous
either the ip is not available for the VM. try to use 0.0.0.0:8000
This is working, but I want to access my django app outside my VM. Bcz in my VM only cmd mode is available..
Anonymous
either the ip is not available for the VM. try to use 0.0.0.0:8000
Ip is available... I'm able to ssh to the VM
Horlarwumhe
This is working, but I want to access my django app outside my VM. Bcz in my VM only cmd mode is available..
using 0.0.0.0 means it should bind to all ip that is assigned to the VM. this is very useful when ur VM ip changed .
Mysterious
How to save QR code to a pdf file???
Doragonsureiyā
Thanks a lot... It worked 😊😊
You're welcome! 😊
Anonymous
How to save QR code to a pdf file???
I had saved it as .png don't know pdf
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?
Mysterious
I had saved it as .png don't know pdf
Hi .png is working.but i want to write into a pdf
 ‌‌‌‌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. _.
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
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
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
Just create a model with a integer field, accept a choice from 1 to 5 Connect with a FK that model to your Article model
Линар
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
If database field accepts integers only and you try to save string it will throw integrity error
Hi! Where can I read about such way of using functions? fun(func_to)()
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.