[Tutor] Setting Network settings from Python/Djang
ian.douglas at iandouglas.com
Sun Jan 22 13:30:41 CET 2012
Well DNS would be easy, just modify /etc/resolve.conf ... the other files
you need to modify would depend on your distro because they all do
something slightly different it seems.
On Jan 22, 2012 3:25 AM, "Ganesh Kumar" <bugcy013 at gmail.com> wrote:
> I'm working on a simple web interface for an embedded computer. The
> computer will ship with a static default ip that will then need to be
> updated by the install tech who may not be tech/linux savvy.
> Basicly I need to change the following system settings from a Django app.
> 1. IP Addres
> 2. Subnet
> 3. Default Gateway
> 4. DNS Servers 1&2
> I realize that I can could just overwrite the config files in linux but I
> was wondering if there is a more "Python" way of doing it.
> I want any ready to use module is there, please guide me.
> Did I learn something today? If not, I wasted it.
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor