Skip to content

Instantly share code, notes, and snippets.

View pjakobsen's full-sized avatar

P Jakobsen pjakobsen

View GitHub Profile
@drengle
drengle / FlaskOnSharedHosting.md
Last active October 29, 2022 02:42
How to Create Python Flask Website with Shared Hosting and No Root/Sudo Access.

Intro

I'm writing this walkthrough (here and a few other places) to hopfully make it much easier for anyone to impliment their Python Flask websites in a shared hosting environment.

I know many colleges and courses use Python and Flask to create websites, but it may be difficulat to understand how to translate that website from the classroom to a real hosting environment. I know for me personally it tookmany hours pouring through internet searches before I finally figured out how to get this working.

If you feel like you generally know what you're doing and don't need the basics explained to you then you can skip ahead to step 3.

1. Your Host Must Support Python Development

# Insomnia Configuration
## Run the test query
{
shop {
id
name
}
}
# Query Structure Examples
@floer32
floer32 / centos_python_env_setup
Last active May 2, 2022 03:47 — forked from stantonk/doit
CentOS 6: Install Python 2.7.4, pip, virtualenv, and virtualenvwrapper on CentOS (plus some bonus items at the end if you want). You should probably run with `sudo`.
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs