Changeset 1774


Ignore:
Timestamp:
Jan 24, 2011, 11:07:50 PM (14 years ago)
Author:
mitchb
Message:
Fix Django autoinstaller

I know it's been a while since we had one of these commits
every few days, but...

The format of the database settings in settings.py changed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/locker-dev/locker/deploy/bin/django

    r1414 r1774  
    5656  if (/Your Name/) {
    5757    $_ = "    ('$USER', '$email'),";
    58   } elsif (/^DATABASE_ENGINE/) {
    59     $_ = "DATABASE_ENGINE = 'mysql'";
    60   } elsif  (/^DATABASE_NAME/) {
    61     $_ = "DATABASE_NAME = '$sqldb'";
    62   } elsif (/^DATABASE_USER/) {
    63     $_ = "DATABASE_USER = '$sqluser'";
    64   } elsif (/^DATABASE_PASSWORD/) {
    65     $_ = "DATABASE_PASSWORD = '$sqlpass'";
    66   } elsif (/^DATABASE_HOST/) {
    67     $_ = "DATABASE_HOST = '$sqlhost'";
     58  } elsif (/'ENGINE'/) {
     59    $_ = "        'ENGINE': 'django.db.backends.mysql',";
     60  } elsif  (/'NAME'/) {
     61    $_ = "        'NAME': '$sqldb',";
     62  } elsif (/'USER'/) {
     63    $_ = "        'USER': '$sqluser',";
     64  } elsif (/'PASSWORD'/) {
     65    $_ = "        'PASSWORD': '$sqlpass',";
     66  } elsif (/'HOST'/) {
     67    $_ = "        'HOST': '$sqlhost',";
    6868  } elsif (/Chicago/) {
    6969    $_ =~ s/Chicago/New_York/;
Note: See TracChangeset for help on using the changeset viewer.