just import it:

python manage.py shell
import this_is_a_module_I_made

in python, code will be executed on import.
cheers



From: [email protected]
Date: Wed, 2 May 2012 19:11:23 +0530
Subject: Re: a very simple beginners question
To: [email protected]

1. Can you please tell us what the context is or why you want to do that?
2. I suppose you might want to check the source of manage.py and change the way 
arguments to this file are handled. 





On Wed, May 2, 2012 at 6:29 PM, alon <[email protected]> wrote:


running



$python manager.py shell



opens a python shell

is there any way (a parameter) to make the manager run a python file

with my commands??



thanks



--

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.





-- 
http://spawgi.wordpress.com
We can do it and do it better.




-- 

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.
                                          

-- 
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