Skip to content

Instantly share code, notes, and snippets.

@rasheedmhd
Created August 11, 2023 17:15
Show Gist options
  • Select an option

  • Save rasheedmhd/65d70a89b49e0ba82be2e54da3b76686 to your computer and use it in GitHub Desktop.

Select an option

Save rasheedmhd/65d70a89b49e0ba82be2e54da3b76686 to your computer and use it in GitHub Desktop.
(sptl) Aurelia-Kite➜ sptl-website : latest ✘ :✹✭ ᐅ python manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
August 11, 2023 - 17:06:39
Django version 2.1.15, using settings 'sptl_cms.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Internal Server Error: /
Traceback (most recent call last):
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/utils.py", line 66, in __getitem__
return self._engines[alias]
~~~~~~~~~~~~~^^^^^^^
KeyError: 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/backends/django.py", line 121, in get_package_libraries
module = import_module(entry[1])
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/suit/templatetags/suit_list.py", line 2, in <module>
from inspect import getargspec
ImportError: cannot import name 'getargspec' from 'inspect' (/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/core/handlers/base.py", line 126, in _get_response
response = self.process_exception_by_middleware(e, request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/core/handlers/base.py", line 124, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/pages/views.py", line 36, in home
return render(request, 'index.html', {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/shortcuts.py", line 36, in render
content = loader.render_to_string(template_name, context, request, using=using)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/loader.py", line 12, in get_template
engines = _engine_list(using)
^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/loader.py", line 66, in _engine_list
return engines.all() if using is None else [engines[using]]
^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/utils.py", line 90, in all
return [self[alias] for alias in self]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/utils.py", line 90, in <listcomp>
return [self[alias] for alias in self]
~~~~^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/utils.py", line 81, in __getitem__
engine = engine_cls(params)
^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/backends/django.py", line 25, in __init__
options['libraries'] = self.get_templatetag_libraries(libraries)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/backends/django.py", line 43, in get_templatetag_libraries
libraries = get_installed_libraries()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/backends/django.py", line 108, in get_installed_libraries
for name in get_package_libraries(pkg):
File "/Users/Starlet/Dev/sptl-website/sptl/lib/python3.11/site-packages/django/template/backends/django.py", line 123, in get_package_libraries
raise InvalidTemplateLibrary(
django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'suit.templatetags.suit_list': cannot import name 'getargspec' from 'inspect' (/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)
[11/Aug/2023 17:06:53] "GET / HTTP/1.1" 500 19394
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment