fantomas42 / django-livereload Goto Github PK
View Code? Open in Web Editor NEWLivereload with the Django developement server
License: BSD 3-Clause "New" or "Revised" License
Livereload with the Django developement server
License: BSD 3-Clause "New" or "Revised" License
When I have the middleware installed, when I try to run the server i get
lib/python3.5/site-packages/django/core/handlers/base.py", line 82, in load_middleware
mw_instance = middleware(handler)
TypeError: object() takes no parameters
When I remove the middleware and try to run with a custom livereload-js
I get:
LiveReload exception: <urlopen error [Errno 111] Connection refused>
Hi @Fantomas42, great idea to use livereload!
How are you launching tinylr from Gulp/Grunt?
Can you put an example in your README?
After following your steps, I can see that the livereload server is running at http://127.0.0.1:35729/
{
"tinylr": "Welcome",
"version": "0.0.5"
}
But I get no livereload script injection. I would have expected your plugin took care of this when serving a file via Django's static
dir?
I am attempting to launch livereload using grunt-contrib-watch
.
Hi there it would be lovely if you could push the compatibility changes to pip as well. :)
Error message on Firefox:
The resource from “http://localhost:35729/livereload.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). list
My apps:
Django==3.1.4
django-livereload==1.7
My main problem right now is that I developed the page using livereload assuming I would get rid of it once we were heading towards production stages. Problem comes when I remove livereload and its middleware the resulting html is no longer the same, anyone know why this could be?
The runserver
command is making django listen to the same port as would the tinylr server. Why is that ? If i'm understanding everything right, i should be running my tinylr server (with node in my case) and then run django server "as usual" except the django server would regularly send notes to the tinylr server. So why does this app assign the tinylr listening port as default port for the django local server when running python manage.py runserver
?
So I installed django-livereload. When I ran the server this is the error I got. Perhaps tiny-lr is needed as well. In that case it would be nice with some more documentation explaining what is needed and how you would set it up.
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x10c5693b0>
Traceback (most recent call last):
File "/Users/jonathan/.virtualenvs/hackership/lib/python3.3/site-packages/django/utils/autoreload.py", line 93, in wrapper
fn(*args, **kwargs)
File "/Users/jonathan/.virtualenvs/hackership/lib/python3.3/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run
handler = self.get_handler(*args, **options)
File "/Users/jonathan/.virtualenvs/hackership/lib/python3.3/site-packages/livereload/management/commands/runserver.py", line 57, in get_handler
self.livereload_request(**options)
File "/Users/jonathan/.virtualenvs/hackership/lib/python3.3/site-packages/livereload/management/commands/runserver.py", line 45, in livereload_request
urllib.urlopen('http://%s/changed?files=.' % host)
AttributeError: 'module' object has no attribute 'urlopen'
Hello
I'm try to configuring odjango-livereload n a django project but i have some problems (yet) to setup correctly.
In this case, the middleware doesn't detected. Django give me that:
ImportError: Module "django.middleware.LiveReloadScript" does not define a "LiveReloadScript" attribute/class
What i have to do?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.