Д
the problem could be rephrased as: Please design my whole system and then tell me if what I'm asking works (without knowing details, of course)
Typucm
Please, excuse me if my question sounds like this. I have no django experience and I do noy know how to ask it in this context. That is the reason why it may sound so broad.
Д
Typucm
Never mind, I will read about authentication (probably session) handling and I will read the code
Typucm
I understand.
Thank you for the answers 👍
Алекс
if commit:
user.save()
user_registered.send(UserRegister, instance=user)
return user
user_registered = Signal()
def user_registered_dispatcher(sender, **kwargs):
send_activation_notification(kwargs['instance'])
help, how to pass the user argument to signal?
ShuvamTheBeast
I wanna learn a backend but I'm not into web developement (html css etc) so is django a good option for me? Or should i go for some other backend
Andrej
Saurabh
Hello
Saurabh
Authentication login style error?
Rohan
Saurabh
ShuvamTheBeast
ShuvamTheBeast
Maxim
Anandu
I want to study about rest api . Anyone can you provide me a best tutorial of study
Maxim
Grg
Hi to all! :)
Can anybody help me please?
I trying to render simple html template in views.py with render() function
def index(request):
return render(request, 'news/index.html')
I have correct structure in project. Folders and html file is exist. But... i have this error :(
https://dpaste.org/25FHm
When i trying render my simple html structure in another function (HttpResponse) i do not have any problems. (All worked is OK, when i use)
def index(request):
return HttpResponse('hello world!')
but if i use the render() function, i have errors. Where can be an error?
Alisher shamuratov
Grg
HamidReza Fekri
Hi I have installed drf-yasg for my project but when I import in doesn't recognize it
HamidReza Fekri
And also added to installed apps
Maxim
Andres I deleted your message by mistake
Repeat it please
Sorry for the inconvenience
Pritiranjan
drStrange
I'm a python programmer taking Django for Everyone Specialization on coursera... But tutor uses django v3.0.2 as it was produced 2019 or so..
Do you think it's worth it continuing the specialization???
Mahdi
Jerome
yea. For your first hours learning Django, it s fine enough, the most important being the teacher.
Anonymous
Can someone suggest me a good course for django?
Anonymous
Anonymous
Anonymous
Mark
Another sources?
Try to find this book: A.Mele Django by examples.
Awesome book for such beginner as me.
Anonymous
Anonymous
Anonymous
Tao
drStrange
drStrange
Krushna
I am learning DRF.
Using prepopulated_fields in Category model to save category_slug based on category_name.
But, in DRF on POST request category_slug is required field and have to fill it manually.
(Note: Using importing models from another app and not within api app)
I want to generate it i.e. category_slug. Can you give me a hint?
I couldn't find something related to it on web.
Jerome
In a different way, Django series from Mosh are good too imo.
Sophia
can anyone say how to calculate the total price in ecommerce website
def total_cart_price(products, cart):
sum = 0;
for p in products:
sum += total_price(p, cart)
print(sum)
return sum
i dont know what mistake i have done
Mirco
Sophia
same the error persists
Reflex
I have two models, post and comment,
Post and comment are related..
Comment model has author,post and body
In commentserializer i have author as read-only field with source author.username, post as a read-only field with source post.id, so am left with body..
In my view, im using a listcreateapiview, i have a method perfom_create as follows
perform_create(self,serializer):
serializer.save(author=self.request.user)
If I pass post as self.request.post i get an error
If save without without passing post to perform create I get integrity error, the not null constraint failed...
How do i associate my post to the comment serializer before saving it?
URls for comment
Path("comments/".....)
Anonymous
Mirco
same the error persists
We don't have any magic ball so if you don't share the error we cannot help u
Mirco
Sophia
Anonymous
Chandra
Hi guys where to learn the advanced django orm queries please provide any tools
Alex
Shubham
Hello new here
Shubham
I am getting a problem
Shubham
I am creating a django form
Christian
I am creating a django form
Do you know that Telegram allows multiple lines per message?
See? You don't need to write several messages to explain your problem
Shubham
When somebody submit it i want to display his response in a seprate html template with a unique id. But when i try do it renders all of the previous response in that html file. This is ideal for a comment system.
Does anybody have solution of this
Shubham
Alex
S
How to create custom permission in Django as I am new can someone please help me in this regard
Zhaks
S
Zhaks
Zhaks
https://docs.djangoproject.com/en/4.0/topics/auth/customizing/
Ahmed
you saved my day
rtg
Hi! I have a problem with Django, Ngnx and Gunicorn: