Re: Error while hosting on heroku

2020-03-13 Thread Sai Sandeep Rayanuthala
You need to type Heroku run bash -a appname Make sure you configured your postgres database correctly. On Sat, 14 Mar 2020, 00:04 shree hari, wrote: > I tried that too. > Still its the same. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" gro

Re: cant import views

2020-03-18 Thread Sai Sandeep Rayanuthala
There is no function index in views. That is the problem. Create a function named index in views. On Wed, 18 Mar 2020, 22:30 Laurent Gattegno, wrote: > I think the problem is inside the views.py file. It looks like python > doesnt find views.index and the problem may be the index > Laurent Gatte

Re: It is Possible to send html File through Django Rest api? Please suggest

2020-03-20 Thread Sai Sandeep Rayanuthala
Yeah possible. Use content disposition. On Thu, 19 Mar 2020, 13:01 Suraj Thapa FC, wrote: > No > > On Thu, 19 Mar 2020, 10:53 am venna venkatReddy, > wrote: > >> It is Possible to send html File through Django Rest API. I need how to >> send Template/one.html file to Other Application when they