Re: call shell script from Django web service

2010-10-20 Thread Elie Zedeck RANDRIAMIANDRIRAY
If I were you, I would first investigate why is the script failing. Then,
when you know why it's failing, you could make a workaround.

It is normally possible to run external apps from Django, because it's just
Python. You simply need to give your script the correct set of environment
for it to work properly.

Most of the time, lack of some directives in the environments is the cause
of external apps not running.

On Wed, Oct 20, 2010 at 9:47 PM, jintao  wrote:

> Hi all,
>
> I implemented some web service with Django framework.  I need this
> service to execute some shell script on the server.
>
> I have already tried os.system(), which works in python terminal, but
> doesn't work in Django framework.
>
> Anyone could show some guidance here?
>
> Thanks tons!
>
> jintao
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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



Re: Heriter charField

2010-10-20 Thread Elie Zedeck RANDRIAMIANDRIRAY
Je suis un débutant en Django, mais je pense que tu doit utiliser un autre
widget pour ton mot de passe. Par exemple:

password = CharField(widget=PasswordInput)

D'autres widget ici: http://docs.djangoproject.com/en/dev/ref/forms/widgets/

2010/10/20 updo 

> Bonjour à tout le monde
> Je voudrai creer une classe passwordField qui va heriter de la classe
> charField afin de crypter les mots dans la base de donnée , je
> voudrai  savoir quelles sont les méthodes de la classe faudra
> redéfinir pour que quand je cree une instance de la classe
> passwordField , il prend en parametre le mot de passe en clair , le
> crype et le sauve dans la bdd .De même quand j'affiche un objet un
> objet passwordField ,il recupere le mot de passe crypte au niveau de
> la base , le decrypte et me l'affiche en claire . j'ai deja mes
> methodes  pour crypter et  decrypter du texte
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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