Ruzan
Has anyone worked with django channels chat + notification with deployment
Vikash
How to do delhivery integration in django app?
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
Why is_valid method doesn't working even in my app I am writing correct spelling ...plz anyone can tell me
Savic
Hie everyone, how can I create my own custom Admin page, replicating the functions of the default Django Admin page, let's say using Frontend templates like Admin LTE?
Srinath
Hello I am using swagger with django...it's working fine in local but showing blank page in production..any help
Are you running the collectstatic cmd in your production server. If not try that
Axror
Partial_update for patch method
Axror
your_url/id/
Anirban
Hi, how to implement paypal rest api using django rest framework using subscription based billing and frontend is on react. Please suggest me any github source or any library. Where i can see the sample drf code
Anirban
Can any one suggest me some library or sample code
Anirban
How to implement paypal integration using django rest framework
Anonymous
how i am able to post data with list fucntion in modelviewset
Д
Worked 😂👍
100% of the time works every time
Kuntal
class ChildrenSerializer(serializers.ModelSerializer): grandchildren = GrandchildrenSerializer(read_only=True, many=True) class Meta: model = Children fields = '__all__' class ParentSerializer(serializers.ModelSerializer): children=ChildrenSerializer(many=True,read_only=True) class Meta: model = Parent fields = '__all__'
Kuntal
my nested serializers was not working
Kuntal
anyone plss help me
Charly
my nested serializers was not working
You'll need to elaborate on that
Kuntal
class ParentCreateAPIView(ListCreateAPIView): permission_classes = [IsAuthenticated] serializer_class = ParentSerializer queryset = Parent.objects.all() pagination_class = LimitOffsetPagination
Kuntal
it was not showing any children list
Kuntal
{ "count": 4, "next": null, "previous": null, "results": [ { "id": 7, "name": "fwfefa", "age": 54, "user": 1 }, { "id": 8, "name": "abcd", "age": 12, "user": 1 }
Kuntal
like that
Антон
I think, you should add 'children' to fields in ParentSerializer
Антон
fields = ["id", "name", "age", "user", "children"]
Kuntal
i will try this way but not working
Zdravo
set depth = 2?
Антон
class ParentCreateAPIView(ListCreateAPIView): permission_classes = [IsAuthenticated] serializer_class = ParentSerializer queryset = Parent.objects.all() pagination_class = LimitOffsetPagination
and if you want this serializer to work with post method(create), you couldn't use read_only fields Maybe try WritableNestedModelSerializer from drf_writable_nested, it is not the best decision from point of view of optimization
Suraj
Hi Friends, The tutorial from where I learn django they define STATICFILES_DIRS = [os.path.join(BASE_DIR, Static'), '/car/www/static/']
Suraj
But currently in the django documentation they have removed the os.path.join
Suraj
Please provide some insights on this
Suraj
If you guys check in the website, i hope you will get my question
Jack Sparrow
If you guys check in the website, i hope you will get my question
Simply use Path STATICFILES_DIRS= Path[BASE_DIR, 'xxxx'] Or just defined 1st STATIC_DIR = Path(BASE_DIR, 'static') And in STATICFILES_DIRS= [STATIC_DIR]
Jack Sparrow
Suraj
*i
Suraj
Are remote jobs in django only available for experts and experienced?
Duncan
How do you guys learn how to code? Do you use tutorial videos or you read books. Cause I have tried all I can but I can't seem to keep the initial momentum as I progress through learning a programming language. Can anyone give me an advice or that. Or help me in any other way. 🙏🏿
Duncan
I learn from tutorial
Oh okay. It never worked for me. 😖
Doragonsureiyā
Could you tell me briefly how you coding journey was like?
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Jack Sparrow
Are remote jobs in django only available for experts and experienced?
Nobody can directly became expirienced or expert, we have to gain it. Yaa but main issue is many companies just want to hire experts, cause they don't want to invest resources to make someone experts. But if you search, you will find freshers jobs also.
M_D
hello
M_D
how run django in background
M_D
after closing cmd
thor
after closing cmd
To do this Use apache in development rather than the dev server
M_D
But in case I don't want to apache
Kuntal
How to update nested Serializer data through one api using retrieveupdatedestroyapiview
Doragonsureiyā
after closing cmd
Why? Seriously... Why? 🤔
M_D
Why? Seriously... Why? 🤔
hello bot 🤖 I need it for my work
Doragonsureiyā
Abdulhamid
http://xyproblem.info/
hello bot what's difference between post_save and pre_save on django signals
Hossein.A
Hi everyone Does anyone know , how do upload large file with Django admin??
Doragonsureiyā
hello bot what's difference between post_save and pre_save on django signals
These single steps will help you a lot: Step 1️⃣: Open a browser Step 2️⃣: Write down https://google.com or https://duck.com and press Enter Step 3️⃣: In the search box, write down the same words you asked here Step 4️⃣: Read the first results
Kuntal
How to update nested Serializer data through one api using retrieveupdatedestroyapiview
Deepa
Hello, I am using taggitmanger for creating hashtags for posting image and video. Hashtags which we are created won't be stored in dB. Can anyone help me?
(⌐■-■)
Is using firebase realtime database with django a good idea?
Антон
Or use custom def update to pop nested object example you can find here https://stackoverflow.com/questions/34784979/writable-nested-serializer-in-django-rest-framework
Nati
how to connect database
Doragonsureiyā
how to connect database
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Д
how to connect database
speak to it softly; then take it out
Kuntal
Anyone please give me the any resources for django rest API payment gateway
😒😒
The can_delete param in modelformset_factory isn't deleting I called formset.save(commit=False) So I'm looping and trying to delete through formset.deleted_objects, But it says formset has no attribute deleted_objects.
k
Hi all, I am using DRF and need to implement a search functionality across multiple models of the same app based on the query. So, in which viewset should I place this function and how to connect it across multiple models? Thanks.
S
Hi all, I am relatively new to coding and django and I have been trying to implement dependent dropdown using models but I have hit a dead end. I want when a user has selected an item in one dropdown, the second one to display only items related to the first one. How can I go about this?
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
Anyone face error in django that " str object is not callable " . Plz help me in this error solving
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
just don't call str
I created a form with validations but when I click on submit button then it throws an error
Doragonsureiyā
I created a form with validations but when I click on submit button then it throws an error
To share code or error tracebacks, use a pasting service, like: - https://linkode.org - https://dpaste.org