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
Василий
how should i start learning django , any tips please?
Official docs have great first step tutorial. And django evolve so quickly that non official tutorial became wrong in a half year
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
Javascript in template is bad idea.
what is the state of art?
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?
Василий
do you know what is the correct form?
Javascript in your own file .js
Hélio
right
Василий
do you have some reference about that?
Not now. No access to docs right now
Hélio
Javascript in your own file .js
I'm just putting that code because I would like to find how to load a javascript function after the page is loaded
Hélio
but after, I will refactor
Hélio
I'm trying use this https://sweetalert2.github.io/
Василий
$ is not defined
Jquery not loaded
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
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~
Lol, and now telegram loads hours of messages, funny
Dani~
many people say heroku is awesome, i'm using aws
I'm using both, heroku for demos, aws for production
Василий
I'm using both, heroku for demos, aws for production
Try docker-compose. For development very usefull.
Django Bot
>> Links - (2) Python Django Tutorial 2018 for Beginners Part 1 - How to Create a Proj - Modern Backend Developer in 2018 – tajawal – Medium
Dani~
Try docker-compose. For development very usefull.
It is, we use it in the devel team and for the CI tests. But demo != devel.
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
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