1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vultrでwagtailを使えるようになるまでやったこと

Posted at

#1. サーバーを借りる

  • VultrのUbuntu x64
  • python3

#2. wagtailをinstall

###installしたのも
#####pip

$ apt install python-pip
$ pip install wagtail

This version of Wagtail requires Python 3.4 or above - you are running 2.7
python3の環境にpython2.7のpipをインストールしてしまう。

#####[解決策]

  • python3用pipをインストール

    環境を分ける必要性がなかったのでこちで解決
$ sudo apt-get remove python-pip
$ sudo apt-get install python3-pip
  • virtualenvでpython2.7用環境を分ける

#####wagtail

$ pip3 install wagtail

[Error]
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'setuptools'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rgabi5yc/django-treebeard/
root@vultr:~# pip3 install --upgrade pip3 setuptools
Collecting pip3
  Could not find a version that satisfies the requirement pip3 (from versions: )
No matching distribution found for pip3

#####[解決策]

  • setuptoolsを更新する

    参考
$ pip3 install --upgrade setuptools

#3. wagtailのサイトを作成

$ wagtail start myweb

/* mywebディレクトリ内で行う */
$ python3 manage.py migrate

※myweb アプリケーションの名前

#4. サーバー起動

$ python3 manage.py runserver サーバーIP

#5. ページ確認
Screen Shot 2019-03-21 at 1.06.04.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?