Coder Social home page Coder Social logo

django-livereload's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

django-livereload's Issues

Doesn't seem to work at all.

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>

Not working with internal apps

I have an contact app and isn't working with them.
I will show some prints with the code of my app.
urls py
contato_app_views py

when I access the URL livereload tab on console not detect that I went to the Contact view.

If necessary others information I would like to help you.

No livereload script injected

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.

Push to pip

Hi there it would be lovely if you could push the compatibility changes to pip as well. :)

Firefox is blocking websocket connection.

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

Livereload affecting resulting html

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?

Why should django local server and tinylr listen to the same port ?

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 ?

AttributeError: no attribute url open

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'

Livereload midleware error

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.