NameError: name 'os' is not defined

root@vm6504:/home/web/proj# python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    import settings
  File "/home/web/proj/settings.py", line 59, in <module>
    STATIC_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '../st                                                                                        atic/example'))
NameError: name 'os' is not defined


Надо дописать в /home/web/proj/settings.py
строчку: import os

Нет комментариев