Are you using the Django python shell? That error means that your
environment doesn't point to a settings file, which is handled by the Django
shell.
Execute this command within your project directory (wherever you have the
manage.py file):
python manage.py shell
It will open a Python interpre
Hi all,
I wan to import a method in a model class to another
class as well as that method contains some objects includes self
How to import that method's operation?
it shows the error
>>> from users.models import userprofile
Traceback (most recent call last):
File "", line 1,
2 matches
Mail list logo