0
I’m having a problem trying to load some data from mysql database using Django, type functions only work if I assign in the file: py. the following attribute:
path('', views.countregistered)
But this attribute is already used for the page index.html as shown below:
path('', views.index, name='home')
If I insert several attributes like this only the first one runs and the rest is ignored, I believe not to be correct, i have several functions to be displayed on the home page that are loaded from the database but if I only type the element with the functions in the html page does not work. Thanks for your help, I’m starting now at Django.