These are chat archives for django/django

7th
Sep 2017
Anish Shrestha
@annshress
Sep 07 2017 01:39
Hello guys, Can someone recommend how do i test my django views.
views that returns rendered_templates
matrixbot
@matrixbot
Sep 07 2017 04:41
@bittner:matrix.org Short answer: Don't.
Long answer: Split up your view code and test what you pass into into the template renderer, i.e. test the functions that generate your context. Remember to make fat models and thin views!
Anish Shrestha
@annshress
Sep 07 2017 04:42
@matrixbot Thanks Bot. I will keep that in mind
John
@flyboy1565
Sep 07 2017 05:29
looking for someone who can help me. I have taken a break and forgotten how to added a new endpoint in REST framework. What i'm trying to do is add a new endpoint that will be a "WorkOn". It will create a new work on instance which is associated with a CommunicationIssue.
here is the code on github
https://github.com/flyboy1565/portal2
thanks for any help that can be proided
Anish Shrestha
@annshress
Sep 07 2017 05:36
where exactly are your views
I will help as much as I can
@matrixbot And as per my views. They are smaller as possible. While the models and formsare fat.
sheepsy90
@sheepsy90
Sep 07 2017 06:39
Hello, is there somewhere more information how signals are build into the framework of django - I wonder if i can run wsgi django and a manage command and let them communicate via a signal
matrixbot
@matrixbot
Sep 07 2017 16:35
@55abhilash:matrix.org Hi everyone
@55abhilash:matrix.org I am Abhilash
matrixbot
@matrixbot
Sep 07 2017 16:40
@55abhilash:matrix.org https://github.com/55abhilash/portrait : do take a look