Hélio
thanks @Inchidi
Hélio
Other point: I have an IntegerField, I want allow just values from 1 to 10. How to do that? I'm using validators, but it's not working properly
Hélio
showing the minvalue
Hélio
I would like to control at the form (but at server too, obviously)
Василий
Hélio
right
Anonymous
how should i start learning django , any tips please?
Harshiv
the official doc. overiq. django girls.
Harshiv
whichever you prefer.
Harshiv
or the thenewboston on youtube is quite nice as well :D
Mounikesh
Mounikesh
guys anyone having any idea on how to use social authentication with django rest framework
Hélio
Hey everyone, i'm implementing a simple event in django. Load an alert after the page loads:
{% if msg %}
<div>
<h1>Inside!</h1>
<script>
$(document).ready(function(){
alert('Opps!');
});
</script>
</div>
{% endif %}
Hélio
but the browser says that
Hélio
$ is not defined
Hélio
I'm using jquery
Hélio
is at the bottom of the page
Василий
Hélio
Hélio
:D
Василий
what is the state of art?
You can get some bugs on template rendering. Django dont guarantees correct rendering template with javascript inside.
Hélio
hum
Hélio
do you know what is the correct form?
Jimmies San
Василий
Hélio
right
Василий
Hélio
but after, I will refactor
Hélio
I'm trying use this https://sweetalert2.github.io/
Hélio
yeah, but is in the page
Hélio
after, I go to the console and it is calling
Василий
Try jquery from cdn repo
Hélio
right
Василий
I think you forgot {% load static%}
Jimmies San
is configured the static files on settings? @heliocarbex
Jimmies San
Hélio
I put
Jimmies San
https://docs.djangoproject.com/en/2.1/howto/static-files/
Hélio
I'm using bootstrap too. The css and js are loading normally
Hélio
the problem is that the js is loading after the function call
Hélio
Hum
Hélio
is there some event to me wait for the files that are being loaded?
Василий
Load jquery on top base template file
Василий
Your script in bottom your extended template
Василий
Usualy it works
Василий
Hélio
ok
Hélio
WOW!
Hélio
Thanks a lot
Raghavendra
You may run in insecure also
Hélio
Maz
Anonymous
Hi Guys, what do you recommend me for deploy django, "Heroku" or "pythonanywhere" ?
Hélio
many people say heroku is awesome, i'm using aws
Hélio
but I'm doing the settings by hand, using ssh
Hélio
heroku has many features that doesn't need does this job
Dani~
Dani~
Lol, and now telegram loads hours of messages, funny
Василий
Django Bot
>> Links
- (2) Python Django Tutorial 2018 for Beginners Part 1 - How to Create a Proj
- Modern Backend Developer in 2018 – tajawal – Medium
Kunal
Any one knows source for free video tutorials for django 2?
Богдан
Hi. How can i get variables passed through redirect like : return redirect('url',foo='value') ?Im new to django so sorry if my question is stupid.
NRC
To use django channel for chatting app is docker and radis is necessory..
Hélio
Hélio
what is the problem?
Django Bot
>> Links
- yogthos/Selmer: A fast, Django inspired template system in Clojure.
Dcruz
hi guys!
Django Bot
>> Blogs
- React Basics Tutorial for Django Developers [2018]
Sanjay Krishnan
Which type of pagination is better? Paginating entries in template or paginating it in the views?
Василий
Jithin
What r the skills rqrd 4 a full stack python devlpr?
Jithin
Frm beginner 2 proffsnl
Rohan
Using proper spellings for starters
Rohan
Python
Rohan
Django/Flask