Hi,
I am new to Python and am starting to learn Django through Corey Schafer's YouTube tutorials.
When I run a development server in the command line(python manage.py runserver), the server starts and I can access the site in Chrome at localhost:8080.
However, any changes that I make to the code are not reflected in the browser when I refresh/reload the page. I have to stop the server and start it again. Then the changes I made are visible in the browser.
In the tutorial (which is on MacOs) just refreshing the browser is sufficient to see the code changes.
Is there something I am missing? I'm running Win10, Python 3.7.3, Django 2.2.
Thanks for any help you can give me!
Sami
Solved it. I did not pip install virtualenv before running the server. Once I did that, I was able to refresh the browser and see the changes.
I am new to Python and am starting to learn Django through Corey Schafer's YouTube tutorials.
When I run a development server in the command line(python manage.py runserver), the server starts and I can access the site in Chrome at localhost:8080.
However, any changes that I make to the code are not reflected in the browser when I refresh/reload the page. I have to stop the server and start it again. Then the changes I made are visible in the browser.
In the tutorial (which is on MacOs) just refreshing the browser is sufficient to see the code changes.
Is there something I am missing? I'm running Win10, Python 3.7.3, Django 2.2.
Thanks for any help you can give me!
Sami
Solved it. I did not pip install virtualenv before running the server. Once I did that, I was able to refresh the browser and see the changes.