Skip to content

Instantly share code, notes, and snippets.

@uolter
Created November 9, 2012 13:53
Show Gist options
  • Save uolter/4045747 to your computer and use it in GitHub Desktop.
Save uolter/4045747 to your computer and use it in GitHub Desktop.
flask project dir structure
#!/bin/bash
APP_NAME="${1}"
if [ "$APP_NAME" = "" ]; then
echo "you must provide an application name!! "
echo "usage: <this script> <app name>"
exit
fi
echo "Creating ….. application $APP_NAME ……."
echo "…"
echo "……"
echo "………"
echo "………..."
mkdir $APP_NAME
mkdir $APP_NAME/static
mkdir $APP_NAME/templates
touch $APP_NAME/__init__.py
touch $APP_NAME/templates/index.html
echo "Done !"
echo "do not forget to put a favicon.ico into the static directory"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment