Charly
abhishek
after running the elasticsearch.bat after that in chrome i have given localhost:9200 it given the output of cluster_name,cluster_uuid
abhishek
Then we can confirm rite elasticsearch is running
Charly
abhishek
From the starting only i am saying that
abhishek
ok
abhishek
https://linkode.org/#ABJj2n3w2SzW341rjplq56
abhishek
I have referred some videos they have guided like xpack.security.enabled: true this to be set to false in elastic.yaml file
abhishek
abhishek
abhishek
does this effect anything?
abhishek
I have changed that
abhishek
{192.168.1.101:9200} to this
abhishek
Because this i have got when i tried to run elasticsearch.bat
abhishek
And also both will be the same rite
Maxim
abhishek
abhishek
output
abhishek
Ok i will change to localhost
Charly
abhishek
like that output cluster_name and all
Charly
Ok
Charly
Well change it and restart your django server, try againif it doesnt work then show the full error
abhishek
Ok i will
abhishek
Yea now its working fine
abhishek
Thank you
Nityananda
Access to XMLHttpRequest at 'http://127.0.0.1:8000/api/user/doctor-list' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Nityananda
though i have already install cors and configured
Nityananda
but i am unable to call it from frontend
Sharma
I am using Django-storages s3
When I upload image form api gives error “upload valid image”
script
Nityananda
Already done but not working
Nityananda
Riad
Can anyone suggest to me which part of django I should not learn since I use django for api only by django rest framework. It seems to me about 40-50% of django is about template rendering
..
Charly
S
Can anyone plz guide me.
How to use loops in djnago apis
S
Plz guide me how to create api post method using loops ? I need employee id's from emp data
LStyle
does anyone know how to use streams in Django
Suren
Hi guys, I have select on my site which I want to use for sorting tours on the page.
<div class="custom-select">
<select name="sort">
{% get_sorters as data %}
{% for key in data %}
<option value="?sort={{ key.sorter }}">{{ key.title }}</option>
{% endfor %}
</select>
</div>
The problem is I do not know how to pass a link when choosing key.title.
My view looks as below:
def get_queryset(self):
sort_field = self.request.GET.get('sort')
tours = Tours.objects.filter(cat__slug=self.kwargs['cat_slug'], is_published=True).select_related('cat')
if sort_field:
tours = tours.order_by(sort_field)
return tours
Everythings works great when I am using <a href ""></a> instead of <select> but the problem is it is required to use select
X
Mirco
S
Can anyone plz guide me ?
How to create dropdown list using class based api in django
Riad
Mirco
Alexey
S
Can anyone guide me?
How to call Api to list all the employee id's
Alexey
Holla
Suren
yes. <option><a></a><option>
I've done it but nothing happens when I select any option
<option value="?sort={{ key.sorter }}"><a href="?sort={{ key.sorter }}">{{ key.title }}</a></option>
Suren
zeus
Hey I only need the last or latest registration objects from tables, anyone can help me
Suren
yes. <option><a></a><option>
I found another solution how to make it work, why I was not able to do it, because my CSS hided original SELECT element
.custom-select select {
display: none;
}
and it showed another one close to it, so when I click nothing happens(((
Suren
Is there any solution to make it work? keeping css style?
Ak
Suren
How do I change
template_name = 'tours/tour-list.html'
to some other layout by clicking on the page link?
.
Hi guys, please someone can help me about how can look database if this user name not exsist save it 🙏🌹
Charly
.
Pooya
Hi guys, how can i use rabbitmq and celery to send email? I confused with Google it
Charly
Pooya
So do I have to use smtp of sendgrif like for Google email?
Charly
Pooya
ُSina
Hi,
can anyone tell me the differences of geodjango and follium?
abhishek
Hi,
Can any one help me with the unit testing like I have used jwt authentication in my views, if I run the test cases it's getting 401! =200 unauthorized access so how to make it authorized