These are chat archives for django/django

Apr 2018
Caleb White
Apr 09 2018 04:39
Did that help? Generally when people ask for help they respond when other people try to help then.
Nikhil Nagaraju
Apr 09 2018 09:57
can someone tell me a way to make django REST API without using any 'view'. (i.e make api endpoints which connects to local db and serves the request). All of the tutorials use which are used to display UI stuff
Apr 09 2018 13:22
False. templates are used to display UI stuff. XD You just have to serialize your models and don't bother with the views stuff that are related to UI stuff
@nikhilnagaraju use the django-rest-framework documentation. I guess it have the basics covered
Nikhil Nagaraju
Apr 09 2018 13:29
@LukeVideo thanks a lot, but how can i do the db queries/filters through the api endpoints if im only serialize my models?
Apr 09 2018 13:34
Well you handle the request with your views... They prepare you request object. They are used for UI stuff if send to a template but they also handle POST request. It's all in the doc. You can even get a browsable API with DRF so you don't have to do any templating in django.
Many React and Django tutorials out there use DRF. they don't handle any frontend UI stuff with django ;)
Miracle Ayodele
Apr 09 2018 17:04
Hi Guys, i am having some issues sending email on django with sendgrid
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST_USER = 'username'
i have tried all means, yet nothing
anyone with any insight or alternative solution
Robert Green
Apr 09 2018 19:47
@iammiracle read this, has info for debugging and a specific issue with sendgrid that someone mentioned -
Miracle Ayodele
Apr 09 2018 20:51
@robdoesstuff the issue i noticed is that, on my account activity on sendgrid i can see all the mails sent and they are marked as delivered, but never dropped in my email
Apr 09 2018 22:19
Hi everyone! I'm having an issue with the MDN Django tutorial, can anyone help? I posted an issue on the projects github here:
Apr 09 2018 22:57
figured it out