Yash
In evening i will send u
Yash
Currebtly i am not with the pc
Naol
search it on google there is a clear explanation on medium
Hikmet
Hi everyone, I have a problem. I created custom user model inheriting AbstractUser class, with phone as login and password. Now I registered and logined through postman and got my token, okey so far.
Then I connected this custom user with my products model and what I want is, when I post some product using user token in authorization headers, I want the user id to be returned to my request along with the products, but instead i get error: "user" - this field is required.
P.S i swear the problem is that i forgot to override some method in my custom user, because with default User model it works fine
Hikmet
I also overdefined perform create method, but it didn't help
Hikmet
https://dpaste.org/Rp3o
Here is all code needed
sainath
Creator
Hey There I developing a quiz app where I am using Next & Previous Buttons I want to select one of the option and go to next question but when I am coming back i want the option that i selected must be there but not getting it so How can i do this suggestion/refferal/topics??
Mirco
Buy it.
Anonymous
Mirco
Ok
Piracy is not supported here
Anonymous
Driptamine
is there way/command to start django project with default PostgreSQL database intead of SQLite?
Driptamine
Anonymous
Neeraj
Neeraj
Abdulloh
Hi everyone
how to make data of one column don't equal to data of another column in django models
sainath
I'm new to web development having python background...
Actually, I have a doubt which background is very good for web development python or javascript... because in web development javascript web framwork always takes first place(react) than django....
Kid
Kid
Python and Django whit Django rest try
Sopan
Sobhan
Hey everyone
I have maken 3 models in jango
But when i click them i see error
Justin
how i could download Python best tour templates? there?
usEr1024
Best bitcoin payment gateway for django app
usEr1024
Sobhan
How i can connect jango to templates?
Warlock
hji
Mirco
Doragonsureiyā
How i can connect jango to templates?
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Naol
this should be the last place to look for someone to hire you as a diango dev
Mirco
!job
Doragonsureiyā
Rule 🔟: Job offers are only allowed in the offtopic chat - @PythonOfftopic. To avoid being marked as spam, make your offer include skillset/techstack, salary/reward, contact information and a brief description of what work you want done.
Warlock
ok
Mirco
Even if yours is not an offer
Naol
like there are about 10000 django devs here
Sobhan
Felipe
Arezoo
When i call serializer in method in views.py it do not get url with host.why?
But when i call serializer in class it get url with host
Mirco
Arezoo
I want to return as 127.0.0.1:8000/......
Arezoo
Hemraj
Hi my views file
class BlogDetail(generic.DetailView):
model = Blog
template_name = 'front/blog_detail.html'
And i have defined url
path('<slug:slug>/', views.BlogDetail.as_view(), name='blog_detail'),
And define in template
{% url 'blog_detail' blog.slug %}
But i am facing error when i am open my blog
NoReverseMatch at /blog/
Reverse for 'blog_detail' with arguments '('',)' not found. 1 pattern(s) tried: ['blog/(?P<slug>[-a-zA-Z0-9_]+)/$']
Hemraj
Could you please please correct me where i am doing wrong?
Erfan
Mirco
Mirco
Hemraj
Thank you guys 🙏🏻 problem is resolved
Erfan
and yes, you are right
Mirco
Erfan
Gkm
how to add the number of days to recover from the computer
example: January 12, 2021 +10 = January 22, 2021
help me
ken
add timedelda num_days 10
Gkm
Fichier models or views ????
day_jobs= model.datafield(auto_now=true)+timedelda num_day10???
where in place????
Arezoo
Hi can i use post method to read data?
Sumit
hi, i have both python 3.8 and python 3.9
Sumit
but when i am typing pip it is taking it from python 3.8 and when pyython then it is from python 3.9
Sumit
how to run pip from python 3.9
Anonymous
Naol
Naol
how good is django for devops,
Naol
the testing got me thinking of that
Gkm
cj