Need help with old django: ImportError: No module named app
I'm taking yet another course at Skillshare. Skillshare seems to be a place to dump your programming courses. I doubt the teacher is actually available, otherwise I'd ask her.
My current issue (I suspect) is because I am using old Python (2.7.17) with an old Django (1.11.13) (version provided by the teacher in a download form) I have done what I'm trying to do in this course with other newer versions of Django (Django 2.x) But I'm having enormous difficulty finding any infomation on my particular error. When I took programming in college, it wasn't this hard. Nothing was. But then I didn't use it everyday for ten years. Then for ten years after that I didn't use it at all. It's rather ironic. I'm thinking of redoing my old COBOL final project in python. That is, in Python 3. But that's neither here nor there. My issue is this: Code:
michael@caitlyn Skeleton Project (django-admin) $ python manage.py runserver Code:
root@caitlyn:~# ls /usr/lib64/python2.7/importlib/ |
Could it be a typo somewhere in the script? Like app instead of apps? You probably have something like
Code:
from django.apps import apps |
Quote:
Quote:
The course teacher will know whether that module should exist (and where it should be), whether it should have been created earlier, etc - and thus can tell you very quickly whether it's a typo, path issue, or something else. Without even a reference to the course, all anybody here can do is make guesses. Quote:
Good programmers understand what errors are saying and will look for explanations not answers - those can come from many websites. Generally the Stack Overflow responses worth considering are the ones that explain why the error is occurring and link to relevant documentation - i.e. those that assist with understanding - but a large number of them are written by mediocre programmers with a limited grasp on what they're responding to. Quote:
Once you have read that, you may understand why creating app.py in one of Python's system directories was never going to solve your problem (and is a misunderstanding of whatever the issue on StackOverflow was). |
Carefully read the Django documentation on modules. Yes, it might be a tpyo!
|
Quote:
|
All times are GMT -5. The time now is 07:58 PM. |