T
T
tgarl2022-02-10 17:57:35
Django
tgarl, 2022-02-10 17:57:35

How to overcome the error Incomplete response received from application?

It is necessary to add a new section to the site, which everyone forgot about when they ordered the site - News.
Unfortunately, I did not come across either django or python, but ... I did.
I found a more or less suitable similar section (folder) 'tech' made a copy of it and renamed everything where it occurs as tech to news (all classes and names in the paths)
Then I went to the main/urls.py folder and added it in the urlpatterns block similarly to other paths
path('news/', include('news.urls')),
reloaded the project


If you have changed project files and want to see the changes, you need to restart the project. To do this, create a .restart-app file in the root directory of your website

after reboot instead of site error Incomplete response received from application.

What did I do wrong, how to overcome it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2022-02-10
@bacon

Because first you need to understand how django works, and only then go in to edit the code.

Everything where it occurs as tech renamed to news (all classes and names in paths)
and yes, it doesn't work that way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question