Thursday, January 26, 2012

Re: I need help with Python Tools for Visual Studio 2010 and Django

On Wed, 25 Jan 2012 17:05:59 -0800 (PST), JJ Zolper <coding@madtrak.com>
wrote:

>Let me see if this what you mean... so when I want to run "python manage.py
>runserver," a Django command I should steer clear of Windows?
>
No -- but, as the "python ..." line indicates, you need to be at an
OS level command line (or use an IDE that implicitly spawns a subprocess
that is equivalent to that line), not inside a python interpreter.

"runserver" is, to my mind, the "Django" command. "manage.py" is the
a Python script generated by Django which processes management commands
for the Django installation.

>If I have this right I should install my CPython distro to VS and build my
>Python on Windows in VS. Then on the side I should have a VM running with
>my Django server (aka my Django project)?

The main suggestion I saw (and my apologies if I'm repeating other
information -- I'm a bit behind in the group today and haven't read
ahead) was to install the ActiveState Python build (it appears they've
renamed the non-supported/freeware build to "community edition").

ActivePython for Windows includes the win32 extension libraries (if
one wants to go to native Windows code -- though the now standard ctypes
library permits similar capability if one knows the API), and PythonWin
IDE (as I recall, this started life as an included demo of the win32
extension libraries <G>).

PythonWin isn't the fanciest IDE -- no overarching "project"
management, just multi-window file access; autocomplete won't work for a
module until it has been imported via the interactive window (since some
modules have to be imported for PythonWin itself, those autocomplete
without explicit imports). I believe it supports the Python debugger
(I've not written anything complex enough to need formal debugger --
wolf-fencing* and rerunning works for me). But it doesn't cost
anything... Full Komodo is a $$$ product; I don't know if there is a
stripped down version.

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment