fabioz/Pydev — pull request #119 by Diracnote (2014-02-27 03:20:33+00:00)
Title: Django console fix for 1.6

With Django 1.6, right click the project

django --> shell with django environment:

There is an error there, which makes the console cant run Django related stuff

The command there:

from django.core import management;import test1.settings as settings;management.setup_environ(settings)

Error:

Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'setup_environ'

Reason:

According to the document, this method is [deprecated](https://docs.djangoproject.com/en/dev/releases/1.4/#django-core-management-setup-environ) in Django 1.4. but that still worked for 1.4

First time to modify the opensource project, it maybe a little ugly :)