Steps with explanations to set up a server using:
- Virtualenv
- Virtualenvwrapper
- Django
- Gunicorn
# -*- coding: utf-8 -*- | |
""" | |
Flask-Login example | |
=================== | |
This is a small application that provides a trivial demonstration of | |
Flask-Login, including remember me functionality. | |
:copyright: (C) 2011 by Matthew Frazier. | |
:license: MIT/X11, see LICENSE for more details. | |
""" |
function Function-Name { | |
<# | |
.Synopsis | |
The short function description. | |
.Description | |
The long function description | |
.Example | |
C:\PS>Function-Name -param "Param Value" | |
This example does something |
the | |
of | |
to | |
and | |
a | |
in | |
is | |
it | |
you | |
that |
import os | |
from flask import Flask, render_template, request | |
import stripe | |
stripe_keys = { | |
'secret_key': os.environ['SECRET_KEY'], | |
'publishable_key': os.environ['PUBLISHABLE_KEY'] | |
} | |
stripe.api_key = stripe_keys['secret_key'] |
Set-PSReadlineOption -BellStyle None | |
# Clone `https://github.com/dahlbyk/posh-git.git` to C:\Gits | |
Import-Module 'C:\Gits\posh-git\src\posh-git.psd1' | |
set-executionpolicy Unrestricted process | |
$baseDir = Split-Path -parent $MyInvocation.MyCommand.Definition | |
#. "$baseDir\hand.ps1" | |
# General actions | |
function edit ($file) { & "${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" $file } |