Reputation: 307
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
Reputation: 307
I find better solution by specifying monitorChangesTo
parameter in FastCGI according to following document on views.py.
Upvotes: 1
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