Django

Code

Changeset 93

Show
Ignore:
Timestamp:
07/15/05 22:48:36 (3 years ago)
Author:
adrian
Message:

'django-admin.py init' now creates a site in the sites table, and project_template.settings.main.SITE_ID is now set to 1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/bin/django-admin.py

    r88 r93  
    272272        for sql in get_sql_create(core) + get_sql_create(auth) + get_sql_initial_data(core) + get_sql_initial_data(auth): 
    273273            cursor.execute(sql) 
     274        cursor.execute("INSERT INTO %s (domain, name) VALUES ('mysite.com', 'My Django site')" % core.Site._meta.db_table) 
    274275    except Exception, e: 
    275276        sys.stderr.write("Error: The database couldn't be initialized. Here's the full exception:\n%s\n" % e) 
  • django/trunk/django/conf/project_template/settings/main.py

    r83 r93  
    1717DATABASE_HOST = ''             # Set to empty string for localhost 
    1818 
     19SITE_ID = 1 
     20 
    1921# Absolute path to the directory that holds media. 
    2022# Example: "/home/media/media.lawrence.com/"