Shadow
Maybe u can post it in stack overflow and I will try answer from there
Mahmood
for now the auth_user table doesn't effected when i add new user because i have custom users table i should have a way to tell django to don't use the auth_user table to delete it
prakash7
how to upload file log ?
Doragonsureiyā
how to upload file log ?
What are you talking about?
sunshine
How to create a twitter app for authenticate with django?
sunshine
Check cs dojo on youtube
now I need to understand twitter authentication flow with djoser
Anonymous
How to do Django channels with jwt authentication
Anonymous
Any tutorial
Doragonsureiyā
sent to private chat
We know the rules are quite long, but read them, because on average, hundreds of users are banned from this network every week. Reading the rules will help in avoiding this pitiful fate.
Anonymous
Ok I will see and reply thanks for the reply
Deva
Hlo friends
Deva
I am new to django
Deva
Plz help me
Doragonsureiyā
Plz help me
Not until you explain your difficulties.
jūdê
Hello, can someone guide me on the best approach for creating multi type users in Django, Django rest Framework?
Mirco
Hello, can someone guide me on the best approach for creating multi type users in Django, Django rest Framework?
https://youtu.be/f0hdXr2MOEA Here you go, from Daniel Feldroy himself 😊 author of 2 scoops of Django
Doragonsureiyā
Thank you Micro
You're welcome! 😊
Mihail
How to create InlineAdmin fields in django from code after clicking of save button? And I don't want to save this inlines. Only to show them in admin panel after form validation
Mihail
what method must I use?
Knowledge
Knowledge
class UpdateInline(admin.TabularInline): model: Activity fields = list of fields to be displayed inline class Activityadmin(admin.modeladmin): inlines=[ ActivitityInline]
Knowledge
Activity updates will be displayed inline under Activity model
Knowledge
sorry for typo as i am using mobile
Mihail
I understand how to create inlines. My quastion was how to create inlines from code (not from admin panel) without saving related objects
Knowledge
there might be some other way but this is what came to my mind
Mihail
search for django formset
as I understand, it works only with created inline objects thorough admin pannel. And I want to create this inline objects after saving of parent methods from code
Anonymous
I’m having problem with admin static files Nginx is not serving them But it’s serving my other static files
Morteza
also you can first create the parent model then after saving the form you can redirect the user to the related model form with the parent instance id
Mihail
its not only for admin panel
can you say me exact method name?
Morteza
but it is only for 1 child model, right? But if I have batch of them?
make your forms dynamic or save them by ajax there is many ways. i will say again, you can use django formset_factory to save the parent and the related objects in one single form
Morteza
depends on your use case
M
Any idea about separate deployment react + django {* not on the same hosting server *}
Cute
When i am saving extra fields with data by inline in django its not saving the inlines data into model can anyone please help me
wowlikon.py
I'm getting an error when passing data through ajax.
wowlikon.py
jQuery.ajax({type: "GET", dataType: "json", url:"/updata/", error: function(){ alert("error"); }, success: function(data){response = data; alert("success");}});
wowlikon.py
json_data = '{"data": {"lines":'+str(list(Log.objects.values('content')))+'}}' return HttpResponse(json_data, content_type='application/json')
wowlikon.py
but when i try to pass "{"example": 0}" all work
wowlikon.py
A allready fix if
wowlikon.py
i add json_data.replace("'", '"') ('' -> "") and all work
Aji
I've used django and MySQL to build a websoftware, i need to integrate it with a previously built .Net software.. all I have to do is find a way to transfer data from mssql server to MySQL...Is there a way to do that?
Doragonsureiyā
I've used django and MySQL to build a websoftware, i need to integrate it with a previously built .Net software.. all I have to do is find a way to transfer data from mssql server to MySQL...Is there a way to do that?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Hariprasanth
Hi I got an error while sending mail using django... Errno 97 Address family not supported by protocol
......
hello, there is an error when sending a message to an email in Django, I need help
Doragonsureiyā
hello, there is an error when sending a message to an email in Django, I need help
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Kavya
It seems this has nothing to do with your settings, but with your server configuration. Some services get confused with IPv6. You should try to run either your web server and SMTP server by listening to an IPv4 address.
Kavya
https://stackoverflow.com/questions/55760995/unable-to-send-email-from-python-due-to-address-family-not-supported-error
Kavya
May help this
Thealy
Hello everybody, I would like to make a model for adding note in Web-map service. The main problem is to add a pin point with coordinate x and y to link in a postgresql and I want it to return with administrative data, including village, commune, and province. How can I implement in the django model? https://dpaste.org/d7mu7 https://dpaste.org/eY1RM
Doragonsureiyā
() { :;}; echo Nickolas
Hi, I have a project using DRF and django-channels. I'm struggling to get multiple routes in my ProtocolTypeRouter working I have the following setup application = ProtocolTypeRouter({ "http": get_asgi_application(), "websocket": JwtAuthMiddlewareStack( URLRouter( api.routing.authenticated_websocket_urlpatterns ) ), "websocket": AllowedHostsOriginValidator( URLRouter( api.routing.unauthenticated_websocket_urlpatterns ) ) }) Logically, the last "websocket" entry triumps the other so they need to be nested somehow. How can I nest authenticated & unauthenticated routes? I've tried application = ProtocolTypeRouter( { "http": get_asgi_application(), "websocket": AllowedHostsOriginValidator( JwtAuthMiddlewareStack( URLRouter( api.routing.authenticated_websocket_urlpatterns ) ), URLRouter( api.routing.unauthenticated_websocket_urlpatterns ) ) } ) But this raises TypeError: AllowedHostsOriginValidator() takes 1 positional argument but 2 were given Nesting them as a tuple or list does not help
() { :;}; echo Nickolas
I assume there must be a way to use both authenticated & unauthenticated routes within the same app
Темирлан
Hi. Can i save data in model as dictionary? Key:value Example: test_results=["john":"23","adam":"25"]
Temirov Azat
Hi. Can i save data in model as dictionary? Key:value Example: test_results=["john":"23","adam":"25"]
The fact that you sent an example is not a dictionary! And so yes, you can assign the Array Field field and write in this format [{k:v}]
Cute
Hi i am trying to save multiple objects at a time but its not saving its giving query’s inside list Its showing error as it shoul be instance of some anither field how can i seperate values and make it as instance of that plz help me
Shivam
Any idea anyone django test views
Mirco
Any idea anyone django test views
Django has an entire topic on testing, so just read and study it
Mirco
No idea guys ?!
React can simply be deployed in a CDN, served like a static site Django in its own server ( or cluster )
Mirco
And how about APIs
its own server or cluster
M
Ok
M
Thank u
Mirco
!yw
Doragonsureiyā
You're welcome! 😊
Otabek
Hi, I used django channels for my project but, when I connect several devices to websocket in server, it occurs took too long to shut down and was killed. error
Otabek
can anyone help me?