Place
hello everyone, i have a problem using django-admin with mongodb, when creating a manytomany field it doesn't create a primarykey for the model1_model2 collections, so i would like to override the save_related and i wanted to ask how to edit it to add a primarykey to the new instance created on the collection model1_model2 ! thank you in advance
Doragonsureiyā
Actually interview is based on Django developer
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so move to @PythonOfftopic group and ask there.
AceT0ne
Can i get some tutorial how to save images
Mirco
Can i get some tutorial how to save images
https://simpleisbetterthancomplex.com/tutorial/2016/08/01/how-to-upload-files-with-django.html
AceT0ne
Thank u
Doragonsureiyā
Thank u
You're welcome! 😊
Vishnu
Is React and django combination good or should I move to node.js as backend?
Vishnu
It works good. You can go ahead with it.
Thanku, I'm beginner what should be my next step I learnt react and django individually?
Anonymous
Hi
Anonymous
I have displayed my code in heroku and the images do not work. Does anyone have any possible solutions?
Anonymous
Can someone help me please?
Anonymous
https://edutinblog.herokuapp.com
Anonymous
My app
Anonymous
How to prevent reload of page after submit form
Mirco
Anonymous
Any other options
Azat
How to prevent reload of page after submit form
Here are some great answers to that question. I don’t want to come off rude but learn to google =) https://stackoverflow.com/questions/25983603/how-to-submit-an-html-form-without-redirection
Mirco
Any other options
No, why complicating your life ?
Anonymous
Thank you
shashikant
Hi,I have just started learning Drf ..can someone tell me why we write create and update method in our serilizers.py file.
Doragonsureiyā
Thank you
You're welcome! 😊
Владислав
Friends, is it possible to make one common selected_related and prefetch_related? Probably impossible https://pastebin.com/ACgFHRix
Rafael
Hello everyone, I'm working with django-material that uses viewflows, anyone have ever worked with this lib?
John
I have displayed my code in heroku and the images do not work. Does anyone have any possible solutions?
You'll have to store your uploaded media (and static files ) elsewhere. Get a tutorial on aws s3 buckets
Place
well sorry to ask again, but i am still having the same problem so i am asking, did someone already updated the save_related method ? i am having a problem and i don't know how to use it correctly if someone can help me please, or if someone know how to use signals to update the join tables created by django for the manytomany relationships
Anonymous
two mins
Naresh
def sequence (parameters): List=[] for parameter in parameters: List.append(parameter['List']) When I try this it giving error like String indies must be integers Please help me
Haki
Friends, is it possible to make one common selected_related and prefetch_related? Probably impossible https://pastebin.com/ACgFHRix
Not in a simple way. But you might benefit from using union all for this sort. See https://docs.djangoproject.com/en/3.1/ref/models/querysets/#union
Sibi
I need to do text effects using django and js
Sibi
Can anyone help
Sibi
I am kinda new to django
Pavel
> ValueError at /api/v1/messages/message/create/ > Cannot assign "<django.contrib.auth.models.AnonymousUser object at 0x10e076df0>": "Message.user" must be a "User" instance. How to deprecate post messages for unauthorized users in DRF?
Talha
i have an array of ['blogger', 'Photographer','Digital Creator','Artist','Health/Beauty','Food & Beverage', 'Photographer', 'Photographer', 'Photographer','blogger','blogger','blogger','Artist','Artist','Artist','Restaurant']
Talha
i want to sort it according to their names and count the value
Ravi
Is there a Django package to handle all forms of customer communication channel/notification like SMS, Email, WhatsApp, App Notifications etc, Could be very useful package which provides boilerplate to get started using common providers like SendGrid, SES etc? What comes closest?
Anonymous
hello I am Moxira I do'nt know english and I am learning Python programming language
shashikant
I have an simple django app..say a todo list...i want to create api for this app...so can i convert an app into api with Drf ...or I have to recreate a api for this .
Anonymous
What help do you need?
I need quality video tutorials on django and SQL
Manish
Is there any way we can control the representation of fields objects separately in JSON Response and in the HTML Form in case of Browsable api in DRF?
Manish
Like I am stuck with a strange situation where, My fields are represented in two two different representation
Manish
in the JSON response I receive this:-
Manish
for reference https://stackoverflow.com/questions/66794979/how-to-customise-the-representation-of-fields-of-a-nested-serializer
Anonymous
You need to search in YouTube
SINCE THE INFORMATION IS LOW
V
Can we customize django default token generator?
Tech
How to pass a query from one function to another function please help me
Randy
Why am I not getting the id in the request post when there is an instance in the form, but returning an instance with id (None)? In forms the field is HiddenInput, and in the template {{... id}} is inserted. View: https://github.com/alechries/MyHouse24Django/blob/master/MyHome24/apps/admin/views.py#L194
Randy
Sorry, but why are you still using forms in 2021?
You offer request.POST['field'] ?
Randy
Sorry, but why are you still using forms in 2021?
How to transfer information to another page then? aren't forms a simple alternative?
Константин
I meant more about the implementation of the rest api of the server and the use of Js frameworks vue / react than django templates and html on the server.
Константин
Pay attention to line https://github.com/alechries/MyHouse24Django/blob/master/MyHome24/apps/admin/forms.py#L124, it does not allow you to migrate after cloning the repository due to an error: "django.db.utils.OperationalError: no such table: _db_user"
Djewiet Evrard Armel
Hi, i am new , and i am very happy
Aparajita
Is there any python package for city??
Aparajita
Like for country...pycountry is there..so fir city we need to install which package?
Aparajita
Anyone can help me with this..please.
satyam
django-city
Tech
what you want to do
I want to filter a query in one function then I need to export that filtered query in another fun tion
Tech
Export function like pdf,CSV
Fuad
Hi, I stuck with static files when dockerize my Django project, I already write question on stackoverflow, but don't get answer yet. please help me, thanks in advance.
Fuad
https://stackoverflow.com/questions/66798370/permission-denied-cannot-open-static-files-docker-django
Mr. Marlega
I'm looking for a part-time job... Can anyone refer me please
Neo
Hi I have nested serializer, how can i filter data based on column value, below is the serialier class GetChildDataSerializers(serializers.ModelSerializer): supporters = EventSupportedSerializer(source='eventsupportedby_set', # source=EventSupportedBy.objects.filter(bl_status=True), many=True, read_only=True) partners = EventPartnersSerializer(source='eventpartners_set', many=True, read_only=True) associates = AssociationSerializer(source='eventassociation_set', many=True, read_only=True) speakers = EventSpeakersSerializer(source='eventspeakers_set', many=True, read_only=True) media_partners = EventMediaSerializer(source='eventmediapartner_set', many=True, read_only=True) exhibitor = ExhibitorSerializer(source='eventexhibitor_set', many=True, read_only=True) dynamic_entries = EventDynamicMasterEntriesSerializer(source='eventdynamicentriesmaster_set', many=True, read_only=True) class Meta: model = EventDetails fields = '__all__'
Aravind
Does any one know any good tutorial channel for learning data mining?
Aravind
I have been working on a django+machine learning project... So i require lots of data from various social medias like twitter and various sites. Any one worked with similiar projects?
Rup
Anyone knows how to generalized a query in model?
Rup
I want to fetch record by specific value
Rup
I am unable to fetch record by id only
George
Anyone who can help me link CCAVENUE Payment gateway integration to Django Rest framework?
Doragonsureiyā
Anyone who can help me link CCAVENUE Payment gateway integration to Django Rest framework?
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