Doragonsureiyā
Does anyone have complete working project on djnago...for practice
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
cj
When i set debug to true.... Everything works well
set a logger to catch errors and you will see what's wrong
Ayomide
http://webuni.herokuapp.com Hey guys....please go through this awesome web application and tell me some issues with it.... Its still in debug mode thoo...lol
Ayomide
You'll need to register thoo
Ayomide
Its an Internal Server error
Please how can i address it or solve it
cj
set a logger to catch errors and you will see what's wrong
@Engr_hay I told you what to do in order to see/know what is the problem in your app ☝🏻
Ayomide
Ohh....you mean i should run heroku logs...right?
Ayomide
Ive done it before.....ill try it again
cj
Ohh....you mean i should run heroku logs...right?
set a logger inside your django app and make it write information to a file or a service (like Sentry) so you can see what's going wrong
Ayomide
Ohh....okay man... Lemme try it out
cj
Ohh....okay man... Lemme try it out
read more about it here: https://docs.djangoproject.com/en/2.2/topics/logging/
Ayomide
Thank you 🙏💕
Kirk
Someone can point me a tutorial or course about how to use django rest api with react or angular.
R
Look up net ninja on you tube. He is excellent
m0nte cr1st0
Hello. I have a two functions. Both run when server is starting. First function must be working every 5 minutes, second - every 3 minutes. How can I implement it?
m0nte cr1st0
And if any of the functions breaks with an error, need to restart it.
m0nte cr1st0
It is possible that the function will run longer than the pause between its starts. It is necessary to start the pause counting from the moment the previous function ends. I am thinking of using management + cron + supervisor. Also celery-beat. What are your thoughts on this? I would be grateful for any advice.
6Orion
Does anyone have complete working project on djnago...for practice
https://youtu.be/-oQvMHpKkms I suggest this video, making of a blog project with elementary functionalities, it really explains each step in a very very good way I haven't found yet on other projects
S
Implement redis in your app
S
Using Django celery beat you can schedule a function call
Abr
Join this channel and u can find any major events from UN forums to other investment events
Ghorz
Debug to True fixes lots of shits for you
Ghorz
Error 500 could be on one little misconfiguration or a coding error somewhere
Ghorz
A faced that 500 error the first time I deployed to production but I quickly fixed it by reading syslog
Ghorz
Different cloud hosting platform with different config. I prefer vps, you own your space
Ghorz
On your control panel on heroku, at system
Ghorz
Ohh....how do you access that
https://stackoverflow.com/questions/21305049/heroku-how-can-you-check-heroku-error-logs
Ghorz
https://devcenter.heroku.com/articles/logging
Anonymous
Are flask and django similar? I'm looking for ways to expose a ML model as api amd i have a django based ui.
Anonymous
Can django be used to expose the ML model?
Anonymous
I see a lot of tutorials using flask so I'm confused maybe flask is the better choice for the task?
Ayomide
I see a lot of tutorials using flask so I'm confused maybe flask is the better choice for the task?
Yeah.....it actually is..... Its very easy to create a flask app...without too much files.... But django would have you start a project....gives you all those.py files and all
Ayomide
It depends on you thoo
Anonymous
So i use flask within django kindof?
cj
Join this channel and u can find any major events from UN forums to other investment events
do you want to be banned? because that's how people get banned from here
cj
Are flask and django similar? I'm looking for ways to expose a ML model as api amd i have a django based ui.
no they are different, but you can accomplish the same tasks using either one of them, you just have to write more or less code depending on which tool you will choose
raven
So i use flask within django kindof?
you can save the pickle files at root directory of your project so that your views can access it. mysite -> model.pckl ->mysite ->apps
Anonymous
I am going to run the python script on firebase service.
Anonymous
Who can help me.
Anonymous
I need a tutorial. :)
Stv
Hello guys..I'm new in python and have taken some beginner's courses. Any suggestions on good beginners books for Django and possibly links to the resources.Thanks
Germinate
it's a good beginner guide, very thorough
ᴰᴬᴺᴵ
https://youtu.be/H0_MgaNSesc
Anonymous
Germinate
Thanks
np. if you follow through with the guide, you should be able to start working on something of your own after part2/3
Ansab
How can i start django girls community..... Anybody here to help me....... I wanna start it in my home town
Aleksandr
Hi, guys. Who worked with oauth 2.0? I need create page on django (it's redirect_uri) and i don't know what logic need create on this page ..
m0nte cr1st0
Help pls with annotate https://stackoverflow.com/questions/58622639/how-can-i-annotate
Денис
Are flask and django similar? I'm looking for ways to expose a ML model as api amd i have a django based ui.
Django has its own ORM so you probably won't need any SQLAlchemy to involve. We can't recommend you any of them as we don't know your task.
CharaD7
Hi guys, I have a Django application I'm trying to run in docker with MySQL database connection in docker but it send not to find the database when I run docker-compose up
Anonymous
How to connect and select different databases from django based on different user?
CharaD7
The MySQL service name in my docker-compose.yml file is mysqldb
Anonymous
How to connect and select different databases from django based on different user?
If I am logged in as user1 all transactions should do with db1 and if user2 all transactions should be with db2. How can we achieve this? Db router will work? How to configure?
cj
Which one is recommended?
depends on what do you want to do
🤔
Forget about pickle and never use it again
Google: Forget about pickle and never use it again
🤔
Why
👆🏻
Денис
Google: Forget about pickle and never use it again
First result is Don’t fear the Pickle
Nikki
How to perform backend validation in django
cj
How to perform backend validation in django
give more context to your question, Django does some "automatic" validations if you write the code the proper way
Nikki
I m performing user sign up using mobile number
Nikki
I m performing front-end validation for form