Python Forum
Development Server Problem (Win10)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Development Server Problem (Win10)
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to take the tar backup files form remote server to local server sivareddy 0 1,900 Jul-14-2021, 01:32 PM
Last Post: sivareddy
  Where does pip auto install on Win10 with py 3.9.4? Fran_3 4 3,512 May-05-2021, 03:47 PM
Last Post: snippsat
  Compiling on win10 ebolisa 1 1,753 Sep-04-2020, 04:39 PM
Last Post: ebolisa
  Python Development Server in Azure phpMick 1 1,853 Nov-18-2019, 03:08 PM
Last Post: snippsat
  Error building wheel for grpcio on win10 Topiii 1 5,214 Nov-13-2019, 03:08 PM
Last Post: snippsat
  win10 Service(script) start and stop hwa_rang098tkd 0 2,462 Jun-21-2018, 07:42 PM
Last Post: hwa_rang098tkd
  Win10 Import math issue Oldsquid 2 3,081 May-12-2018, 11:08 AM
Last Post: Oldsquid
  Load spatialite in Python 3.6 on Win10 failed RTFirefly 1 5,391 Feb-19-2018, 09:59 PM
Last Post: RTFirefly
  Problem with connection: Python + SQL Server carlos_123 2 5,240 Feb-13-2018, 06:13 PM
Last Post: carlos_123
  Can't get .py to run on Win10 command line jonesin1974 3 4,658 Nov-08-2017, 04:25 AM
Last Post: jonesin1974

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020