Felipe
Can I use signals to check only 1 field?
Felipe
Dispatch it whenever this field is updated
David Kilgrave
can i use django for front end stuff, such as making GUI form for input and a little bit of data visualization for the user?
David Kilgrave
maybe those two framework r not suitable. what tools or library would u recommend for GUI form?
David Kilgrave
well, just simple form with text field and submit button
David Kilgrave
output message in simple text window
David Kilgrave
for desktop program
start living
If anyone wants any 2020 running UPSC courses or any optional Msg me to get
Remy
Hello everyone! I just joined the channel. Quite excited cause I didn't know it existed 🙂 I've been working with Django daily for about 4 years now and I truely enjoy it. I hope to share tricks and knowledge about Django here with you guys. Cheers!
Денис
can i use django for front end stuff, such as making GUI form for input and a little bit of data visualization for the user?
Django is basically about processing http requests. Build your UI through any front end library and pass http requests from it to Django
krishna
Do you guys have any tutorials on django+ react. Or any YouTube channel suggestion.
Andrey
Do you guys have any tutorials on django+ react. Or any YouTube channel suggestion.
I found it some time ago but didn't see it yet. Maybe it helps you https://www.youtube.com/watch?v=RG_Y7lIDXPM&list=PLLRM7ROnmA9Hp8j_1NRCK6pNVFfSf4G7a
pulkit
*Hey anyone have link for getting django or flask tutorial from for free or in cheap price?*
cj
*Hey anyone have link for getting django or flask tutorial from for free or in cheap price?*
read the official documentation of each package 🤷🏻‍♂️
Andrey
You are welcome
Batman
*Hey anyone have link for getting django or flask tutorial from for free or in cheap price?*
https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
Remy
I have a question for you guys. Do you think there's a big performance difference between having a single path for many apps in main URLconf VS the same number of views divided in many apps? For example, you have this in your main urls.py: path('api/', include('main.urls')), path('api/', include('analytic.urls')), path('api/', include('store.urls')), vs path('api/feature1/', include('feature1.urls')), path('api/feature2/', include('feature2.urls')), path('api/feature3/', include('feature3.urls')), path('api/analytic/', include('analytic.urls')), path('api/store/', include('store.urls'))
Anders (izzno / gooood) 🇳🇴
hm... I would seperate them...
Anders (izzno / gooood) 🇳🇴
If you dont need different paths why do you need different apps ?
Anders (izzno / gooood) 🇳🇴
Unless the api is HUGE why have them separated ?
Miguel
Hey guys, can u help me with something?, I'm trying to upload and save a File with DRF but, when I try to save the user (owner) doesn't work
Miguel
class CVUploadView(APIView): parser_class = (FileUploadParser, ) permission_classes = (IsAuthenticated, IsOwnerOrReadOnlyProfile, ) def put(self, request, *args, **kwargs): serializer = CVFileSerializer(data=request.data) if serializer.is_valid(): serializer.save() data = { "message": "Archivo subido con éxito", "data": data, "status_code": status.HTTP_201_CREATED } return Response(data) else: data={ "message": serializer.errors } return Response(data, status=status.HTTP_400_BAD_REQUEST) def perform_create(self, serializer): return serializer.save(user=self.request.user)
Ousmane
You delete my message ?
Ousmane
Pitiful
Anonymous
Anyone having examples of Django with Oracle DBA Tried a lot but there are several errors Please help
Anonymous
*db
cj
You delete my message ?
last opportunity, is it related to Django?
Firdaus
Anyone having examples of Django with Oracle DBA Tried a lot but there are several errors Please help
Any of the error related to the ones in the documentation? https://docs.djangoproject.com/en/2.2/ref/databases/#oracle-notes
Remy
Unless the api is HUGE why have them separated ?
Because the API is huge yes. But my question is more general, and less linked to my own use case. I think Django will try to resolve the path to views top down, so using a single api/ *may* lead to less performance when you call an endpoint that is listed last for example? that's just an hypothesis I had and I wondered if anybody had an opinion on that
Shaun
Anyone run a single Django instance that serves multiple sites ?
Shaun
Or have a HOW TO they can point me to?
S
Anyone run a single Django instance that serves multiple sites ?
Yes,, you have convert your site in multi-tenant system
Shaun
got it
Shaun
ty
S
There is one package name Django tenant
Anonymous
Any of the error related to the ones in the documentation? https://docs.djangoproject.com/en/2.2/ref/databases/#oracle-notes
It doesn't help .. merely issue with compatibly of Oracle version and Django 😞
Ravilla
Hai
Ravilla
I have error connection from MySQL to django please helpe in solving friends
Sumit
Yes,, you have convert your site in multi-tenant system
Can you please elaborate more, coz I'm trying to achieve this
sravan
Is there any good package or template available to build blog site in Django?
Tommaso
I am developing an app in Django. It was working fine until I renamed some fields in my model. I have run migrate and makemigrations. Then, when I log in as admin ad try to access "mymodel" in section "myapp", this is what I get: TypeError at /admin/myapp/glossary_entry/ not enough arguments for format string What could be the problem? I post more details here https://stackoverflow.com/questions/58144955/typeerror-at-admin-myapp-mymodel-when-trying-to-access-django-admin-after-i-ch
Anders (izzno / gooood) 🇳🇴
use Wagtail
+endless cms properties
Максим
Hello ! I have a model(screen https://monosnap.com/file/SDnftJaRg0DYe66yrNRsSenTCPxfLi) And i have serializer for that model (screen https://monosnap.com/file/32ZfGO4KRgASun7fRkPIKvkMJAbRaf) My APIView(https://monosnap.com/file/JJ4asp6dURaq2yPdOLifFgbU6lkcax) use this serializer(https://monosnap.com/file/0rlQmbxEzv6KmOhcN7hxQQIsjvvea7) and must return me output like this: '''[ { "id": 1, "name": "dfgdfgdfg", "route": { 'id': 1, 'name': 'route_name', 'nds': 0, } } ]''' But it return: '''[ { "id": 1, "name": "dfgdfgdfg", "route": 1 } ]'''
Максим
Help me please)))
Максим
i did many tries to fix this issue
Максим
but i didn't get success((
Максим
The DEADLINE is coming!
Максим
i posted question on stackovf
Максим
https://stackoverflow.com/questions/58145976/serializer-return-incorrect-output
Максим
can anyone help me ?
Muslim
can anyone help me ?
In serializers
Muslim
Make RouteSerializer(many=False)
Muslim
Instead of RouteSerializer
Максим
why? what if i will have in db many records for Car model ?
Muslim
why? what if i will have in db many records for Car model ?
It’s serializer for one object, not for whole queryset
Максим
hmm
Максим
minute please)
Muslim
Each object on queryset will be serialized properly
Максим
@MuslimBeibytuly https://monosnap.com/file/GLIWuBvCUHi2A0o5fj79cEm4inyTYQ
Максим
i got this error
Максим
but model has field 'name'
Muslim
but model has field 'name'
show me your serializers.py
S
can anyone help me ?
You have to use nested serializer I guess if you have foreign/m2m field and you want to show data of that model then..
Anonymous
Thanks, problem solved
Can you show the solution please
Anonymous
Hi Guys, I want my all forms in Django project to have same layout or style. And avoid each time formatting forms. Can we creat base component for the same and used it in template whenever I need form? Are there any article or some tips?
Максим
Can you show the solution please
https://stackoverflow.com/questions/58145976/serializer-return-incorrect-output
Максим
or
Максим
route = RouteSerializer()
Anonymous
Is there any other way in Django to use login and sign-up........ Without using Django form??