Django Admin page CSS problem

I can’t see anything missing or wrong here.

If you run runserver and it’s still trying to reference jet in the path of the static files, then my next hypothesis is that something is messed up in your installation. If that’s the case, I suggest deleting and creating your virtual environment that you’re using here.

You mean starting everything afresh?

Just recreate the virtual environment.

(From the collectstatic output above, it looks like it may be the /Users/ndalamafestusedward/banking-system/myenv directory)

yes that is the one.

so i create new one with the same name? will it override the existing one?

You can delete the directory and create a new one with the same name.

Or, you can create the new one with a different name, and activate it instead.

But it won’t normally let you recreate a venv over an existing instance.

Okay let me do that and will give you feedback

(mynewenv) ndalamafestusedward@ws19is083 banking-system % python3 manage.py runserver
Traceback (most recent call last):
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/vine/five.py”, line 361, in
from inspect import formatargspec, getfullargspec
ImportError: cannot import name ‘formatargspec’ from ‘inspect’ (/Library/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/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/core/management/base.py”, line 354, in run_from_argv
self.execute(*args, **cmd_options)
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/core/management/commands/runserver.py”, line 61, in execute
super().execute(*args, **options)
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/core/management/base.py”, line 398, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/core/management/commands/runserver.py”, line 68, in handle
if not settings.DEBUG and not settings.ALLOWED_HOSTS:
^^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/conf/init.py”, line 82, in getattr
self._setup(name)
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/conf/init.py”, line 69, in _setup
self._wrapped = Settings(settings_module)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/conf/init.py”, line 170, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Library/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 “”, line 1206, in _gcd_import
File “”, line 1178, in _find_and_load
File “”, line 1128, in _find_and_load_unlocked
File “”, line 241, in _call_with_frames_removed
File “”, line 1206, in _gcd_import
File “”, line 1178, in _find_and_load
File “”, line 1149, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/Users/ndalamafestusedward/banking-system/banking_system/init.py”, line 3, in
from .celery import app as celery_app
File “/Users/ndalamafestusedward/banking-system/banking_system/celery.py”, line 5, in
from celery import Celery
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/celery/init.py”, line 19, in
from . import local # noqa
^^^^^^^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/celery/local.py”, line 17, in
from .five import PY3, bytes_if_py2, items, string, string_t
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/celery/five.py”, line 7, in
import vine.five
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/vine/init.py”, line 8, in
from .abstract import Thenable
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/vine/abstract.py”, line 6, in
from .five import with_metaclass, Callable
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/vine/five.py”, line 364, in
from inspect import formatargspec, getargspec as _getargspec # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name ‘formatargspec’ from ‘inspect’ (/Library/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/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/vine/five.py”, line 361, in
from inspect import formatargspec, getfullargspec
ImportError: cannot import name ‘formatargspec’ from ‘inspect’ (/Library/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/ndalamafestusedward/banking-system/manage.py”, line 22, in
main()
File “/Users/ndalamafestusedward/banking-system/manage.py”, line 18, in main
execute_from_command_line(sys.argv)
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/core/management/init.py”, line 419, in execute_from_command_line
utility.execute()
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/core/management/init.py”, line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/core/management/base.py”, line 367, in run_from_argv
connections.close_all()
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/db/utils.py”, line 208, in close_all
for alias in self:
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/utils/connection.py”, line 73, in iter
return iter(self.settings)
^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/utils/functional.py”, line 48, in get
res = instance.dict[self.name] = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/utils/connection.py”, line 45, in settings
self._settings = self.configure_settings(self._settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/db/utils.py”, line 144, in configure_settings
databases = super().configure_settings(databases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/utils/connection.py”, line 50, in configure_settings
settings = getattr(django_settings, self.settings_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/conf/init.py”, line 82, in getattr
self._setup(name)
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/conf/init.py”, line 69, in _setup
self._wrapped = Settings(settings_module)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/django/conf/init.py”, line 170, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Library/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 “”, line 1206, in _gcd_import
File “”, line 1178, in _find_and_load
File “”, line 1128, in _find_and_load_unlocked
File “”, line 241, in _call_with_frames_removed
File “”, line 1206, in _gcd_import
File “”, line 1178, in _find_and_load
File “”, line 1149, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/Users/ndalamafestusedward/banking-system/banking_system/init.py”, line 3, in
from .celery import app as celery_app
File “/Users/ndalamafestusedward/banking-system/banking_system/celery.py”, line 5, in
from celery import Celery
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/celery/init.py”, line 19, in
from . import local # noqa
^^^^^^^^^^^^^^^^^^^
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/celery/local.py”, line 17, in
from .five import PY3, bytes_if_py2, items, string, string_t
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/celery/five.py”, line 7, in
import vine.five
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/vine/init.py”, line 8, in
from .abstract import Thenable
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/vine/abstract.py”, line 6, in
from .five import with_metaclass, Callable
File “/Users/ndalamafestusedward/banking-system/mynewenv/lib/python3.11/site-packages/vine/five.py”, line 364, in
from inspect import formatargspec, getargspec as _getargspec # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name ‘formatargspec’ from ‘inspect’ (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)

From this information, it appears you may be doing this on a Mac?

If so, we’ve gone beyond what I can do to help you here.

I mean, I know that the direct issue referenced here is a missing package. But if that’s not picked up by your installation process, I don’t know what to do. Hopefully one of the Mac experts around here might pick up on this and try to help.

Okay, i decided to downgrade python version and see how it goes. I solved such a problem twice by downgrading but i am not sure why it solves or what exactly causes that.

Best of luck to you.

I’ve had such horrible experiences with trying to do Python / Django development on a Mac that I gave up years ago and will never bother with it again. (The whole Python ecosystem on a Mac just feels extremely “sloppy” to me, and not worth the effort.)

This article solved my problem