Since the MacBook Pro used as the development environment for GAE broke, I rebuilt the development environment for Google App Engine (GAE) on MacBook Air. At that time, I had forgotten various steps, so I wrote it as a memorandum again. Since it is an environment where you can try various things in a trial, set the project name to playground and create an application under it.
** 1. Download and install the Google AppEngine SDK for Python from here ** It was easy here as I just downloaded and installed the installer.
** 2. Pass the PATH for using Django included in the SDK ** Do the following in your home directory: Create .bashrc and .bash_provile with a text editor such as vim, and add the following lines respectively.
~/.bash_rc
export PYTHONPATH='/usr/local/google_appengine/lib/django-1.5/'
export PATH=$PATH:/usr/local/google_appengine/lib/django-1.5/
~/.bash_rc
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
source ~/.bashrc
source ~/.bash_profile
To make django-admin.py executable for performing Django admin tasks, run the following on the command line:
chmod 744 /usr/local/google_appengine/lib/django-1.5/django/bin/django-admin.py
** 3. GAE project creation **
Change to your working directory. For example, suppose you work in the directory Development directly under your home directory.
cd ~/Development
After moving to ~ / Development, execute the following on the command line to create a project that will be the unit of Deploy.
/usr/local/google_appengine/lib/django-1.5/django/bin/django-admin.py startproject playground
** 4. GAE application creation **
I wanted to try the endopoint function, so I created an application called endpoint.
cd playgroud
python manage.py startapp endpoint
With the above, I went to the application creation once. From here on, another opportunity.
Recommended Posts