cj
Тимофей
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)
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
Hernan
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
rtg
Hi! Question: Why my api_rest_framework does not find templates? TemplateDoesNotExist at /api/persona/list/
rest_framework/api.html
Charly
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/
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
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?
Charly
abhishek
connection details means?
abhishek
Those are correct
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
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
abhishek
Charly
Charly
Do you really dont know what do means? like run a program?
abhishek
By knowing only i can ask doubts in the group
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
Charly
abhishek
Yes on the same machine
abhishek
i have varified by using url localhost:9200
Charly
abhishek
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
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
Charly
abhishek
I am saying rite it is running