I have the same problem Jani had and I tried this but it is not
working for me. The window still appears when i run "django-admin.py
startproject <name>". The window is the django-admin file and the text
it contents is:
#!/usr/bin/env python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
Thanks.
On 15 abr, 23:07, Jani Tiainen <rede...@gmail.com> wrote:
> One more advice so you don't get caught with the problems:
>
> (Well I suggest that you start using virtualenvs as well, they really rock)
>
> After installing TCC/LE create one batch file (I use tcstart.btm) with
> the following contents:
>
> @echo off
> rem Set python binding to handle virtualenvironments
> set .py;.pyc=python.exe
>
> Note, if you're not using virtual environments or not have your python
> in the path use full absolute path instead of just "python.exe".
>
> Create a shortcut on your desktop (or anywhere you like).
>
> Open properties of the shortcut and set "target" to something like
> "C:\Program Files (x86)\JPSoft\TCCLE12\tcc.exe" "c:\mysettings\tcstart.btm"
>
> And of course, "start in" is good to place where ever you have your
> projects, removes need for extra cd.
>
> This should get you up and running smoothly and should get around the
> problem of windows peculiarities in python invocation.
>
> 16.4.2012 1:23, Brandy kirjoitti:
>
>
>
>
>
>
>
> > I certainly will. Thanks for the advice:)
>
> > On Sunday, April 15, 2012 2:42:00 PM UTC-5, Jani Tiainen wrote:
>
> > It's apparently TCC/LE which saves me about all that command
> > execution and arg passing hazzle.. :)
>
> > Never used plain command prompt so I've been immune to peculiarities
> > of Windows command line utilities.
>
> > I suggest you give it a try - it's really nice.
>
> > On Sun, Apr 15, 2012 at 10:04 PM, Brandy <brandy.norri...@yahoo.com
> > <mailto:brandy.norri...@yahoo.com>> wrote:
>
> > If you would like to read more about the issue, I found the
> > error already reported on the Python website:
> > http://bugs.python.org/issue7936<http://bugs.python.org/issue7936>
>
> > On Saturday, April 14, 2012 1:52:00 PM UTC-5, Jani Tiainen wrote:
>
> > Sounds very goofy.django-admin.pyjust creates files,
> > doesn't open any editors so there is somthing really fishy
> > going on in your machine...
>
> > On Sat, Apr 14, 2012 at 8:27 PM, Brandy
> > <brandy.norri...@yahoo.com
> > <mailto:brandy.norri...@yahoo.com>> wrote:
>
> > What I mean is, I can create 2 or 3 new projects without
> > problems. I play with them and create files, etc. Then,
> > for whatever reason, when I rundjango-admin.py
> > startproject <projectname> again, an editor widow opens
> > (emacs in my case, since that is what I was using), and
> > django doesn't create any files. All I can do is edit
> > the projects I already have created.
>
> > On Saturday, April 14, 2012 12:45:32 AM UTC-5, Jani
> > Tiainen wrote:
>
> > I really suggest you to use virtualenv, it makes
> > your life easier in the long run. Also I use a
> > TCC/LE instead of powershell / cmd prompt to mimic
> > more unix like environment.
>
> > Though you mentioned " After a while, if I try to
> > start a new project, my editor opens and no files or
> > directories are created. " what you exactly mean by
> > that?
>
> > I feel that I should write short article how to make
> > development in win7 slightly less painful...
>
> > On Sat, Apr 14, 2012 at 8:19 AM, Brandy
> > <brandy.norri...@yahoo.com
> > <mailto:brandy.norri...@yahoo.com>> wrote:
>
> > No, I'm not using virtual environments.
>
> > On Friday, April 13, 2012 11:51:33 PM UTC-5,
> > Jani Tiainen wrote:
>
> > Are you using virtual environments?
>
> > Since I've been doing all my django
> > development on windows last 3 years without
> > any major problems...
>
> > On Sat, Apr 14, 2012 at 6:04 AM, Brandy
> > <brandy.norri...@yahoo.com
> > <mailto:brandy.norri...@yahoo.com>> wrote:
>
> > After first installing Django, I am able
> > to use "django-admin.pystartproject
> > <projectname>" with no problem. After a
> > while, if I try to start a new project,
> > my editor opens and no files or
> > directories are created. After doing
> > LOTS of research, it turns out this is a
> > rather common problem/bug. I have tried
> > what feels like everything. I have
> > edited the PATH, checked that all
> > appropriate registry entries are
> > "python.exe" "%1" %* (I even tried %%),
> > I've tried variations of "django-admin
> > startproject" and "python django-admin
> > startproject". The only thing that has
> > worked so far is reinstalling Django.
> > However, I wind up encountering the same
> > problem eventually. Does anyone have a
> > permanent fix not listed here? I am
> > running Python27, Django 1.4, and
> > Windows 7. Thanks in advance.
>
> > --
> > You received this message because you
> > are subscribed to the Google Groups
> > "Django users" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/__ms____g/django-users/-/__G4kncIixzIAJ
> > <https://groups.google.com/d/msg/django-users/-/G4kncIixzIAJ>.
> > To post to this group, send email to
> > django-users@googlegroups.com
> > <mailto:django-users@googlegroups.com>.
> > To unsubscribe from this group, send
> > email to
> > django-users+unsubscribe@__googl____egroups.com
> > <mailto:django-users%2Bunsubscribe@googlegroups.com>.
> > For more options, visit this group at
> > http://groups.google.com/__group____/django-users?hl=en
> > <http://groups.google.com/group/django-users?hl=en>.
>
> > --
> > Jani Tiainen
>
> > - Well planned is half done, and a half done
> > has been sufficient before...
>
> > --
> > You received this message because you are
> > subscribed to the Google Groups "Django users"
> > group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/__ms__g/django-users/-/__MFfD9AEjNQUJ
> > <https://groups.google.com/d/msg/django-users/-/MFfD9AEjNQUJ>.
>
> > To post to this group, send email to
> > django-users@googlegroups.com
> > <mailto:django-users@googlegroups.com>.
> > To unsubscribe from this group, send email to
> > django-users+unsubscribe@__googl__egroups.com
> > <mailto:django-users%2Bunsubscribe@googlegroups.com>.
> > For more options, visit this group at
> > http://groups.google.com/__group__/django-users?hl=en
> > <http://groups.google.com/group/django-users?hl=en>.
>
> > --
> > Jani Tiainen
>
> > - Well planned is half done, and a half done has
> > been sufficient before...
>
> > --
> > You received this message because you are subscribed to
> > the Google Groups "Django users" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/__msg/django-users/-/__wTBEfVJGr6AJ
> > <https://groups.google.com/d/msg/django-users/-/wTBEfVJGr6AJ>.
>
> > To post to this group, send email to
> > django-users@googlegroups.com
> > <mailto:django-users@googlegroups.com>.
> > To unsubscribe from this group, send email to
> > django-users+unsubscribe@__googlegroups.com
> > <mailto:django-users%2Bunsubscribe@googlegroups.com>.
> > For more options, visit this group at
> > http://groups.google.com/__group/django-users?hl=en
> > <http://groups.google.com/group/django-users?hl=en>.
>
> > --
> > Jani Tiainen
>
> > - Well planned is half done, and a half done has been
> > sufficient before...
>
> > --
> > You received this message because you are subscribed to the
> > Google Groups "Django users" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msg/django-users/-/s6D9Wg1pl50J
> > <https://groups.google.com/d/msg/django-users/-/s6D9Wg1pl50J>.
>
> > To post to this group, send email to
> > django-users@googlegroups.com
> > <mailto:django-users@googlegroups.com>.
> > To unsubscribe
>
> ...
>
> leer más »
--
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment