Unauthorized imports "include" and "url"

In my project package, settings.py ( /projectname/projectname/settings.py

), Eclipse provides me with "unresolved imports: enable" and "unresolved imports: url" for the following line:

from django.conf.urls import include, url

include

and url

both are underlined in red squiggly.

Strange, I can still run this application and deploy it to Google App Engine. I tried cleaning the project but Eclipse still gives me this error.

At the moment I'm not sure what other relevant information to include. I don't get any error messages when launching the application. The Django welcome screen is displayed as usual ....

Any ideas why this might be happening?

+3


source to share


1 answer


In the project properties find PyDev - PYTHONPATH > External Libraries > External Source Folders > Add source folder

Then you can add the path to the google_appengine django folder. For example:



/path/to/google_appengine/lib/django...

      

Then restart: File > Restart

+2


source







All Articles