UNC BACS 350

Web Apps with Python/Django

Logo

Python Anywhere

Account Setup

Why use Python Anywhere

How to set up Django Hosting at Python Anywhere

Learn Linux Commands

Run Terminal Window

Clone your git repository

Create Virtual Environment

Create Web App

Configure Your Web App

Python Anywhere Server

Configure WSGI Python File

/var/www/markseaman_pythonanywhere_com_wsgi.py

# +++++++++++ DJANGO +++++++++++
import os
import sys

path = '/home/markseaman/Book-Builder/bookbuilder'
if path not in sys.path:
    sys.path.append(path)

os.environ['DJANGO_SETTINGS_MODULE'] = 'bookbuilder.settings'

## then:
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

Configure Code Settings

Python Anywhere Static Files

Python Anywhere Database

Startup the Server

Reload http://markseaman.pythonanywhere.com/

Browse to http://markseaman.pythonanywhere.com/