Re: Transforming django-admin.py to a shell script

2013-03-03 Thread Alon Nisser
Yes! Actually I also bumped into the annoying `ImportError: No module named django.core` problem, so fixing virtualenv would be a blessing. *But.. *I still think this is the wrong path, since python setuptools has a better solution for that with cross platform compatibility etc. Take a look at h

Re: Transforming django-admin.py to a shell script

2013-03-02 Thread Joe Tennies
So, you are asking for the startproject (which again, you only run once, so I wouldn't think it would be TOO bad) to create a manage.bat that had the following line in it? python manage.py %* I'm not saying that this is a bad idea. It does make it fairly easy for Windows people. In the case of Li

Re: Transforming django-admin.py to a shell script

2013-03-02 Thread Alon Nisser
much simpler. simply making it run with simple `manage somecommand` instead of `python manage.py somecommand`. using setuptools or something similiar On Saturday, March 2, 2013 12:17:25 AM UTC+2, Łukasz Rekucki wrote: > > On 1 March 2013 22:38, Alon Nisser >wrote: > >> at least from my windows ex

Re: Transforming django-admin.py to a shell script

2013-03-01 Thread Łukasz Rekucki
On 1 March 2013 22:38, Alon Nisser wrote: > at least from my windows exprience with Django (yes, I know this isn't a > common use case, but still) the current django-admin.py and manage.py do > need python preface to run right (while inside a virtualenv) I'm not 100% sure if the Windows Python

Re: Transforming django-admin.py to a shell script

2013-03-01 Thread Alon Nisser
at least from my windows exprience with Django (yes, I know this isn't a common use case, but still) the current django-admin.py and manage.py do need python preface to run right (while inside a virtualenv) - but maybe I'm wrong, at least from my peak in Django setup.py It doesn't utilize `entr

Re: Transforming django-admin.py to a shell script

2013-03-01 Thread Alex Ogier
On Fri, Mar 1, 2013 at 1:25 PM, Alon Nisser wrote: > and then it could be called as `django-admin somecommend` instead of `python > django-admin.py somecommand`. > since python (using setuptools entry points) makes making a python script > into a shell script quite easy I guess this has been Discu

Transforming django-admin.py to a shell script

2013-03-01 Thread Alon Nisser
and then it could be called as `django-admin somecommend` instead of `python django-admin.py somecommand`. since python (using setuptools entry points) makes making a python script into a shell script quite easy I guess this has been Discussed before but I didn't find the discussion and the exp