pinax : install on virtualenvwrapper-ed Debian Squeeze (Worked!)

Virtualenvのイネーブル

virtualenvwrapperが入っていてたとしても専用コマンドでイネーブル。

hdknr@debpinax:~$ python pinax/trunk/scripts/pinax-boot.py .virtualenvs/pinax
New python executable in .virtualenvs/pinax/bin/python
Installing setuptools…………done.
Fetching Pinax from http://svn.pinaxproject.com/pinax/trunk to .virtualenvs/pinax/src/pinax
  Installing pip
  warning: no previously-included files matching ‘*.txt’ found under directory ‘docs/_build’
  no previously-included directories found matching ‘docs/_build/_sources’
  zip_safe flag not set; analyzing archive contents…
  pip: module references __file__
  Installing Django 1.0.2
  Installing Pinax
Now activate the newly created virtualenv by running in ‘.virtualenvs/pinax’:
  ‘source bin/activate’ on Linux/Unix/Mac OS or ‘\bin\activate.bat’ on Windows
Pinax environment created successfully.

hdknr@debpinax:~$ workon
openid
pinax

workon してインストール

virtualenvwrapperが使えます。

hdknr@debpinax:~$ workon pinax
(pinax)hdknr@debpinax:~$

(pinax)hdknr@debpinax:~$ more .virtualenvs/pinax/src/pinax/requirements/external_apps.txt
# Get all requirements formerly known as "external_libs" explicitly
-r libs.txt

# Already released apps
django-ajax-validation
django-announcements
django-avatar
django-dbtemplates
django-microblogging
django-notification
django-pagination
django-robots
django-messages
http://django-photologue.googlecode.com/files/photologue-2.1.zip
django-wikiapp==0.1.2

# Apps that are installed "directly" non-editable because they lack a
# setuptools setup.py, are not released on pypi or don’t have a recent release
http://django-tagging.googlecode.com/svn/trunk/
http://django-voting.googlecode.com/svn/trunk/
http://django-timezones.googlecode.com/svn/trunk/
http://django-command-extensions.googlecode.com/svn/trunk/
http://django-db-log.googlecode.com/svn/trunk/
http://django-page-cms.googlecode.com/svn/trunk/
http://django-mptt.googlecode.com/svn/trunk/

# Do editable checkouts (yay!)
-e svn+http://django-bookmarks.googlecode.com/svn/trunk#egg=django-bookmarks
-e svn+http://django-email-confirmation.googlecode.com/svn/trunk#egg=django-email-confirmation
-e svn+http://django-flag.googlecode.com/svn/trunk#egg=django-flag
-e svn+http://django-friends.googlecode.com/svn/trunk#egg=django-friends
-e svn+http://django-gravatar.googlecode.com/svn/trunk#egg=django-gravatar
-e svn+http://django-mailer.googlecode.com/svn/trunk#egg=django-mailer
-e svn+http://django-oembed.googlecode.com/svn/trunk#egg=django-oembed
-e svn+http://django-schedule.googlecode.com/svn/trunk#egg=django-schedule
-e svn+http://django-threadedcomments.googlecode.com/svn/trunk#egg=django-threadedcomments
-e svn+http://django-locations.googlecode.com/svn/trunk#egg=django-locations
-e svn+http://django-uni-form.googlecode.com/svn/trunk#egg=django-uni-form
-e svn+http://django-swaps.googlecode.com/svn/trunk#egg=django-swaps
-e svn+http://django-app-plugins.googlecode.com/svn/trunk#egg=django-app-plugins
-e git://github.com/brosner/django-openid.git#egg=django-openid
-e git://github.com/robhudson/django-debug-toolbar.git#egg=django-debug-toolbar
-e git://github.com/jezdez/django-feedutil.git#egg=django-feedutil

(pinax)hdknr@debpinax:~$ pip install –requirement .virtualenvs/pinax/src/pinax/requirements/external_apps.txt

(pinax)hdknr@debpinax:~$ yolk -l

