Published Thursday March 06, 2008. Tags: Django
Continuing with my theme of tips, about what might seem like pretty much random stuff, today I am going to show how to setup your PowerShell profile to allow you to run python and django-admin in the active shell. Without this if you run django-admin using something like
$env:PYTHONPATH="R:\django\packages\django-trunk" $env:PATH=$env:PATH + ";D:\Programs\Python25\;R:\django\packages\django-trunk\django\bin"function django-admin {python (gcm django-admin.py | resolve-path) $args}
If you are curious about the execution policy then checkout the very useful Getting Started document that came with PowerShell (look in your Start Menu).
2008–03-31, Update: I had an issue with the way I had posted this originally. I needed to add ’$args’ so that the arguments would be passed to the script.
Comments