Doragonsureiyā
Send me study materials for django and some projects please
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Alex
Any other
google.com
Doragonsureiyā
Any other
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Prithvi
Please send me some projects
Mirco
Please send me some projects
Go on GitHub and look for django
Prithvi
OK sir
Alex
hivemind XD
devops
How to apply turbary operator in return statement in janascript
devops
Return { abc :1 }
devops
How can I inside object
devops
Turnary
devops
JavaScript
Roman
Hi guys how to I make work DRF and Client side working using CSRF token ?
Roman
Is it possible at all to generate csrf token when my client and server are different servers ?
Mirco
How to apply turbary operator in return statement in janascript
return <what_u_want> if <your_true_test> else <what_u_want> It doesn't exist the same js syntax
Andrej
Is it possible at all to generate csrf token when my client and server are different servers ?
Do you need that for load balancing your visitors to different servers? There are different load balancing strategies. I prefer to use reverse proxying. One or more load balancers (the reverse proxy) forward the user request to many application servers. The load balancers can keep sure to forward same visitors to the same application server. Through this your application server knows the csrf token from the previous request.
Luciano
Hello, Is there a Django specific hosting like those "serverless"? I'm using digital ocean but would be nice to forget about server administration
Luciano
Thanks
Adonis
is it cheap?
yeah.. it's on AWS, pricing plan is pay-as-you-go just pay what you use. If you create a new account you have 12months free
Adonis
or just go for heroku, it basic plan is free
coderj
Any tutorial on django ajax with Vanilla JavaScript
Adonis
go as you use is less or more than 5€/month? (by experiece)
we pay more than that, we have a lot of service running in fact
Adonis
Heroku cheapest plan is $7 / month
Afrizal
Hello everyone, I want to ask. I want to display kategori, but why not display it? following the code https://pastebin.com/DxXf9gUk
Xavier
what's the model name?
Xavier
is it Question? or question?
Xavier
question
then change the name of the question variable (not the model) the code cant differentiate between the local variable question and model question
Xavier
also it's a bad practice to use a model name with non capitalised first letter
Vishal
Ok. Thank you..
Xavier
like model name question is a bad practice but model name Question is a good practice
Xavier
yes
H
Guys am new to django framework suggest me good tutorial to learn
iiiiiiπoW
Hi. How can implement identity server functionality in django rest api
iiiiiiπoW
Please help me
Anonymous
Form to fill multiple models?
Unknown
Currently I use github to store and manage my Django projects,I recently heard about Bitbucket and I found that it is better than Github.Should I switch to Bitbucket or Github will suffice?I am so confused right now.
Momin
How to write LoginView and LogoutView class. I have have writen this in url.Py file but dont to what to write in views. Py file please help me
Sandeep
Guys I have a huge data saved in one variable and I want to print that data inside a excel file.. how can I achieve this ?
Jb
{% for product in products%} <div class="popup" onclick="myFunction()"> Click me to toggle the popup! <span class="popuptext" id="myPopup"> {{product.info}}</span> </div> {%endfor%}
Jb
for loop not working correctly
Jb
only one item displayed
Mick
you have always the same ID in span tag use id="myPopup-{{forloop.counter}}" (like this)
Anonymous
I cant append the jsonresponse object result in html option tag
Anonymous
<script type="text/javascript"> $(document).ready(function(){ $("#state").change(function(){ alert('State is selected'); var stateid = $("#state").val(); $.ajax({ type:'POST', url:'state_ajax', data:{'sid':stateid, 'csrfmiddlewaretoken': '{{ csrf_token }}', } }).done(function(cid){ alert('data recieved by ajax'); $('#city').empty(); for(var i=0;i<cid.length;i++){ $('#city').append($('option').val(cid[i].id).text(cid[i].city_name)); } }); }); }); </script>
Jb
the snippet is correct. I guess there just an object in the set.
{% for product in products%} <div class="popup" onclick="myFunction()"> popup! <span class="popuptext" id="myPopup-{{forloop.counter}}"> {{product.info}}</span > </div> {%endfor%}
Jb
not working
Mick
perhaps in onclick="myFunction({{forloop.counter}})" to get right id in your function
Mick
and change your callback to get id
Xavier
{% for product in products%} <div class="popup" onclick="myFunction()"> popup! <span class="popuptext" id="myPopup-{{forloop.counter}}"> {{product.info}}</span > </div> {%endfor%}
also check for "products" to see what's in there just type <p>{{ products }}</p> in the html if it prints nothing then yea you are passing nothing
Jb
display only one item in popup ,without popup is working all details
Jb
yea now u know
but other items not displayed in loop {%for product in products%} <div class="popup" onclick="myFunction2( )"> Click me2! <span class="popuptext" id="myPopup2" >{{forloop.counter}}{{product.info}}</span > </div> {%endfor%}
Alejandro
how using auth django with mongodb
Alejandro
????
Vishal
hello friends can you please help me about why i am getting this error? no reverse match NoReverseMatch at /polls/2/votes