pyramidを使用してwebアプリケーション作成 2 〜プロジェクト作成〜

  • pcreateコマンドでプロジェクト作成 ※プロジェクト名はtutorial
$ ./bin/pcreate -s starter tutorial
Creating directory /Users/******/Development/Python/env/tutorial
  Recursing into +package+
    Creating /Users/******/Development/Python/env/tutorial/tutorial/
    Copying __init__.py to /Users/******/Development/Python/env/tutorial/tutorial/__init__.py
    Recursing into static
      Creating /Users/******/Development/Python/env/tutorial/tutorial/static/
      Copying favicon.ico to /Users/******/Development/Python/env/tutorial/tutorial/static/favicon.ico
      Copying footerbg.png to /Users/******/Development/Python/env/tutorial/tutorial/static/footerbg.png
      Copying headerbg.png to /Users/******/Development/Python/env/tutorial/tutorial/static/headerbg.png
      Copying ie6.css to /Users/******/Development/Python/env/tutorial/tutorial/static/ie6.css
      Copying middlebg.png to /Users/******/Development/Python/env/tutorial/tutorial/static/middlebg.png
      Copying pylons.css to /Users/******/Development/Python/env/tutorial/tutorial/static/pylons.css
      Copying pyramid-small.png to /Users/******/Development/Python/env/tutorial/tutorial/static/pyramid-small.png
      Copying pyramid.png to /Users/******/Development/Python/env/tutorial/tutorial/static/pyramid.png
      Copying transparent.gif to /Users/******/Development/Python/env/tutorial/tutorial/static/transparent.gif
    Recursing into templates
      Creating /Users/******/Development/Python/env/tutorial/tutorial/templates/
      Copying mytemplate.pt to /Users/******/Development/Python/env/tutorial/tutorial/templates/mytemplate.pt
    Copying tests.py_tmpl to /Users/******/Development/Python/env/tutorial/tutorial/tests.py
    Copying views.py_tmpl to /Users/******/Development/Python/env/tutorial/tutorial/views.py
  Copying CHANGES.txt_tmpl to /Users/******/Development/Python/env/tutorial/CHANGES.txt
  Copying MANIFEST.in_tmpl to /Users/******/Development/Python/env/tutorial/MANIFEST.in
  Copying README.txt_tmpl to /Users/******/Development/Python/env/tutorial/README.txt
  Copying development.ini_tmpl to /Users/******/Development/Python/env/tutorial/development.ini
  Copying production.ini_tmpl to /Users/******/Development/Python/env/tutorial/production.ini
  Copying setup.cfg_tmpl to /Users/******/Development/Python/env/tutorial/setup.cfg
  Copying setup.py_tmpl to /Users/******/Development/Python/env/tutorial/setup.py
Welcome to Pyramid.  Sorry for the convenience.

tutorialプロジェクトが作成された。

$ ../bin/python setup.py develop
running develop
running egg_info
creating tutorial.egg-info
writing requirements to tutorial.egg-info/requires.txt
writing tutorial.egg-info/PKG-INFO
writing top-level names to tutorial.egg-info/top_level.txt
writing dependency_links to tutorial.egg-info/dependency_links.txt
writing entry points to tutorial.egg-info/entry_points.txt
writing manifest file 'tutorial.egg-info/SOURCES.txt'
reading manifest file 'tutorial.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.rst'
warning: no files found matching '*.jpg' under directory 'tutorial'
warning: no files found matching '*.txt' under directory 'tutorial'
warning: no files found matching '*.mak' under directory 'tutorial'
warning: no files found matching '*.mako' under directory 'tutorial'
warning: no files found matching '*.js' under directory 'tutorial'
warning: no files found matching '*.html' under directory 'tutorial'
warning: no files found matching '*.xml' under directory 'tutorial'
writing manifest file 'tutorial.egg-info/SOURCES.txt'
running build_ext
Creating /Users/******/Development/Python/env/lib/python2.7/site-packages/tutorial.egg-link (link to .)
Adding tutorial 0.0 to easy-install.pth file