BeautifulSoup   - 3.1.0.1      - active
Creoleparser    - 0.6.1        - active
Django          - 1.1          - active
Genshi          - 0.5.1        - active
PIL             - 1.1.6        - active development (/usr/lib/python2.5/site-packages/PIL)
Pinax           - 0.7.0alpha1  - active development (/home/hdknr/.virtualenvs/pinax/src/pinax)
Pygments        - 1.1.1        - active
Python          - 2.5.4        - active development (/usr/lib/python2.5/lib-dynload)
diff-match-patch - 20090110     - active
django-ajax-validation - 0.1.3        - active
django-announcements - 0.1.0        - active
django-app-plugins - 0.1.0        - active development (/home/hdknr/.virtualenvs/pinax/src/django-app-plugins)
django-atompub  - 0.1.0dev     - active
django-avatar   - 1.0.1        - active
django-bookmarks - 0.1.0dev     - active development (/home/hdknr/.virtualenvs/pinax/src/django-bookmarks)
django-db-log   - 1.0.1        - active
django-dbtemplates - 0.5.8        - active
django-debug-toolbar - 0.8.1.alpha  - active development (/home/hdknr/.virtualenvs/pinax/src/django-debug-toolbar)
django-email-confirmation - 0.1.0        - active development (/home/hdknr/.virtualenvs/pinax/src/django-email-confirmation)
django-extensions - 0.4          - active
django-feedutil - 0.1.0        - active development (/home/hdknr/.virtualenvs/pinax/src/django-feedutil)
django-flag     - 0.1.0        - active development (/home/hdknr/.virtualenvs/pinax/src/django-flag)
django-friends  - 0.1.0        - active development (/home/hdknr/.virtualenvs/pinax/src/django-friends)
django-gravatar - 0.1.0        - active development (/home/hdknr/.virtualenvs/pinax/src/django-gravatar)
django-locations - 0.1.0        - active development (/home/hdknr/.virtualenvs/pinax/src/django-locations)
django-mailer   - 0.1.0pre     - active development (/home/hdknr/.virtualenvs/pinax/src/django-mailer)
django-messages - 0.4.2        - active
django-microblogging - 0.1.2        - active
django-mptt     - 0.3-pre      - active
django-notification - 0.1.4        - active
django-oembed   - 0.1.0        - active development (/home/hdknr/.virtualenvs/pinax/src/django-oembed)
django-openid   - 0.2.0        - active development (/home/hdknr/.virtualenvs/pinax/src/django-openid)
django-page-cms - 1.0.7        - active
django-pagination - 1.0.5        - active
django-robots   - 0.6.1        - active
django-schedule - 0.1.0        - active development (/home/hdknr/.virtualenvs/pinax/src/django-schedule)
django-swaps    - 0.5.3        - active development (/home/hdknr/.virtualenvs/pinax/src/django-swaps)
django-tagging  - 0.4-pre      - active
django-threadedcomments - 0.5.0dev     - active development (/home/hdknr/.virtualenvs/pinax/src/django-threadedcomments)
django-uni-form - 0.2          - active development (/home/hdknr/.virtualenvs/pinax/src/django-uni-form)
django-voting   - 0.1          - active
django-wikiapp  - 0.1.2        - active
docutils        - 0.5          - active
elementtree     - 1.2.7-20070827-preview - active
feedparser      - 4.1          - active
gdata           - 2.0.2        - active
geopy           - 0.93dev-r0   - active
photologue      - 2.1          - active
pip             - 0.4          - active
python-dateutil - 1.4.1        - active
python-openid   - 2.2.4        - active
python-twitter  - 0.6          - active
python-yadis    - 1.1.0        - active
pytz            - 2009a        - active
reportbug       - 4.8          - active development (/usr/lib/pymodules/python2.5)
setuptools-git  - 0.3.4        - non-active development (/home/hdknr/.virtualenvs/pinax/src/pinax/setuptools_git-0.3.4-py2.5.egg)
setuptools      - 0.6c9        - non-active development (/usr/lib/python2.5/site-packages)
setuptools      - 0.6c9        - non-active development (/usr/lib/python2.5/site-packages)
setuptools      - 0.6c9        - active
setuptools      - 0.6c9        - active
simplejson      - 2.0.9        - active
textile         - 2.1.3        - active
timezones       - 0.1.0pre     - active
virtualenv      - 1.3.3        - active development (/usr/lib/python2.5/site-packages)
virtualenvwrapper - 1.20         - active development (/usr/lib/python2.5/site-packages/virtualenvwrapper-1.20-py2.5.egg)
vobject         - 0.8.1c       - active
wsgiref         - 0.1.2        - active development (/usr/lib/python2.5)
ybrowserauth    - 1.2          - active
yolk            - 0.4.1        - active

 

http://bit.ly/just_after_mkvirtualenv と比べてみましょう。

サイト作成

(pinax)hdknr@debpinax:~/pinax$ pinax-clone-project complete_project mysite
Copying your project to its new location
Updating settings.py for your new project
Renaming your deployment files
Finished cloning your project, now you may enjoy Pinax!

動作確認

(pinax)hdknr@debpinax:~/pinax$ cd mysite/

(pinax)hdknr@debpinax:~/pinax/mysite$ grep DATABASE_ENGINE settings.py
DATABASE_ENGINE = ‘sqlite3’    # ‘postgresql_psycopg2’, ‘postgresql’, ‘mysql’, ‘sqlite3’ or ‘ado_mssql’.

