Thank you Ken I have gone ahead and made the change to the django_project folder so that there is an outer and inner folder that is named django project. inside the inner folder is everything else. The instructions in the book were telling me to do otherwise but its not getting results so this change does need to be made I think
I have made the change to the django_project folder. I am trying to get better by doing the fundamental tutorials, I have completed the polls app and now I am working on the django for beginners book and than possibly two scoops of django or freelancing. I am trying to get better. I do apologize for the many questions I have bookmarked all of them.
(.venv) andrewstribling@Andrews-MBP django_project % python3 manage.py collectstatic
Traceback (most recent call last):
File “/Users/andrewstribling/Desktop/code/message-board/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 255, in fetch_command
app_name = commands[subcommand]
~~~~~~~~^^^^^^^^^^^^
KeyError: ‘collectstatic’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Users/andrewstribling/Desktop/code/message-board/django_project/django_project/manage.py”, line 22, in
main()
File “/Users/andrewstribling/Desktop/code/message-board/django_project/django_project/manage.py”, line 18, in main
execute_from_command_line(sys.argv)
File “/Users/andrewstribling/Desktop/code/message-board/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 442, in execute_from_command_line
utility.execute()
File “/Users/andrewstribling/Desktop/code/message-board/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/andrewstribling/Desktop/code/message-board/.venv/lib/python3.11/site-packages/django/core/management/init.py”, line 262, in fetch_command
settings.INSTALLED_APPS
File “/Users/andrewstribling/Desktop/code/message-board/.venv/lib/python3.11/site-packages/django/conf/init.py”, line 102, in getattr
self._setup(name)
File “/Users/andrewstribling/Desktop/code/message-board/.venv/lib/python3.11/site-packages/django/conf/init.py”, line 89, in _setup
self._wrapped = Settings(settings_module)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/andrewstribling/Desktop/code/message-board/.venv/lib/python3.11/site-packages/django/conf/init.py”, line 217, 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 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1126, in _find_and_load_unlocked
File “”, line 241, in _call_with_frames_removed
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘django_project’
(.venv) andrewstribling@Andrews-MBP django_project %