Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Internet > HTTP (WWW)

    django_configdir 0.1.10

    Download button

    No screenshots available
    Downloads: 93  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Seb Potter | More programs
    GPL / FREE
    July 16th, 2011, 14:56 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django_configdir description

    A utility to create per-user, per-host configuration files for Django

    django_configdir is a tool for helping with override Django configs.

    django_confighelper on its own creates a config for the current django instance based on the current hostname, the current name of the effective uid and the current directory in which the django instance is sitting:

     config/hostname/euidname__dirname.py

    If the config already exists django_confighelper exits with a warning.

    The 'edit' subcommand attempts to start a system editor on the config. It first tries the environment variable $EDITOR and then switches to "editor" from the execution path.

    The 'print' subcommand prints the filename of the config file. This is so you can script further interactions, for example:

     echo "CONFIG_SPECIAL=True" >> $(django_confighelper print)

    The 'default' subcommand looks for a default config file in config/defaults/$user.py and if it exists, it creates a config using the values contained there in. It opens the newly created file just in case you need to change some values - like FRONTEND_PORT e.t.c

    The 'printval' subcommand prints the value of a DJANGO config setting after the config has been applied. For example:

     django_confighelper printval DATABASE_HOST

     prints out the setting of the database host.

    The 'updatesettings' subcommand appends the contents of configdir/templates.py to the end of the settings.py in the current directory. This is required to be run once (and once only), and simply adds some import statements to handle the additional import of per-instance settings files.


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    Django configs | override configs | Django configuration | Django | configs | override



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM