Д
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 👍
Д
Never mind, I will read about authentication (probably session) handling and I will read the code
the details matter here. whether you're doing it with django 2 or 3 or N, might not be the core question if the system is properly done
Алекс
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
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
Backends usually have an API like REST, SOAP,... or they have an user interface which is created with html/css/JavaScript. With Django you can created both. It depends on your goals.
Saurabh
Hello
Saurabh
Authentication login style error?
Saurabh
Yes.
Yes
ShuvamTheBeast
Html/css/JavaScript is easy to learn.
Yik, but it's not my thing
Maxim
Yes
Yes
Anandu
I want to study about rest api . Anyone can you provide me a best tutorial of study
Doragonsureiyā
I want to study about rest api . Anyone can you provide me a best tutorial of study
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 want to study about rest api . Anyone can you provide me a best tutorial of study
it's the Django group, not a programming in general group
Azeez
thanks. now i need to get some post data but not return it))
write_only_fields should also be able to take care of this or by manipulating the to_representation function of the serializer to remove the field not wanted to return
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?
Grg
Did you fill settings.py templates
Yes. Looks like i need to update the django
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
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???
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?
Doragonsureiyā
Can someone suggest me a good course for django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
sam
Another sources?
Django for everybody. dj4e.com i think
Anonymous
Django for everybody. dj4e.com i think
Its for university students
Maxim
Its for university students
university students speak the same language as other people
Anonymous
university students speak the same language as other people
Yea but its in different level, isn't?
Maxim
Yea but its in different level, isn't?
the course is called Django for Everybody, so i don't think so
Mark
Another sources?
Try to find this book: A.Mele Django by examples. Awesome book for such beginner as me.
sam
I prefer not to learn from books but from videos
Would you mind sharing what kind of videos you learn from? Must be NSA level tutorials you're looking for
Drago
Im a beginner and want to build some advanced level projects
You are beginner and you want to build complex projects? Where is the logic🧐
sam
Im a beginner and want to build some advanced level projects
Have you tried out the Polls App from Django's main website? It's advanced enough for a beginner.
Anonymous
You are beginner and you want to build complex projects? Where is the logic🧐
I want a course that make me from a beginner to advance
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
I prefer not to learn from books but from videos
justdjango.com (that's not free but it helped me a lot, really like his thought process) , also there s a hours of free stuff
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
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
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
Because the return statement inside the loop, the first product price is returned Try this def total_cart_price(products, cart): sum = 0; for p in products: sum += total_price(p, cart) print(sum) return sum
Mirco
same the error persists
We don't have any magic ball so if you don't share the error we cannot help u
Sophia
We don't have any magic ball so if you don't share the error we cannot help u
Sorry for the inconvenience now I can't able to share, will share you later
Anonymous
Aggregation is much better That code is pretty weird especially when the db is becoming bigger
I no nothing about her code, I'm only talking about the return statement
Chandra
Hi guys where to learn the advanced django orm queries please provide any tools
cj
Hi guys where to learn the advanced django orm queries please provide any tools
what kind of "advanced" things... because everything is covered in the documentation ¯\_(ツ)_/¯ https://docs.djangoproject.com/en/4.0/topics/db/queries/
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
S
How to create custom permission in Django as I am new can someone please help me in this regard
Zhaks
How to create custom permission in Django as I am new can someone please help me in this regard
https://www.youtube.com/watch?v=-0c88d24qzM&ab_channel=CodingEntrepreneurs
S
https://www.youtube.com/watch?v=-0c88d24qzM&ab_channel=CodingEntrepreneurs
Will it work in Django as it is? I am talking about Django only not DRF.
Zhaks
https://docs.djangoproject.com/en/4.0/topics/auth/customizing/
Jerome
How to create custom permission in Django as I am new can someone please help me in this regard
Try first ! Look another video, which may be more understandable check articles, socials , reddit . get passionate then ask something more specific
Ahmed
you saved my day
rtg
Hi! I have a problem with Django, Ngnx and Gunicorn: