Shubham
Hi guys!
Any tutorial link for Rest framework?
Probably Video tutorial
Alex
Shubham
If I had got updated series i wouldn't have asked... Don't you think? 🤔
Shubham
JustDganjo guy had the best series... But no idea why he stopped all of sudden
Alex
Gourav
No there is no running project I am just learning this architecture in my free time
Gigil
Have any one tried integrating payment gateway using payu money?
I didn't get any good documentation for it.
0xky1e (けち)
Anish
hello guys , i created a custom registration and login form and i want to use reset password and change password from django.contrib.auth.urls i dont want to use login and logout urls which is provided by django.contrib.auth.urls , can i do that ?? By defalut django.contrib.auth.urls provides login , logout , password reset and password change urls and handle it by own but i don't want to use login and logout because i have created methods for login and logout. thanks in advance
Derek
thank you for you assistance!
Derek
TBH, I can seriously see this solution to work in real life. It is actually look good. It's not perfect but it is much butter than only .html and it is actually protect user from himself. Great! It does his work! Thank you one more time, Sir!
0xky1e (けち)
glad u found it helpful😉
Anonymous
How can i display incoming json data on the webpage?
Yash
After deleting a model instance, I want to save that deleted instance in other model, so is their any other way except creating the same model with same attributes?
Yash
Alex
Dhruva
module 'djangi.db.models' has no attribute Textarea
Dhruva
How to resolve this error
PV
Dhruva
Dhruva
I have mentioned textarea in forms
Dhruva
So it should map
Dhruva
Alex
Dhruva
Alex
PV
PV
And Textarea() in forms
Yash
Gio
is this chat deleting messages time to time ? i am asking because stats show so
Alex
Gio
Bot does
that means if someone already shared their knowledge about something i have to ask again
Gio
are photos urls and files also deleted?
Valery
Hello. How can I get related objects in last model in example?
class Base(models.Model):
name = models.CharField(max_length=300)
class Sub(models.Model):
base = models.ForeignKey(Base, on_delete=models.CASCADE, related_name='sub')
class SubSub(models.Model):
sub = models.ForeignKey(Sub, on_delete=models.CASCADE, related_name='subsub')
# obj = Base(name='base')
# obj.sub.subsub
Mirco
Mirco
!rules
Doragonsureiyā
Read the rules before any activity: @PythonRules
Gio
Valery
Alex
Alex
If an answer is deleted, it was likely the one who sent it
Valery
Anonymous
https://stackoverflow.com/questions/17359790/how-to-restrict-foreign-key-choices-to-another-foreign-key-in-the-same-model
Anonymous
Alex
Alex
then use them instead of *_set
Gio
https://pastebin.com/dijcgJv5
https://docs.djangoproject.com/en/3.0/topics/db/queries/#lookups-that-span-relationships this describes much better than my broken english
Anonymous
Anonymous
class Province(models.Model):
name
class City(models.Model):
name
province= foreign key
class Trip_plan(models.Model):
province=foreign key
city=foreign key, limit_choices_to={'province': province}
Anonymous
Like this, for when in the panel admin of that model, we use the
Valery
Valery
Valery
I just need to display the school and all address objects on the main page. And the addresses do not have FK to the school. This is an example. A bunch of models is longer)
Alex
Valery
Super. This is what I need. Thanks a lot!
Alex
Hey, can help me anyone?
I need make some function which will create instance of the model and change only one field other model. Can't find some decision in google
Alex
Gio
Gio
do you use drf? django rest framework or django itelf?
Alex
Not drf
Dhruva
In wizard form how can we add the FileField
Gio
Not drf
https://docs.djangoproject.com/en/3.0/ref/models/querysets/#update
Vorke
Hi everyone, wanted a tutorial on django and vuejs using jwt, someone please point me to a good tutorial
Alex
Alex
We are not going to search for you. We are experienced developers who develope and maintain such libraries and framworks.
Vorke
Reason i asked is the ones i found online were more of continuations
Vorke
But thanks anyways