Skip to content
Advertisement

Tag: pydev

“from . import views”: Unresolved import

I’m following the Django 1.8 tutorial. In my project mysite, there is a source folder polls. In the folder there is views.py module where a index function is defined. And there is a urls.py file: This is what the tutorial suggests, and Django works well with the codes. However Eclipse (PyDev) complains of unresolved imports for views. If I remove

Why doesn’t Pydev find Django?

I have Django installed. I also have django-admin.py in my python-2.7 folder. I can import django using my Python shell (DreamPie). But I can’t create a new Django project in Pydev. When trying to create a new Pydev Django Project (choosing python2.7 as the interpreter) I receive the following error message: I went to the link in the message and

Advertisement