Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 76 and Version 77 of IdentityManagement


Ignore:
Timestamp:
07/28/06 08:25:29 (13 years ago)
Author:
fredlin
Comment:

quickstart

Legend:

Unmodified
Added
Removed
Modified
  • IdentityManagement

    v76 v77  
    1010 
    1111To begin with the tutorial, let's quick-start a learning project. Of course, everything you learn in the tutorial applies to existing projects as well. 
    12 {{{ 
    13 #!python 
    14 $ tg-admin quickstart  
    15 }}} 
    16  
    17 Name your project "identity_tutorial" and set the database uri in "identity_tutorial/dev.cfg" to point to a server and database you want to use.   
    18  
     12 
     13TurboGears currently support two provider: SQLObject(default) and SQLAlchemy. 
     14To start with SQLObject, type 
     15 
     16{{{ 
     17#!python 
     18$ tg-admin quickstart identity_tutorial 
     19}}} 
     20 
     21To start with SQLAlchemy, type 
     22{{{ 
     23#!python 
     24$ tg-admin quickstart -s identity_tutorial 
     25}}} 
     26"-s" option is used to indicate the SQLAlchemy support. 
     27 
     28 
     29Name your project "identity_tutorial".  
    1930After you specified the project name. a identity prompt will pop up: 
    2031 
     
    2334}}} 
    2435 
    25 This tutorial wouldn't go very far if we didn't enable identity, so go ahead and type "yes". Next, it will ask us to select one of providers:  
    26  
    27 {{{ 
    28 Select your provider sqlobject or sqlalchemy [sqlobject]: 
    29 }}} 
    30  
    31 We should choose SQL Object, this will generate the identity-related code.  
    32  
     36This tutorial wouldn't go very far if we didn't enable identity, so go ahead and type "yes".  
     37The quickstart will generate the new project(if not exist) and append the identity-related code.  
     38 
     39set the database uri in "identity_tutorial/dev.cfg" to point to a server and database you want to use.   
    3340 
    3441== B. Setting up Identity ==