(pinax)hdknr@debpinax:~/pinax/mysite$ python manage.py syncdb

Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table notification_noticetype
Creating table notification_noticesetting
Creating table notification_notice
Creating table notification_noticequeuebatch
Creating table notification_observeditem
Creating table emailconfirmation_emailaddress
Creating table emailconfirmation_emailconfirmation
Creating table robots_url
Creating table robots_rule
Creating table django_template
Creating table friends_contact
Creating table friends_friendship
Creating table friends_joininvitation
Creating table friends_friendshipinvitation
Creating table mailer_message
Creating table mailer_dontsendentry
Creating table mailer_messagelog
Creating table messages_message
Creating table announcements_announcement
Creating table oembed_providerrule
Creating table oembed_storedoembed
Creating table djangodblog_errorbatch
Creating table djangodblog_error
Creating table threadedcomments_threadedcomment
Creating table threadedcomments_freethreadedcomment
Creating table threadedcomments_testmodel
Creating table wiki_article
Creating table wiki_changeset
Creating table swaps_offer
Creating table swaps_swap
Creating table app_plugins_pluginpoint
Creating table app_plugins_plugin
Creating table app_plugins_userpluginpreference
Creating table votes
Creating table tagging_tag
Creating table tagging_taggeditem
Creating table bookmarks_bookmark
Creating table bookmarks_bookmarkinstance
Creating table blog_post
Creating table photologue_gallery
Creating table photologue_galleryupload
Creating table photologue_photo
Creating table photologue_photoeffect
Creating table photologue_watermark
Creating table photologue_photosize
Creating table avatar_avatar
Creating table flag_flaggedcontent
Creating table flag_flaginstance
Creating table schedule_rule
Creating table schedule_event
Creating table schedule_calendar
Creating table schedule_calendarrelation
Creating table schedule_eventrelation
Creating table microblogging_tweet
Creating table microblogging_tweetinstance
Creating table microblogging_following
Creating table locations_location
Creating table profiles_profile
Creating table account_account
Creating table account_otherserviceinfo
Creating table tribes_tribe
Creating table tribes_topic
Creating table projects_project
Creating table projects_projectmember
Creating table projects_topic
Creating table projects_task
Creating table photos_photoset
Creating table photos_image
Creating table photos_pool
Creating table django_admin_log
Creating table django_openid_nonce
Creating table django_openid_association
Creating table django_openid_useropenidassociation

You just installed Django’s auth system, which means you don’t have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (Leave blank to use ‘hdknr’): hdknr
E-mail address: hdknr@hdknr.deb
Password:
Password (again):
Superuser created successfully.
Installing index for auth.Permission model
Installing index for auth.Message model
Installing index for notification.NoticeSetting model
Installing index for notification.Notice model
Installing index for notification.ObservedItem model
Installing index for emailconfirmation.EmailAddress model
Installing index for emailconfirmation.EmailConfirmation model
Installing index for friends.Contact model
Installing index for friends.Friendship model
Installing index for friends.JoinInvitation model
Installing index for friends.FriendshipInvitation model
Installing index for messages.Message model
Installing index for announcements.Announcement model
Installing index for djangodblog.ErrorBatch model
Installing index for djangodblog.Error model
Installing index for threadedcomments.ThreadedComment model
Installing index for threadedcomments.FreeThreadedComment model
Installing index for wiki.Article model
Installing index for wiki.ChangeSet model
Installing index for swaps.Offer model
Installing index for swaps.Swap model
Installing index for app_plugins.Plugin model
Installing index for app_plugins.UserPluginPreference model
Installing index for voting.Vote model
Installing index for tagging.TaggedItem model
Installing index for bookmarks.Bookmark model
Installing index for bookmarks.BookmarkInstance model
Installing index for blog.Post model
Installing index for photologue.GalleryUpload model
Installing index for photologue.Photo model
Installing index for photologue.PhotoSize model
Installing index for avatar.Avatar model
Installing index for flag.FlaggedContent model
Installing index for flag.FlagInstance model
Installing index for schedule.Event model
Installing index for schedule.Calendar model
Installing index for schedule.CalendarRelation model
Installing index for schedule.EventRelation model
Installing index for microblogging.Tweet model
Installing index for microblogging.TweetInstance model
Installing index for microblogging.Following model
Installing index for locations.Location model
Installing index for account.OtherServiceInfo model
Installing index for tribes.Tribe model
Installing index for tribes.Topic model
Installing index for projects.Project model
Installing index for projects.ProjectMember model
Installing index for projects.Topic model
Installing index for projects.Task model
Installing index for photos.Image model
Installing index for photos.Pool model
Installing index for admin.LogEntry model
Installing index for django_openid.UserOpenidAssociation model
Installing json fixture ‘initial_data’ from ‘/home/hdknr/.virtualenvs/pinax/src/django-oembed/oembed/fixtures’.
Installing json fixture ‘initial_data’ from ‘/home/hdknr/pinax/mysite/apps/photos/fixtures’.
Installed 18 object(s) from 2 fixture(s)

 

WS000006

WS000007

カテゴリー: 未分類 パーマリンク

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中