{"id":13590592,"url":"https://github.com/tjwalch/django-livereload-server","last_synced_at":"2025-04-08T13:31:38.257Z","repository":{"id":2876191,"uuid":"47680782","full_name":"tjwalch/django-livereload-server","owner":"tjwalch","description":"Livereload functionality integrated with your Django development environment.","archived":false,"fork":false,"pushed_at":"2024-05-27T16:29:58.000Z","size":72,"stargazers_count":412,"open_issues_count":17,"forks_count":63,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-06T05:18:09.028Z","etag":null,"topics":["development","django","tools"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tjwalch.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-09T09:14:56.000Z","updated_at":"2025-03-15T19:20:04.000Z","dependencies_parsed_at":"2023-01-13T12:08:32.290Z","dependency_job_id":"fb3d75a3-84ef-402b-9325-ec6efe580c5f","html_url":"https://github.com/tjwalch/django-livereload-server","commit_stats":{"total_commits":43,"total_committers":19,"mean_commits":2.263157894736842,"dds":0.6744186046511628,"last_synced_commit":"54dd880d9e948710b0f9e4fddfc99731b32b24f9"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjwalch%2Fdjango-livereload-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjwalch%2Fdjango-livereload-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjwalch%2Fdjango-livereload-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjwalch%2Fdjango-livereload-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjwalch","download_url":"https://codeload.github.com/tjwalch/django-livereload-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247851646,"owners_count":21006793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","django","tools"],"created_at":"2024-08-01T16:00:48.535Z","updated_at":"2025-04-08T13:31:33.248Z","avatar_url":"https://github.com/tjwalch.png","language":"Python","funding_links":[],"categories":["Installation","Python"],"sub_categories":["Live Reload"],"readme":"========================\ndjango-livereload-server\n========================\n\nThis django app adds a management command that starts a livereload server watching all your static files and templates as well\nas a custom ``runserver`` command that issues livereload requests when the development server is ready after a restart.\n\nInstallation\n------------\n\nInstall package: ::\n\n  $ pip install django-livereload-server\n\nAdd ``'livereload'`` to the ``INSTALLED_APPS``, before ``'django.contrib.staticfiles'`` if this is used::\n\n    INSTALLED_APPS = (\n        ...\n        'livereload',\n        ...\n    )\n\nNext you need to inject the loading of the livereload javascript. You can do this in one of two ways:\n\n* Through middleware by adding  ``'livereload.middleware.LiveReloadScript'`` to ``MIDDLEWARE`` (probably at the end)::\n\n    MIDDLEWARE = (\n        ...\n        'livereload.middleware.LiveReloadScript',\n    )\n\n* Through a templatetag in your ``base.html`` (or similar) template::\n\n    {% load livereload_tags %}\n    ...\n    {% livereload_script %}\n    \u003c/head\u003e\n\nEither of these options will inject the ``livereload.js`` script into your webpages if ``DEBUG`` setting is on.\n\nConfiguration\n-------------\nIf you need the livereload server to use a different host and port than the default 127.0.0.1 and 35729,\nspecify them by setting ``LIVERELOAD_HOST`` and ``LIVERELOAD_PORT`` in ``settings.py``.\n\nUsage\n-----\nStart the livereload server::\n\n  $ python manage.py livereload\n\nkeep the livereload server running.\n\nStart the django development server as usual (in another console)::\n\n  $ python manage.py runserver\n\nIn the browser's address bar access your web app by doing::\n\n  127.0.0.1:8000 or localhost:8000\n\nnow every time you hit save in your editor, the django-development-server/livereload-server automatically updates the staticfiles\n\nCustomization\n-------------\n\nBy default both template and staticfiles directories are watched.\n\nYou can ignore template directories using: ::\n\n  $ ./manage.py livereload --ignore-template-dirs\n\nOr staticfiles directories using: ::\n\n  $ ./manage.py livereload --ignore-static-dirs\n\nYou can ignore file extensions: ::\n\n  $ ./manage.py livereload --ignore-file-extensions=.less,.scss\n\n\nExtra files and/or paths to watch for changes can be added as positional arguments. By default livereload server watches the files that are found by your staticfiles finders and your template loaders. ::\n\n  $ python manage.py livereload path/to/my-extra-directory/\n\nThis will be excluded from the paths ignored by `--ignore-template-dirs` and\n`--ignore-static-dirs`.\n\nHost and port can be overridden with ``--host`` and ``--port`` options. ::\n\n  $ python manage.py livereload --host=myhost.com --port=9090\n\nthe runserver command ``python manage.py runserver`` also accepts three additional options::\n\n* ``--nolivereload`` to disable livereload functionality\n* ``--livereload-host`` to override both default and settings file specified host address\n* ``--livereload-port`` to override both default and settings file specified port\n\nBackground\n----------\nThis project is based on a merge of `python-livereload \u003chttps://github.com/lepture/python-livereload\u003e`_ and\n`django-livereload \u003chttps://github.com/Fantomas42/django-livereload\u003e`_, excellent projects both and even better for\nsmooth django development when combined.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjwalch%2Fdjango-livereload-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjwalch%2Fdjango-livereload-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjwalch%2Fdjango-livereload-server/lists"}