Templates are not found in django deployed project
I have got a Django Project. It runs perfectly using "python2 manage.py runserver". I have deployed the project in a server and I get "Template not found" error. I have changed the path in views file for the main page and now it works, but I have got two new issues:
- I have got an {% include "/lateral/menu.html" %} line that does not work in main.html
- All the href in buttons that redirect the user to other html files do not work either. I think it has something to do with the paths, how should I added them in order to be relative path?
My structure:
-APP1
-APP2
-WEB
---manage.py
---TEMPLATES
------main.html
------logout.html
------loging.html
------LATERAL
---------menu.html
Some lines of my views file in order to check how I add the paths:
def loging(request): # Función vista
return render(request, "loging.html")
I have tried changing to some variations of the paths and with absolute paths too without success. All was working perfectly locally.