Sh
Assalamu alaikum. Response class of DRF returns <Response status_code=200, "text/html; charset=utf-8">
Sh
in postman shows bad string
Abel
how can i make a patch with django rest framework
Artur
google it
Abel
google it
what a solution 👏
Abel
i can't find a solution to patch only a single field
Pankaj
I just want a good tutorial on the django core concepts other than django docs(it very complex for me). can anyone suggest a book or video tutorial.
Vitaliy
y
Hi. I have a problem displaying filtered objects through a form. How can i solve it? code: https://pastebin.com/bhcnxXrp
Etendra
Hey guys i have just start learn django restframework
Etendra
I'm facing problem during localhost error some one help pls
Etendra
?
Anonymous
I'm facing problem during localhost error some one help pls
paste the error in pastebin and send the link... without provding proper info, how can you expect others to help
Almaz
Hello everyone! Just wondering. Where to put ordering in django, on model Meta class or in view queryset order_by? What is good practice?
Vitaliy
When you define it inside Meta, it's automatically added every time you query model. Is it good or bad depends on your final aim.
Beka
Hello everyone! Just wondering. Where to put ordering in django, on model Meta class or in view queryset order_by? What is good practice?
Good practice is to know which one you want. If you want object to be ordred automatically best practice is to but inside Meta class. Otherwise, use in views somewhere.
Etendra
Want some good django restframework tutorial
Beka
Want some good django restframework tutorial
I googled for you. https://www.youtube.com/watch?v=XMu0T6L2KRQ&list=PLEsfXFp6DpzTOcOVdZF-th7BS_GYGguAS
R.U.S.H.A.B.H
I want to learn easiest way to use python. Forms and how to call that in html/template how ???
Beka
What did you try?
R.U.S.H.A.B.H
Wait I'll share code through pastebin
Sahu
Hello ,can anyone help me in get and post in django
محمد دلشاد
Hello ,can anyone help me in get and post in django
well google can help you in that Thats not a very big deal
محمد دلشاد
I want to learn easiest way to use python. Forms and how to call that in html/template how ???
create form classes by inhereting the base class ModelForm , create object in views pass to template and use in template simple
Zerihune
I want to develop WordPress like site In django how can i achieve Runtime DB and dynamic models ??
Zerihune
I have not relevant though
R.U.S.H.A.B.H
What is the use of class meta: in forms.py ... I don't know the usage of this class can anyone explain?
Mirco
What is the use of class meta: in forms.py ... I don't know the usage of this class can anyone explain?
You can specify additional stuff to change for example widgets, HTML attributes etc etc Everything related to the generation of the HTML code from python code
Zerihune
What do you mean by Runtime DB?
At run time database is created
Endless Life
Django 3 - Full Stack Websites with Python Web Development : https://bit.ly/3guhlMM I think this may helpful for beginners
Jun
What do you want actually?
Ferhad
Hi there.do i learn django restframework or else i can manage without it
Yash
Hi there.do i learn django restframework or else i can manage without it
I will recommend coding with mitch channel for video tutorial on youtube
Ferhad
Thanks
Maksudkhanov
class Post(models.Model): author = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_length=50) content = models.TextField(null=True, blank=True) created = models.DateTimeField(auto_now_add=True, db_index=True) updated = models.DateTimeField(auto_now=True, db_index=True) published = models.BooleanField(default=True)
Maksudkhanov
error: NOT NULL constraint failed: post_post.author_id
Maksudkhanov
could you help me, guys?
Muslim
could you help me, guys?
You’re trying to create post without author, which is prohibited unless null=True
Maksudkhanov
Muflone
so should i do it default?
if you have existing data you have to set a default value or you have to delete the data or you have to allow authors NULL, not specified
Vitaliy
Where from are you getting those ids if they are not in DB?
Vitaliy
if you have existing data you have to set a default value or you have to delete the data or you have to allow authors NULL, not specified
Maybe he's trying to create a post without an author. We don't know anything about what's happening and which conditions lead to this error 🤷‍♂
Sahu
Form ka action POST fir bhi run time pe get show kr raha hai .....django
Sahu
Anyone help me I stuck in this problem
Angela
Please someone help! I want to have a referral system in my website, each user has a referral link and if a new user visits the website with a link then the number of visit will increase for that user ( that the link was used )
Artem
Hello. I have a Django project with Gunicorn as appserver, AWS Load Balancer and S3 for static. Do I need Nginx in this environment?
Mehmet
Hello. I have a Django project with Gunicorn as appserver, AWS Load Balancer and S3 for static. Do I need Nginx in this environment?
Yes, you do. Nginx also helps to handle over traffic asynchronously which gunicorn cannot handle. Unless you do, your gunicorn will be open to denial of service attacks.
Mehmet
Hello. I have a Django project with Gunicorn as appserver, AWS Load Balancer and S3 for static. Do I need Nginx in this environment?
I was not aware that you use AWS Load balancer, you may google that but I guess it is not needed.
Artem
I was not aware that you use AWS Load balancer, you may google that but I guess it is not needed.
Now I am thinking about caching. This is where nginx seems to be really needed
Mehmet
No actually, you can consider app-level caching only, this gives you more control on views and querysets basis.
Artem
Thanks
Anonymous
I just need some help..Imma got stuck
Anonymous
Anyone?
Дауран
Does anyone make blog website from Django
Дауран
I have made 1
Is there comment , detailview and Listview on your project ?
Angela
So, increase the counter in the view bound to this url.
Please I don't understand how to do that
Mehmet
Please I don't understand how to do that
Do you wish to count uniquely? What if an anonymous user visits the link several times?
Angela
I want it to count once
R.U.S.H.A.B.H
How to pass id with post in Anchor tag from html. > Views.py?
R.U.S.H.A.B.H
use the querystring
But on html side I don't want to pass from form.... Without form can I pass?