
Why is it at all?
There should be a text in the spirit of "I used to download the Eclipse Classic, which weighs more than 160 meters to put PyDev on it and only then ... But then I tried Aptana ...".Actually,
Aptana Studio is a development
environment based on
Eclipse . And this means exactly what it means - almost all
Eclipse plug-ins are compatible with
Aptana , but at the same time it does not have all of this versatility and Java bells and whistles of its progenitor by default. And yes, good old
PyDev is also here, but in my opinion this is the best IDE add-on for python. Naturally, it is much faster and easier to use
Geany for writing small projects, but now it’s not about him :)
First look
Downloading the
Aptana distribution for your system. Which is typical, as is the case with
Eclipse , Linux already has a full working build with all the binaries, nothing needs to be compiled (Java makes itself known). Unpack, run, when you start, select the workspace folder to store your future projects. Do not forget that the
Java Runtime must be installed to run, the newer the better.

Wow, what a beauty! But damn it, how it all wildly slows down and buggy! Do not worry, now we will cope with everything.
To begin with, I advise you to select the plugins that you are going to use in the development in this most glamorous settings window. In my case, these are undoubtedly
PyDev ,
jQuery and
Prototype support plugins, as well as plugins to support
Git and
Subversion version control systems. Somewhere there is also a plugin for
Mercurial , but for some reason it is not listed. Those interested can also put
Embedded Firefox Browser , which makes it clear what. Conveniently. By the way, the installation process reveals another malicious feature of our glamor window - you can’t just tick and install all the plugins at the same time. The joke is that after installing each plug-in,
Aptana requires a restart. You can agree, you can try to immediately apply the changes. In the first case, everything is likely to be type-top, in the second - it is never known in advance. Therefore, it is easier to restart, since
Aptana , unlike its heavy ancestor, loads much faster.
Have you installed everything? Fine. Look at this beauty once again, you will not see any more of it or its brakes. To do this, go to
Window -> Preferences , type “plugin” in the search bar and we are immediately shown a menu where you can configure plugins that are loaded at startup. Uncheck
Aptana Intro and click Apply.
By the way, here you can identify another bug that occurs when you run Uptan in the latest versions of Gnome and, in particular, in Ubuntu 9.10. Pressing some buttons in the windows of the menu is visualized, but does not produce any effect, you have to press Enter each time. Fix this annoying misunderstanding and at the same time make your life easier for yourself - create a script somewhere in
/ usr / bin , call it
aptana , so that everything is perfectly and conveniently run on Alt + F2, and prescribe inside:
#! / bin / sh
export GDK_NATIVE_WINDOWS = 1
'/ address / where / Aptana / is / installed'
Now when you run on Alt + F2 or from the button on the panel, everything will work.
And finally, let's turn on the
PyDev perspective (“perspective” here is a set of menu items, panels, and their position, which can be adjusted manually. For different languages, it is convenient to use different perspectives). We press the button

, then
Others and in the list of perspectives, select
PyDev :
')

Voila!
Finally, about Django!
Well, we did the initial setup, now it remains quite a bit - to figure out how to tie the whole thing to
django . Create a new project with the standard command in the project folder you selected:
django-admin.py startproject testproj
Now you need to import it in
Aptana . To do this, right-click in the Python Package Explorer panel, select Import, open the Other list in the opened window, and select Existing Folder As New Project in it. We select the project we just created, we import.
Now it is necessary to heighten the convenience of auto-make a development server. To do this, open the
manage.py file from our django project, select
Run -> Run configurations in the menu
... Python Run should be selected on the left, and our project in it. You can change the name by default to the name of your project (in the example -
testproj ). Now open the Arguments tab and set the standard arguments for starting the server in Program Arguments:
runserver --noreload
The
--noreload parameter
is needed for normal output to the aptan console. Only here you may encounter a known problem - the Django test server tries to start up by default on port 8000, but other programs like this port, for example, totem often plays it when listening to streaming music. Therefore, I usually outweigh the server, for example, on port 7777. To do this, you just need to add to the configuration parameters the ip and port of the local host, ie:
runserver --noreload 127.0.0.1:7777
That's all! Now just click Run (

) and the server will start, and the output will be redirected to the console.
It Worked!Good luck in coding!