Redirect from .com/ to just .com
mysite.com/ and mysite.com are the same URL. You don't need to set up a redirect.
Your friend probably means that you shouldn't have the same content for mysite.com/foo and mysite.com/foo/.
In Django, you would usually achieve this by using the URL foo/, then the default setting APPEND_SLASH = True will redirect /foo to /foo/.
I have a web page served by Django, and i want to make it to 301 redirect from 
    mysite.com/    to    mysite.com    without a slash on the end. Is it possible to do with Django? 
Last version of Django, python 3.6.
path("", views.home, name="main_page")
Changing nginx config is not an option at my server