cj
Hello! What is this group about?
why did you join this group?
Тимофей
Interesting
Anuj
Hi i want filter in json field to get value using django annotate. Q:- data= [{key:22,value:22}, {key:45, value:33}], filter:45, output: 33
quokka
Hi, guys! Is there possible use what is inside a filter result on another filter? Like: series = Series.objects.filter(cop = cop, language = language) result = Units.objects.filter(cou = series__cou)
Hernan
Hi, guys! Is there possible use what is inside a filter result on another filter? Like: series = Series.objects.filter(cop = cop, language = language) result = Units.objects.filter(cou = series__cou)
you can do: result_list = model.objects.filter(XXXXXX).values_list('field_name', flat=true) this return a list of field_name values, and you can use this list for a __in filter result = anotherModel.objects.filter('XXXX_id__in"=result_list)
Holla
am having this error when i ever try to create new listings from the admin i double checked everything and seems fine even checked the instructor video and the code is the same thus still the error
Holla
\utils.py", line 5, in user_listing_path return 'user_{}/listings/{1}'.format(instance.seller.user.id,filename) ValueError: cannot switch from automatic field numbering to manual field specification [16/Jan/2023 19:16:17] "POST /admin/main/listing/add/ HTTP/1.1" 500 189743
Holla
no am try to to add it from the admin
Hernan
but the field id is in the admin form ?
Holla
yes i think its the location field
Hernan
maybe if you can share the code, it's clearer for everyone
Holla
will share it in pastepin
Holla
maybe if you can share the code, it's clearer for everyone
here it's https://linkode.org/#Kd6b8DWNrMMLjjGVSlYVV6
rtg
Hi! Question: Why my api_rest_framework does not find templates? TemplateDoesNotExist at /api/persona/list/ rest_framework/api.html
rtg
My view hasen´t got a template:
rtg
class PersonListApiView(ListAPIView): serializer_class = PersonSerializer def get_queryset(self): return Person.objects.all()
rtg
but when i use the url, this show this template error.
rtg
Url: http://localhost:8000/api/persona/list/
Charly
My view hasen´t got a template:
Then why a template error? There might something else happening, show the urls file and the serializer class
rtg
url:
rtg
path( 'api/persona/list/', views.PersonListApiView.as_view(), )
rtg
serializer:
rtg
class PersonSerializer(serializers.ModelSerializer): class Meta: model = Person fields = ( 'id', 'first_name', 'last_name', )
rtg
Mañana seguiré intentando. Gracis Charly
Doragonsureiyā
AISHWARYA
Can somebody help me how to code a date wise filter search bar in django ..?
Jayashree
Hello I'm facing django migration issue.. could anyone please help me with this..
Anuj
Hi i want filter in json field to get value using django annotate. Q:- data= [{key:22,value:22}, {key:45, value:33}], filter:45, output: 33
Doragonsureiyā
Jayashree
Added new column to model in codebase. But it will not apply to database table after doing migration. Instead it will give an error like; unknown column brand.brand_status in the field list.
Jayashree
Basically i want to add a field(brand.status) in the table through codebase, without adding it manually.
Carlos
Hi, I have a question about, it’s possible create a big apps like a CRM or ERP only with django and django templates, it mean without use any web framework ?
LStyle
does anyone know how to use streams in Django
Mr.
Hi, I have a question about, it’s possible create a big apps like a CRM or ERP only with django and django templates, it mean without use any web framework ?
Hi. I made it with Next.js and Django, Next.js was responsible for loading the pages and Django handled the data You can manage pages with Django, but you will have more limited possibilities compared to its own specialized language
abhishek
elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x0000020123012D50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x0000020123012D50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it)
abhishek
I am getting this error in django when i try to use methods like (get,delete)
abhishek
Can any one help me how to resolve this?
abhishek
connection details means?
Charly
connection details means?
elastic search connection details like host/port and so on
abhishek
Those are correct
Charly
Those are correct
then you have elaticsearch not running
abhishek
means?
Charly
means?
🤦‍♂️ that elastic search is not running
Charly
I don't know how to explain this, if you don;t know what running means for a program then I think I can't helop you
abhishek
That i understood its not running yesterday i have worked its was working yesterday
Charly
That i understood its not running yesterday i have worked its was working yesterday
well programs can end in a single day, just everify that
abhishek
Hello mister without trying on anything i cannot ask questions anything in group blindly
abhishek
If know how reslove that just help otherwise leave
abhishek
*resolve
Charly
Do you really dont know what do means? like run a program?
Maxim
Then what is this response
reply to https://t.me/django/234234
abhishek
Do you really dont know what do means? like run a program?
That's what i am saying without knowing anything i cannot ask blindly here
abhishek
By knowing only i can ask doubts in the group
Charly
That's what i am saying without knowing anything i cannot ask blindly here
There is a minimun requirement to be able toprogram, and thats general computer usage, things like running programs
abhishek
Running i can understand
abhishek
If know help otherwise go through your work there are others in the group who might faced this issue if they know they will help
abhishek
I have installed elasticsearch i have also worked on suggestion,filter,search but now i am facing issue while running the methods
abhishek
Yes on the same machine
abhishek
i have varified by using url localhost:9200
Charly
.
How do you verified that is running at that port?
abhishek
elasticsearch.bat
abhishek
Why?
Charly
elasticsearch.bat
Thats not verifying, verification means making sure is working in that port
IM~Exynos
elasticsearch.bat
Running via docker?
abhishek
No Not by docker
Charly
Why?
Because if it is not running then it will fail as your initial error showed
IM~Exynos
No Not by docker
Checkrd via postman with the url that's running still same?
abhishek
Yes
abhishek
Because if it is not running then it will fail as your initial error showed
Then how can i get the output for the filter and suggetion
Charly
Then how can i get the output for the filter and suggetion
First make sure is running 🤦‍♂️
abhishek
I am saying rite it is running