I’m getting this error when i enter “python manage.py livereload” after changing all the parameters in django app
I’m using django-livereload-server
"C:UsersADMINDesktopprojectswebsitesbuddiestouronlines>python manage.py livereload
Traceback (most recent call last):
File "C:UsersADMINAppDataRoamingPythonPython312site-packagesdjangotemplatebackendsdjango.py", line 128, in get_package_libraries
module = import_module(entry[1])
^^^^^^^^^^^^^^^^^^^^^^^
File "C:Program FilesPython312Libimportlib__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "C:UsersADMINAppDataRoamingPythonPython312site-packageslivereloadtemplatetagslivereload_tags.py", line 4, in <module>
from livereload import livereload_host, livereload_port
ImportError: cannot import name 'livereload_host' from 'livereload' (C:UsersADMINAppDataRoamingPythonPython312site-packageslivereload__init__.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:UsersADMINDesktopprojectswebsitesbuddiestouronlinesmanage.py", line 22, in <module>
main()
File "C:UsersADMINDesktopprojectswebsitesbuddiestouronlinesmanage.py", line 18, in main
execute_from_command_line(sys.argv)
File "C:UsersADMINAppDataRoamingPythonPython312site-packagesdjangocoremanagement__init__.py", line 442, in execute_from_command_line
utility.execute()
File "C:UsersADMINAppDataRoamingPythonPython312site-packagesdjangocoremanagement__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:UsersADMINAppDataRoamingPythonPython312site-packagesdjangocoremanagementbase.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
File "C:UsersADMINAppDataRoamingPythonPython312site-packagesdjangocoremanagementbase.py", line 454, in execute
self.check()
File "C:UsersADMINAppDataRoamingPythonPython312site-packagesdjangocoremanagementbase.py", line 486, in check
all_issues = checks.run_checks(
^^^^^^^^^^^^^^^^^^
File "C:UsersADMINAppDataRoamingPythonPython312site-packagesdjangocorechecksregistry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersADMINAppDataRoamingPythonPython312site-packagesdjangocorecheckstemplates.py", line 60, in check_for_template_tags_with_the_same_name
for module_name, module_path in get_template_tag_modules():
File "C:UsersADMINAppDataRoamingPythonPython312site-packagesdjangotemplatebackendsdjango.py", line 105, in get_template_tag_modules
for name in get_package_libraries(pkg):
File "C:UsersADMINAppDataRoamingPythonPython312site-packagesdjangotemplatebackendsdjango.py", line 130, in get_package_libraries
raise InvalidTemplateLibrary(
django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'livereload.templatetags.livereload_tags': cannot import name 'livereload_host' from 'livereload' (C:UsersADMINAppDataRoamingPythonPython312site-packageslivereload__init__.py)"
I hope that if youn could help me that would be great
New contributor
Justine Biju Paul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.