S
S
Smuzzzzi2018-11-02 10:30:03
Django
Smuzzzzi, 2018-11-02 10:30:03

How to convert to Django 2?

I'm trying to display data through the rest framework on one domain 127.0.0.1:8000
so they are not displayed

re_path(r'^.*', TemplateView.as_view(template_name='index.html')),

so displayed on then other pages do not work
path(' ', TemplateView.as_view(template_name='index.html')),

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2018-11-02
@ulkoart

path('', TemplateView.as_view(template_name='index.html')),

everything should work like that, maybe the problem is further.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question