Created
November 9, 2012 13:53
-
-
Save uolter/4045747 to your computer and use it in GitHub Desktop.
flask project dir structure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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