Ashlah
Serializer?
Anonymous
how can i integrate 2fa authentication into my django project?
ASK
How to make a website using python?
Cesar
How to make a website using python?
Using... Django maybe ? Flask?
Vladimir
Hello! Tell me the resources or books on which you have honed your Django skills ... Thanks in advance
Doragonsureiyā
Hello! Tell me the resources or books on which you have honed your Django skills ... Thanks in advance
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
I want to work on website which give a tutorial and I am stuck on how to implement the relationship i wanted. The course have chapters and each chapter have subtopics and the subtopics may have multiple page ... My question is how can I handle this kind of relationship anyone can help, or ideas to help me using Django obviously?
Lugano
I need to store 2017-04-07096 its a registration number,should i use CharField() or PositiveIntergerField() ?
Lugano
It can be 2016-04-11777
Cesar
Not a sequence
I would use char so I don't have to deal with masks
Nicolas
Hey, I need to learn how to make a blog, where I can put one image or more, where I can format the text... Etc... Like the new york times page, or google blogspot
Vladimir
Good day everyone! Can sombody help me please? In my Django project i have 2 modeis Post and Group. They are connected through M2M relationships and when I save new post group returne me trace "post needs to have a value for field "id" before this many-to-many relationship can be used". How can i override create method (i guess) to fix this? Or maybe i need to use something else?
Vladimir
You must first save either post or group then add the relationship. You cannot create a relationship between instances that doesn't exists on the DB
Yes, but such code does not look clean... new_post = new_post_form.save(commit=False) new_post.author = request.user new_post.is_blog_post = True new_post.save() if slug != 'None': new_post.group.add(VertexGroup.objects.get(slug=slug)) new_post.save() return redirect('user_profile', email=request.user.email)
Vladimir
I have to save the post twice (
Anonymous
Page has a foreignkey to subtopic Subtopic to chapter Chapter to course
Owk I thought this relationship is not work but now I have to try rather than writing on paper Thanks
Cesar
Well, what can i say..... you can not add relationship if there is no ID on the database
Cesar
it is pretty clear in the documentation
Cesar
I have to save the post twice (
https://docs.djangoproject.com/en/3.0/topics/db/examples/many_to_many/ 'You can’t associate it (with a Publication) until it’s been saved'
Vladimir
Thanks for attention
Anonymous
Hello Can anyone explain me how to link two view's on a same page Lets suppose i want to load Blog created on admin site which has a view bloglist, and blog-detail and on same blog template in a side bar i want to load Instagram feeds if anyone can help me with it pleaz
Anonymous
Hey guys do you know how I can make API requests from my web app and receive responses from an API
KALEAB
Mysql or postgres is suitable for django???
Anonymous
use requests lib
Please explain more. Is it a function I use
Anonymous
I'm lost. I need something like postman but in my program
Yegor
Mysql or postgres is suitable for django???
bcz there's larger contrib module
Yegor
Please explain more. Is it a function I use
https://requests.readthedocs.io/en/master/
KALEAB
Is it possible to encrypt my data in postgres to protect it from hacker
Michael the wolf 🐺
Is it possible to encrypt my data in postgres to protect it from hacker
https://www.postgresql.org/docs/12/encryption-options.html
KALEAB
What type of security is better for django to encrypt backend data
Jimmies San
Michael the wolf 🐺
Didnt notice version
Michael the wolf 🐺
First google link and i copied
KALEAB
Best django admin customizer
Jimmies San
Didnt notice version
no probs. just saying :)
KALEAB
What are the main point i must be focused on when i want to develop website as a professional
Jimmies San
What are the main point i must be focused on when i want to develop website as a professional
TDD, unit and functional. clean code: readable, lean and clean, well documented
V
So I am making a new app in django can some one tell me easy way for custom django
V
Login logout signup
Saw
Hello. Who will be able to help me with a pseudo code Django-Ajax
Alex
Login logout signup
Read the docs about authentication and the auth user model
V
Ok
JK
Hello this is JK from Afghanistan I am heppy to be here 🙂
Anonymous
I am new to django. Can anyone provide me a roadmap for learning django??
Cesar
I am new to django. Can anyone provide me a roadmap for learning django??
Did you even googled "Django tutorial"?
Anonymous
Did you even googled "Django tutorial"?
Yeah following freecodecamo tutorials
Anonymous
I just wanted some suggestions
Moon
https://django.fun/docs/en/3.0/intro/tutorial01/
Anonymous
How can i send data from ESP32 to a Django web server? Can someone explain the process.
Alex
Please, give us the full context. Where is it from?
Jimmies San
seriously?
Jimmies San
😂😂😂
Alex
I guess you can find answer via this link https://ccbv.co.uk/
Jimmies San
https://stackoverflow.com/questions/44823132/diference-between-get-context-data-and-queryset-in-django-generic-views?rq=1
MG
t=int(input()) for i in range(t): d, n=int(input().split()) lis=list(map(int,input().split())) p=[] for i in range(d,n): p.append(lis[i]) for i in range(0,d): p.append(lis[i]) for i in range(len(p)): print(p[i],end=" ") print()
MG
can anyone tell, how to take multiple input in python3
MG
I do this but showing error
MG
line number 3
Alex
line number 3
use multiple input calls or put everything in a single input and parse the data
MG
can you write the code
Jimmies San
can you write the code
when i read this kind of question i want to ban the people
Alex
when i read this kind of question i want to ban the people
Well, once you didnt know how to eat by a spoon. But such asks really annoy
Alex
how to parse the data
It depends on the data. For example, if it is an array of numbers like 1,2,3 you could .split(',')
Valery
If you want some additional data not from db then use get_context_data. get_queryset = data from your db
Mirco
get_queryset is related to the default data you get into that view from the model you wanna use in that one ( one of the most common stuff is to override the default one to add some filter/order bla bla ) get_context_data allows you to work on the context passed to the template you render via that view, so the simplest thing you can do is to provide new context variable to be used into the template and this variable can contain the result of your self.get_queryset