Django path issue

My project runs fine, however it's highlighting some errors.

I've got the following in my

ROOT_DIR = environ.Path(__file__) - 3  # (electronicz/config/settings/ - 3 = electronicz/)
APPS_DIR = ROOT_DIR.path('electronicz')

The "path" part in the 2nd line highlights as the error "Unresolved attribute reference 'path' for class 'int' ".

This effects further on, where it says that the 'int' object is not callable...

STATIC_ROOT = str(ROOT_DIR('staticfiles'))

This code is straight from the popular cookiecutter-django, and as I mentioned at the start of the post it runs fine. What should I do to make this go away?

NB: I'm running the fully updated 2016 version.

Please sign in to leave a comment.