aptana/Pydev — pull request #52 by Diracnote (2014-02-26 08:10:00+00:00)
Title: Fix the error for "shell with django environment" with Django 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.