| # Configuration | | # Configuration |
| | | |
| Now change into the directory communitydraft/commu | | Now change into the directory communitydraft/commu |
| nity/ and create a file called | | nity/ and create a file called |
| settings_local.py and configure the database setti | | settings_local.py and configure the database setti |
| ngs: | | ngs: |
| | | |
n | DATABASE_ENGINE = 'postgresql' # 'postgr | n | DATABASE_ENGINE = 'postgresql' # 'postgresql |
| esql', 'mysql', 'sqlite3' or 'ado_mssql'. | | ', 'mysql', 'sqlite3' or |
| | | # 'ado_mssql' |
| | | .
|
| DATABASE_NAME = 'communitydraft' # Or path | | DATABASE_NAME = 'communitydraft' # Or path to |
| to database file if using sqlite3. | | database file if using sqlite3. |
| DATABASE_USER = 'django' # Not use | | DATABASE_USER = 'django' # Not used wi |
| d with sqlite3. | | th sqlite3. |
| DATABASE_PASSWORD = 'test' # Not use | | DATABASE_PASSWORD = 'test' # Not used wi |
| d with sqlite3. | | th sqlite3. |
| DATABASE_HOST = '127.0.0.1' # Set to | | DATABASE_HOST = '127.0.0.1' # Set to empt |
| empty string for localhost. Not used with sqlite3. | | y string for localhost. Not |
| | | |
| | | # used with s |
| | | qlite3.
|
| DATABASE_PORT = '' # Set to | | DATABASE_PORT = '' # Set to empt |
| empty string for default. Not used with sqlite3. | | y string for default. Not |
| | | # used with s |
| | | qlite3.
|
| | | |
| # Setup | | # Setup |
| | | |
t | After you completed this configuration (and config | t | After you completed this configuration (and config |
| ured your database accordingly) you can create the | | ured your database accordingly) |
| database tables by running: | | |
| | | you can create the database tables by running:
|
| | | |
| ./manage.py syncdb | | ./manage.py syncdb |
| | | |
| | | |
| from the same directory. In the end you will be as | | from the same directory. In the end you will be as |
| ked to create a superuser | | ked to create a superuser |