noob: reloading modified python file within Python Shell
Robert Kern
robert.kern at gmail.com
Mon Sep 10 16:11:46 EDT 2007
johnny wrote:
> from people.models import *
>
> Now I make changes to the models.py. How do I reload this module in
> Python Shell?
import people.models
reload(people.models)
from people.models import *
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list