Skip to content

Instantly share code, notes, and snippets.

View bradleyg's full-sized avatar
💭
send busy

Bradley Griffiths bradleyg

💭
send busy
View GitHub Profile
<doctype html>
<html>
<head>
<title>GAE secure static site</title>
<link href="/static/css/styles.css" rel="stylesheet">
</head>
<body>
<h1>Hello world!</h1>
<a href="/offices">View our offices</a>
</body>
###########################################################################
# DO NOT MODIFY THIS FILE WITHOUT UNDERSTANDING THE SECURITY IMPLICATIONS #
###########################################################################
# The "application" parameter is automatically set based on the below rules:
# For util.sh: the argument to '-p' is used
# For Grunt users: the 'appid' value in config.json. It may also be
# overriden by passing an '--appid=' parameter to grunt
# You do not need to modify it here.
application: __APPLICATION__
# index.html
<form class="" enctype="multipart/form-data" action="{{ upload_url }}" method="post">
<input type="file" name="file" id="file"><input>
<input type="submit" name="submit" value="Upload">
</form>
# urls.py -----------------------------------
from django.conf.urls import url
@bradleyg
bradleyg / Dockerfile
Created October 26, 2016 12:46
Dockerfile for Wagtail on GAE
# docker build -t wagtail .
# docker run -it -v $(pwd):/app -p 0.0.0.0:8080:8080 wagtail
FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get install -y python python-pip python-dev libmysqlclient-dev
ADD https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-131.0.0-linux-x86.tar.gz /tmp/cloudsdk.tar.gz
RUN tar -zxvf /tmp/cloudsdk.tar.gz -C /tmp
RUN /tmp/google-cloud-sdk/install.sh
sdddasdfsd
asdasd