Installed /Users/******/Development/Python/env/tutorial
Processing dependencies for tutorial==0.0
Searching for waitress
Reading http://pypi.python.org/simple/waitress/
Reading https://github.com/Pylons/waitress
Reading https://github.com/mcdonc/waitress
Best match: waitress 0.7
Downloading http://pypi.python.org/packages/source/w/waitress/waitress-0.7.tar.gz#md5=750d2f8eaba81ce47435d962b414b561
Processing waitress-0.7.tar.gz
Running waitress-0.7/setup.py -q bdist_egg --dist-dir /var/folders/5g/0fbkx7t9129286wsbpgqf_ch0000gn/T/easy_install-tXCKgJ/waitress-0.7/egg-dist-tmp-wSOIzc
Adding waitress 0.7 to easy-install.pth file

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/waitress-0.7-py2.7.egg
Searching for pyramid-debugtoolbar
Reading http://pypi.python.org/simple/pyramid_debugtoolbar/
Reading http://docs.pylonsproject.org
Best match: pyramid-debugtoolbar 0.9.8
Downloading http://pypi.python.org/packages/source/p/pyramid_debugtoolbar/pyramid_debugtoolbar-0.9.8.tar.gz#md5=a83133089d3580e0ae3e453b6bd07b91
Processing pyramid_debugtoolbar-0.9.8.tar.gz
Running pyramid_debugtoolbar-0.9.8/setup.py -q bdist_egg --dist-dir /var/folders/5g/0fbkx7t9129286wsbpgqf_ch0000gn/T/easy_install-MveTGG/pyramid_debugtoolbar-0.9.8/egg-dist-tmp-F6DPrY
Adding pyramid-debugtoolbar 0.9.8 to easy-install.pth file

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/pyramid_debugtoolbar-0.9.8-py2.7.egg
Searching for Pygments
Reading http://pypi.python.org/simple/Pygments/
Reading http://pygments.org/
Reading http://pygments.pocoo.org/
Best match: Pygments 1.4
Downloading http://pypi.python.org/packages/2.7/P/Pygments/Pygments-1.4-py2.7.egg#md5=acbdde4dae30efaba8cfa86dcb6070f2
Processing Pygments-1.4-py2.7.egg
creating /Users/******/Development/Python/env/lib/python2.7/site-packages/Pygments-1.4-py2.7.egg
Extracting Pygments-1.4-py2.7.egg to /Users/******/Development/Python/env/lib/python2.7/site-packages
Adding Pygments 1.4 to easy-install.pth file
Installing pygmentize script to /Users/******/Development/Python/env/bin

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/Pygments-1.4-py2.7.egg
Searching for pyramid==1.3a5
Best match: pyramid 1.3a5
Processing pyramid-1.3a5-py2.7.egg
pyramid 1.3a5 is already the active version in easy-install.pth
Installing ptweens script to /Users/******/Development/Python/env/bin
Installing proutes script to /Users/******/Development/Python/env/bin
Installing pshell script to /Users/******/Development/Python/env/bin
Installing prequest script to /Users/******/Development/Python/env/bin
Installing pviews script to /Users/******/Development/Python/env/bin
Installing bfg2pyramid script to /Users/******/Development/Python/env/bin
Installing pcreate script to /Users/******/Development/Python/env/bin
Installing pserve script to /Users/******/Development/Python/env/bin

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/pyramid-1.3a5-py2.7.egg
Searching for setuptools==0.6c11
Best match: setuptools 0.6c11
Processing setuptools-0.6c11-py2.7.egg
setuptools 0.6c11 is already the active version in easy-install.pth
Installing easy_install script to /Users/******/Development/Python/env/bin
Installing easy_install-2.7 script to /Users/******/Development/Python/env/bin

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
Searching for PasteDeploy==1.5.0
Best match: PasteDeploy 1.5.0
Processing PasteDeploy-1.5.0-py2.7.egg
PasteDeploy 1.5.0 is already the active version in easy-install.pth

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/PasteDeploy-1.5.0-py2.7.egg
Searching for translationstring==0.4
Best match: translationstring 0.4
Processing translationstring-0.4-py2.7.egg
translationstring 0.4 is already the active version in easy-install.pth

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/translationstring-0.4-py2.7.egg
Searching for venusian==1.0a2
Best match: venusian 1.0a2
Processing venusian-1.0a2-py2.7.egg
venusian 1.0a2 is already the active version in easy-install.pth

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/venusian-1.0a2-py2.7.egg
Searching for zope.deprecation==3.5.0
Best match: zope.deprecation 3.5.0
Processing zope.deprecation-3.5.0-py2.7.egg
zope.deprecation 3.5.0 is already the active version in easy-install.pth

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/zope.deprecation-3.5.0-py2.7.egg
Searching for zope.interface==3.8.0
Best match: zope.interface 3.8.0
Processing zope.interface-3.8.0-py2.7-macosx-10.7-intel.egg
zope.interface 3.8.0 is already the active version in easy-install.pth

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/zope.interface-3.8.0-py2.7-macosx-10.7-intel.egg
Searching for repoze.lru==0.4
Best match: repoze.lru 0.4
Processing repoze.lru-0.4-py2.7.egg
repoze.lru 0.4 is already the active version in easy-install.pth

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/repoze.lru-0.4-py2.7.egg
Searching for WebOb==1.2b2
Best match: WebOb 1.2b2
Processing WebOb-1.2b2-py2.7.egg
WebOb 1.2b2 is already the active version in easy-install.pth

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/WebOb-1.2b2-py2.7.egg
Searching for Mako==0.5.0
Best match: Mako 0.5.0
Processing Mako-0.5.0-py2.7.egg
Mako 0.5.0 is already the active version in easy-install.pth
Installing mako-render script to /Users/******/Development/Python/env/bin

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/Mako-0.5.0-py2.7.egg
Searching for Chameleon==2.7.2
Best match: Chameleon 2.7.2
Processing Chameleon-2.7.2-py2.7.egg
Chameleon 2.7.2 is already the active version in easy-install.pth

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/Chameleon-2.7.2-py2.7.egg
Searching for MarkupSafe==0.15
Best match: MarkupSafe 0.15
Processing MarkupSafe-0.15-py2.7-macosx-10.7-intel.egg
MarkupSafe 0.15 is already the active version in easy-install.pth

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/MarkupSafe-0.15-py2.7-macosx-10.7-intel.egg
Finished processing dependencies for tutorial==0.0