Mezzanine introduction memo that I got stuck in the flow

What is Mezzanine?

It's like django's cms, a python web framework, that makes it easy to create web pages, like wordpress. (Not very detailed lol)

Environment used

Flow of environment creation

pyenv installation


$ sudo apt-get update
$ sudo apt-get install git gcc make openssl libssl-dev libbz2-dev libreadline-dev libsqlite3-dev
$ git clone git://github.com/yyuu/pyenv.git ~/.pyenv

Then write the following in .bashrc

.bashrc


export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

After calling, the following command! !! !! !!


$ source ~/.bashrc

You are now ready to use pyenv

reference

http://www.takunoko.com/blog/ubuntu%E3%81%ABpython%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82/

To use Python 3.5.2.


$ sudo pyenv install 3.5.2
$ sudo pyenv global 3.5.2

Add Mezzanine

$ pip install mezzanine

I entered with this Then make a project!

Project & db creation


$ mezzanine-project myproject
$ cd myproject
Create db ↓
$ python manage.py createdb

You should be able to do this! !! !! Check the rest!

Verification

$ python manage.py runserver 0.0.0.0:8000

reference

http://qiita.com/itkr/items/c6c26f55a292f3e39241

With this, if you can access the cloud ip: 8000 and display it, it's OK

Being addicted

When I put in pyenv and did it, the version of pip was not the latest, so

$ pip install --upgrade pip 

Then, I couldn't install mezzanine for some reason, so I was worried. It can be done without updating, so we recommend that you do not.

Recommended Posts

Mezzanine introduction memo that I got stuck in the flow
I got lost in the maze
What I did when I got stuck in the time limit with lambda python
I referred to it when I got stuck in the django geodjango tutorial (editing)
A memo that I touched the Datastore with python
Work memo that I tried i18n with Flask app
What I got stuck around GUI in WSL python environment
I wrote a script that splits the image in two
Movement that changes direction in the coordinate system I tried Python 3
I made a program that solves the spot the difference in seconds
I got an AttributeError when mocking the open method in python
I participated in the ISUCON10 qualifying!
I got stuck so I reviewed it
I wrote the queue in Python
I wrote the stack in Python
I got stuck in a flask application redirect with a reverse proxy in between
I saved the scraped data in CSV!
I wrote the selection sort in C
I can't get the element in Selenium!
I wrote the sliding wing in creation.
I got the date from the pub rice in Kagawa and drew a graph
Talking about the features that pandas and I were in charge of in the project
About the point that python 3.x got stuck due to an error due to caching_sha2_password
[Django memo] I want to set the login user information in the form in advance
I tried to predict the horses that will be in the top 3 with LightGBM
Note that I understand the least squares algorithm. And I wrote it in Python.
I wrote a PyPI module that extends the parameter style in Python's sqlite3 module