n | CommunityDraft is an example website which uses th | n | CommunityDraft is an example website which uses th |
| e SCT applications. It is basically not just a dra | | e SCT applications.
|
| ft but a full blown website which is used to provi | | |
| de http://sct.sphene.net (I'm currently only using | | |
| a couple of different settings and 2 overloaded t | | |
| emplates to add google analytics and the bookmark | | |
| link below the navigation)
| | |
| | | It is basically not just a draft but a full blown |
| | | website which is used to
|
| | | provide http://sct.sphene.net (I'm currently only |
| | | using a couple of different
|
| | | settings and 2 overloaded templates to add google |
| | | analytics and the bookmark
|
| | | link below the navigation)
|
| | | |
| # Download | | # Download |
| | | |
n | To get the CommunityDraft up and running is very e | n | To get the CommunityDraft up and running is very e |
| asy actually. After you've got python and django i | | asy actually. After you've
|
| nstalled simply checkout 'communitytools' and 'com | | |
| munitydraft' from subversion (see [Downloads]) int | | |
| o the same directory (or download a release).
| | |
| | | got python and django installed simply checkout 'c |
| | | ommunitytools' and
|
| | | 'communitydraft' from subversion (see [Downloads]) |
| | | into the same directory
|
| | | (or download a release).
|
| | | |
| # Configuration | | # Configuration |
| | | |
n | Now change into the directory communitydraft/commu | n | Now change into the directory communitydraft/commu |
| nity/ and create a file called settings_local.py a | | nity/ and create a file called |
| nd configure the database settings: | | |
| | | settings_local.py and configure the database setti |
| | | ngs:
|
| | | |
| DATABASE_ENGINE = 'postgresql' # 'postgr | | DATABASE_ENGINE = 'postgresql' # 'postgr |
| esql', 'mysql', 'sqlite3' or 'ado_mssql'. | | esql', 'mysql', 'sqlite3' or 'ado_mssql'. |
| DATABASE_NAME = 'communitydraft' # Or path | | DATABASE_NAME = 'communitydraft' # Or path |
| to database file if using sqlite3. | | to database file if using sqlite3. |
| DATABASE_USER = 'django' # Not use | | DATABASE_USER = 'django' # Not use |
| d with sqlite3. | | d with sqlite3. |
| DATABASE_PASSWORD = 'test' # Not use | | DATABASE_PASSWORD = 'test' # Not use |
| d with sqlite3. | | d with sqlite3. |
| After you completed this configuration (and config | | After you completed this configuration (and config |
| ured your database accordingly) you can create the | | ured your database accordingly) you can create the |
| database tables by running: | | database tables by running: |
| | | |
| ./manage.py syncdb | | ./manage.py syncdb |
| | | |
| | | |
n | from the same directory. In the end you will be as | n | from the same directory. In the end you will be as |
| ked to create a superuser account - you should do | | ked to create a superuser |
| this. | | |
| | | account - you should do this.
|
| | | |
| # Running | | # Running |
| | | |
| And as a last step.. start the project: | | And as a last step.. start the project: |
| | | |
| ./manage.py runserver | | ./manage.py runserver |
| | | |
t | By default this will start the server running on p | t | By default this will start the server running on p |
| ort 8000 so access your new cool website at: http: | | ort 8000 so access your new |
| //127.0.0.1:8000 | | |
| | | cool website at: http://127.0.0.1:8000
|
| | | |