There are still some details until the final release, but I'd like to get some feedback before that.
The special support goes in the following:
1. Create a 'Pydev Django' project (will use django to create a manage.py, settings.py and urls.py)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0WgjmvWInwgVjYZQn4JjwZHLEWth9TPPozhFjTIDx9NqIcWe4QCAIuOU8ROTQtH5VasiIqOxdAgeV_8Waju4TS6LHmqVJiR4hpWAowoPgeJLWdZ8-_j6AyjNGma10fki8SkcahQ/s400/pydev_django_project.png)
2. For an existing project, just right click it and choose 'Pydev > Set as Django project)'
3. Custom Django actions can be accessed right clicking a project with the Django config and choosing Django > action.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLZAtgRPin1Ee4Az6P8c0b_oIXaiKbWTP-Suypnn670lI_qK7iHLwsInQ1QwI47oOJ5S8nMl_eg3bXWvX155mZ2t2EsgmKpVrVbiEeYhNSVFVmkZHoqM28NtGZSoW5P2uw3FII5Q/s400/django_actions.png)
4. Note that the Shell with django environment will create a shell properly configured with your settings, providing the default features from the pydev shell, such as code completion, history, context assistants (ctrl+1), etc (see: http://pydev.org/manual_adv_interactive_console.html for more details)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFZvmExQuHs8oXk056kEc19LS9wYpPnXzGwEm_bPe7ScW-r4g_3ufdL788Ie4iei-WIxfTpk8wkDu2DTRNrmPEPoR5K043mZki6nsitiLXzjWoESGyEsbnNMRrWRi_pYGbtTpemQ/s400/django_shell.png)
5. Run as Django/Debug as Django are available (note that they set the --no-reload by default, otherwise the debugger may have some issues and other processes may be kept alive when closing the process spawned by Pydev).
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk0E_sIbjZcLV1XpkWrmGKfxP-todSmW3J0Bx58yNmLPfCX6uY6j5LkQXDtBZRlfHx2A7DV3KikYDuYTlqT8g-wKO8yk9q7xbTIvrR6U37zTCaMvQJ98Q7goLkub57S_ty8XsQ9A/s400/run_as_django.png)
And that's it. It's all there in the nightly build already (I still have some features and minor adjustments to do, but that should already give a good idea of what will be available, and I'm waiting for feedback to know if there's something missing that really should be there).
16 comments:
That's really great news! I cant' wait 'till it's finished...
I usually have some problems with the definitions of the Django modules and names in PyDev, probably because it doesn't detect propperly all the Django modules, and end with some "false errors" on the projects. Are you improving this issue? I know Django makes some dynamic loading, so maybe it's difficult.
Also, what I miss is some support (syntax and autocompletion) with the templates. It will be great to help with that, too..
I use PyDev almost every day and I think it's really great tool! I want to add a "good job" statement to the message ;-)
Looking great. These will be very useful features.
Thanks!
Great additions, pydev will be even more useful now.
The only additional feature I'd ask for is to be able to run tests through the django test runner.
This is exciting, can't wait to check it out.
Feature request right off the bat - since you are doing a right-click menu for various manage commands (and it's great to have most common ones up top) - how about adding "Other" submenu which will dynamically load up, essentially, the output of "manage.py help" and provide one-click access to numerous other manage.py commands, particularly custom ones added by developers.
Excellent opportunity! Thanks
Looks great, syntax highlighting of templates would be great, would code completion in templates be possible?
Great, thanks!
Good to see django support in PyDev. The nightly repository seems to be down (http://pydev.org/nightly), eclipse throws an error.
Great news, what about Django template auto code completition, would this also be implemented in future releases?
Hi all, thanks for the comments and suggestions.
There's a new post explaining the common doubts here: http://pydev.blogspot.com/2010/03/django-on-pydev-take-2.html
This is really tremendous. Thanks to all the pydev hackers!
this is great, but there's one problem: my project is placed in a virtualenv, and the eclipse-console cannot find die needed libs. is there any way to tell pydev that it's within the virtualenv?
Django is good but i always face problem using it, why i don't know, i always try to find out the problem but not able to find out.
Hi, is there any way round the "--noreload" restriction? For me one of the killer features of Django is being able to edit the code, then just reload the page to see my changes. Having to stop and restart the server all the time is a pain - I'll just stick to running it from the command line in that case.
Yes, you can edit the run configuration that was created when you did a run as django (under run > run configurations > pydev django > choose the run configuration > remove --noreload from the arguments tab).
Note that doing that will prevent you from using the debugging properly, in which case you have to use the remote debugger. See: http://pydev.org/manual_adv_remote_debugger.html )
Post a Comment