Jimmies San
yep. i prefer it than celery
Anders (izzno / gooood) 🇳🇴
👍👌
Rammanoj
yep. i prefer it than celery
If so django-q-mail is better to send asynchronous mails, why is the celery used more compared to this ?? and when a user keeps a request that send a bunch of mails will django-q-mail add all of them to a queue and give the response fast ?? (instead of sending the response after sending all the mails).
Rammanoj
Ohhhh I have the same case of sending mails in asynchronous manner. This is my case: whenever a user performs a request it sends a bulk of mails once. So, I don't want user to wait till all the mails are delivered, but just add all the mails ( to be sent) to the queue and respond to the user back. That queue has to run till it become empty. So, which will be the better one in the above case scenario? Thanks
Rohan
We call their API with mailing list and our work is done. They have a nice dashboard for the rest of it. Even has API but the dashboard is fine.
Anonymous
How to provide security to views in django..
Mirco
How to provide security to views in django..
What kind of security ? Explain better pls
Anonymous
What kind of security ? Explain better pls
Interviewr asked me ...i am not aware of it
Mirco
Interviewr asked me ...i am not aware of it
Django provides permissions for views to restrict accesses for example Sending a CSRF token when POST data is another way to keep things safe
Anonymous
Tq
Mirco
read docs for better info
Shubham
Hello there, how can I create sign up apI for teacher/ students, once the registration is done , the registration form should go to admins email address for verification, once it's approved the the teacher/students should able to log in with credentials
007
How share python variable into JavaScript file ?
007
context
Separate JavaScript file suppose index.js , If you {{ context }} in index.js it will show an error like invalid syntax ' }'
007
You should re do the django tutorial
What i really want to do 1) in views.py :- context { 'date' : date } 2) pass this ' data' into index.js and store into js variable :- var date = {{ date }} But it show error like invalid syntax ' }'
George
Find a way to do it :D
007
Find a way to do it :D
Bro tell me.. i have already wasted more than 2 hours
George
George
You are the designer, do it
007
Do you think i got a magic wand?
I think you know the answer... By the way thanks
George
I think you know the answer... By the way thanks
Maybe your nearest neighbour search engine has something to say
007
Ok
inchidi
english only please
Matvey
Sorry
Matvey
Hello everyone, you need to connect to an existing project (django, django REST framework) authentication via Google, Facebook, VK. Who is interested in the opportunity to earn, please write to me.
Anonymous
Hello. Could you tell me how to render inputs for ArrayField?
cj
What i really want to do 1) in views.py :- context { 'date' : date } 2) pass this ' data' into index.js and store into js variable :- var date = {{ date }} But it show error like invalid syntax ' }'
You were close 1) in views.py: context = {'data': data} 2) in template (.html): <script> var data = {{ data }};</script> <script src="{% static 'index.js' }"></script> 3) in index.js: console.log(data);
cj
Is gives an error . Variable is not define
you have to declare te variable in the template before sourcing your .js file
007
you have to declare te variable in the template before sourcing your .js file
Ok... I forgot about this... Thank you very much😊😊
007
thank you? you owe me US$500 for that
One more doubt... What if my views.py is like :- return render (request, ' app/index.html' , context ={ ' data ' : data } ) But I have link all css and js file in base.html and my views.py function refer to index.py
007
My function render to index.html but i have linked all js files in base.html . ----------------------------------------- If i have used <script> Var temp = {{ data }} < Script > In base.html , it won't work because , my function is going to render my index.html
cj
or... if you're only gonna use index.js in your index.html you can source it in that template and not in base.html 🤷🏻‍♂️
Dante
Hello guys
Dante
Context must be a dict rather than list
Thara bhai mudi
Handled xD
Nice 😂😂😂
Mirco
How fix this?
Make context a dict 😁
Mirco
context should be something like { 'title' : your_value }
cj
How fix this?
use a dict, not a list 🙂
Dante
In views.py?
Dante
Ok
Dante
I'm practing djangogirls tutorial
Dante
Good source?
Anonymous
Hello! I am stuck at the 2nd part of Django tutorial, each time I run a command (like "py manage.py runserver"), I am getting the error: ERRORS: polls.Choice.question: (fields.E300) Field defines a relation with model 'Question', which is either not installed, or is abstract.
Anonymous
What would you advise me to do?
Dante
Hahaha,I'm stupid
Dante
I'm writed {},but I really need to write [ ]
Dante
But thanks
Dante
Good international community
🦥
Hey why do u use django?
🦥
Any 1
🦥
I am new to django
🦥
So why do u use it?
Mirco
What would you think about ? We are in a django group 😛
🦥
Why do u use the django language?
🦥
Mirco
It's a framework
🦥
Ok, what kinda frame works hace ever been done using django
🦥
What? What's z improper english up there??
🦥
Ohhh u mean z,kinda....