Anonymous
Okay
cj
that's why you have to use gunicorn or any other webserver to run projects on production servers
Anonymous
What is the use of secret key in setting.py file ?
cj
What is the use of secret key in setting.py file ?
Shainkey Aditya. Here you have a useful link: https://duckduckgo.com/?q=What+is+the+use+of+secret+key+in+setting.py+file+%3F
Anonymous
How we can use test.py file for adding test cases ?
Anonymous
Send me the documentation for this
cj
Send me the documentation for this
open Google —or DuckDuckGo— and write down: Django testing
cj
I bet 100 beers that the first link is the documentation to Django testing
Nikkey
Anyone have Django2.0 and AnjularJS intigresion notes Or video link
Anonymous
Anyone have Django2.0 and AnjularJS intigresion notes Or video link
Would you rather set Django with DRF and then Angular consume DRF API?
Anders (izzno / gooood) 🇳🇴
Django 3 alpha is out 😊, feature freeze. Now its time to play 👐
Anders (izzno / gooood) 🇳🇴
Nikkey
What do you mean?
Tutorials????
Anonymous
It's a small project no need of DRF
Best to practice especially if you plan to scale afterwards
Anonymous
But it's up to you
Anonymous
I prefer decoupling frontend and backend into separate environments. Easier to manage that way
Anders (izzno / gooood) 🇳🇴
It's a small project no need of DRF
Then you want to embedd angular in your templates ?
Lalit
Not Found / favicon.ico
Lalit
What is the meaning of this
Anonymous
What is the meaning of this
It means you don't have a favicon.ico file
Lalit
It means you don't have a favicon.ico file
It's compulsory to have that file
Anonymous
How we use django with reactjs?
Anonymous
Okay
Anonymous
Which library is useful for plotting the bar graph in Python with django like D3 in Js?
Anonymous
Okay thanks
Anonymous
How we use mongodb with django?
Anonymous
How we use mongodb with django?
Check the Django docs for the MongoDB driver
Anonymous
I used djongo orm but there is prob to write queries.
Anonymous
I m stuck with delete queries. Is it same like sqllite or any other way to write Orm queries for djongo orm?
Anonymous
Which could be the best way to write queries raw or orm queries?
Anonymous
Can u give me some suggestions?
Anonymous
Which could be the best way to write queries raw or orm queries?
Django docs already show best way to write queries
Anonymous
Okay
Anonymous
Anonymous
Okay actually there is no perfectly docs for that
Anonymous
Can u give me some suggestions?
Google stuff before asking in chat. Make some attempt
Anders (izzno / gooood) 🇳🇴
There should be a google class EVERYONE that wants to program should attend... Simply named how to google...
Anders (izzno / gooood) 🇳🇴
Maybe there's a free youtube class we could stick in the Pinned.
Anonymous
Maybe there's a free youtube class we could stick in the Pinned.
And yet the new members still won't read the rules. Any other bright ideas?
Justin
How to prevent rest-auth from overwriiting django-alluth urls
Anders (izzno / gooood) 🇳🇴
And yet the new members still won't read the rules. Any other bright ideas?
Automessage from a bot when you join. "Any other bright ideas?" is a poor choice of words.
Tanjiro
Hey, how to schedule some scripts in Django? What's the efficient way to do it? Anyone have any ideas?
Tanjiro
Define "schedule"
Is it a better way to schedule like using a task scheduler or a cron?
Anonymous
Is it a better way to schedule like using a task scheduler or a cron?
Sure. That works but not sure sort of scripts are you talking about.
Tanjiro
Celery has scheduled tasks
Celery is new to me. What does it do?
Tanjiro
Sure. That works but not sure sort of scripts are you talking about.
Just some Python code to do some timely database inserts.
Oleg
Celery is new to me. What does it do?
It's an asynchronous queue service, running as separate app / container on top of your django project so tasks can utilise it's codebase (models etc). You can push tasks explicitly by request or schedule them or set interval
Tanjiro
Do you have a specific reference?
Oleg
Ya that's what I needed. Thanks for your help. I'll try and update you.
celery can be an overkill for trivial task, so you can google for alternatives. Anyway you need a "task queue service"
Anonymous
Just some Python code to do some timely database inserts.
cronjobs work too if the script in Django is accessible as an API. Then just do a request call at set intervals. But it all really depends on how you want to scale after the implementation though or if this is something really small and won't be dealt with in the near future.
Ghorz
Not Found / favicon.ico
You ought to know why.
Anders (izzno / gooood) 🇳🇴
By that i dont mean its a simple tool it's simple to use ;)
Oleg
By that i dont mean its a simple tool it's simple to use ;)
It strongly depends on "user"'s qualification)
Anders (izzno / gooood) 🇳🇴
True...
Oleg
If you run your app in container, then maybe containerization made it seem trivial. But anyway such thing like task queue increases architectural complexity a bit more than couple of cron jobs)
Rainur
Hello! I need your help) auth.authenticate(username=username, password=password) returns None with correct username and password. User is not active. Authenticate returns user only when user is active?
Rainur
User goes to login form. I need to check he is active or not. If not active i show him special template, if active i login him to system
Doragonsureiyā
❎ Oleg pardoned Ashutosh for: Link to Telegram group or channel (0/3)
Oleg
Use mono space formatting, please: @login_required
Doragonsureiyā
❎ Oleg pardoned Ghorz for: Link to Telegram group or channel (1/3)
Ghorz
templates if request.user.is_authenticated