skip to Main Content

I created a a small website using django. I can host it locally and can interact all the buttons like sign up page and login page. but when my friend tried to run project then they can able to start django server but can’t able to interact with sign up page and login page! He can see the server syntax on html page like {% csrf_token %}.

Please help!!!!!!!!!!!!!!!!

2

Answers


  1. Try to run migrations and collects static files… Make sure he has all the files and dependencies installed on his environment..

    python manage.py makemigrations
    python manage.py migrate
    python manage.py collectstatic
    
    Login or Signup to reply.
  2. It seems like he is trying to open the site by opening login.html.
    Django does not work that way.
    Tell him to access the site at http://127.0.0.1:8000/ or the relevant URL. Not name.html files.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search