Bheid
Bheid

Reputation: 307

Restart Django Application, Deployed on IIS with FastCGI

I've successfully setup Django on IIS with FastCGI, the problem is how to restart Django application after views.py update. I've tried restarting the IIS site and application pool and IISReset command; that does not make any change.

Upvotes: 0

Views: 1055

Answers (2)

Bheid
Bheid

Reputation: 307

I find better solution by specifying monitorChangesTo parameter in FastCGI according to following document on views.py. enter image description here

Upvotes: 1

Jalpa Panchal
Jalpa Panchal

Reputation: 12749

Clear browser history and cache then try to access the site again.

or you could use django-livereload-server

This django app adds a management command that starts a livereload server watching all your static files and templates as well as a custom runserver command that issues livereload requests when the development server is ready after a restart.

$ pip install django-livereload-server

Add 'livereload.middleware.LiveReloadScript' to MIDDLEWARE_CLASSES in settings.py.

Then run

$ ./manage.py livereload

before starting the server.

https://github.com/tjwalch/django-livereload-server

Upvotes: 0

Related Questions