Comments (5)
I am also running to this same issue. The --livereload-port
argument does not seem to be working
from django-livereload-server.
Looks like I found the answer to this exact issue.
From the docs:
Add 'livereload' to the INSTALLED_APPS, before 'django.contrib.staticfiles' if this is used:
Looks like you are not installing this above the "staticfiles" app
from django-livereload-server.
After some further investigation, the only way that I could reliably set the port to affect the script in the middleware and the livereload server itself was in the settings.
I added LIVERELOAD_PORT = 1234
in my settings.
from django-livereload-server.
so the docs need updating
from django-livereload-server.
If I were the maintainer, I would remove the --livereload-port
argument from the ./manage.py
command altogether. I think that it adds confusion, because it can only possibly control the port that the Django development server knows about. The Tornado server, which I think is what runs when you do ./manage.py livereload
doesn't know what port you specified in the other ./manage.py
command.
That's why I think it makes sense to just drop these parameters, and just set all of these settings under the settings.py
file.
from django-livereload-server.
Related Issues (20)
- Make reloading timeout configurable HOT 1
- Stop ignoring changed CSS files HOT 5
- 304 error
- name collision with other livereload package => ImportError: cannot import name 'livereload_port' from 'livereload'
- Disable reload on specific pages
- setting `LIVERELOAD_HOST` in container/VM/similar HOT 8
- When multiple static files are changed in a short time it goes into a reload loop.
- Does not work without HEAD tag. HOT 1
- Latest release (supporting --ignore-file-extension) isn't on pypi (there is a workaround) HOT 1
- HTTPS HOT 1
- No changes detected HOT 1
- Exception in callback - TypeError: expected string or bytes-like object HOT 3
- New Path class isn't supported HOT 2
- livereload.js 404 3172 HOT 1
- some bugs appear on django4.0,python3.10.2. admin's sidebar disappear,ckedite can't run in admin page. HOT 1
- Running in docker compose seems to break livereload HOT 5
- `livereload_script` should use "protocol-relative URL" HOT 2
- Page is reloaded before template is updated HOT 1
- Release new version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-livereload-server.