jborup wrote:
> HI.... this might be a linux question, more then a django... but I
> will try.. sorry....
>
> I'm getting tired of, every time that I want to do some django, to
> open several shells, and cd... to the directory, open files, launch
> server...
>
> I would like to make a script that opens shells/terminales in the
> proper places, or launches the django server...
>
> like:
>
> sh "cd /<django project>"
> sh "cd /<django projcet>, python manage.py runserver"
> sh.....
>
> you got the picture...
> but I have problems with creating a 'new shell' from within a shell/
> shellscript.
>
> Do anyone have an idear ???
>
> Regards Jørn
> I running RH.

I'd go for something like this:

cd $DJANGO_PROJECT_DIR
python manage.py runserver >> /dev/null && #silence the output of the
server so it doesn't mess with your shell
python manage.py shell

Usually I just open gnome-term, cd to my project directory then create
a new tab (I usually just have 'runserver' in one and 'shell' in the
other). The new tabs spawn in the current working directory of the
first tab saving a CD.


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

Reply via email to