diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16089ab --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.pyc +**/*.pyc + diff --git a/README.md b/README.md index 5ada3ed..c0bc959 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # HackParty App - +This is the application code for hackparty.org which manages user +accounts and the clone protocol for events. diff --git a/app.yaml b/app.yaml index f2770ce..34a8f7c 100644 --- a/app.yaml +++ b/app.yaml @@ -1,4 +1,4 @@ -application: myapp +application: hackparty-domain version: 1 runtime: python api_version: 1 diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..5a47cdf --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,7 @@ +from flask import Flask +import settings + +app = Flask('hackparty') +app.config.from_object('app.settings') + +import views diff --git a/application/forms.py b/app/forms.py similarity index 100% rename from application/forms.py rename to app/forms.py diff --git a/application/models.py b/app/models.py similarity index 100% rename from application/models.py rename to app/models.py diff --git a/application/settings.py b/app/settings.py similarity index 100% rename from application/settings.py rename to app/settings.py diff --git a/application/static/robots.txt b/app/static/robots.txt similarity index 100% rename from application/static/robots.txt rename to app/static/robots.txt diff --git a/application/templates/helloworld.html b/app/templates/helloworld.html similarity index 100% rename from application/templates/helloworld.html rename to app/templates/helloworld.html diff --git a/application/views.py b/app/views.py similarity index 100% rename from application/views.py rename to app/views.py diff --git a/application/__init__.py b/application/__init__.py deleted file mode 100644 index ddd6b5c..0000000 --- a/application/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -from flask import Flask -import settings - -app = Flask('application') -app.config.from_object('application.settings') - -import views \ No newline at end of file diff --git a/application/static/favicon.ico b/application/static/favicon.ico deleted file mode 100644 index dd24994..0000000 Binary files a/application/static/favicon.ico and /dev/null differ diff --git a/main.py b/main.py index a0e1f95..a025111 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,6 @@ import sys, os -package_dir = "packages" +package_dir = "pkgs" package_dir_path = os.path.join(os.path.dirname(__file__), package_dir) # Allow unzipped packages to be imported @@ -12,7 +12,7 @@ if filename.endswith((".zip", ".egg")): sys.path.insert(0, "%s/%s" % (package_dir_path, filename)) -from application import app +from app import app def main(): from google.appengine.ext.webapp.util import run_wsgi_app diff --git a/packages/flask.zip b/pkgs/flask.zip similarity index 100% rename from packages/flask.zip rename to pkgs/flask.zip diff --git a/packages/flaskext/__init__.py b/pkgs/flaskext/__init__.py similarity index 100% rename from packages/flaskext/__init__.py rename to pkgs/flaskext/__init__.py diff --git a/packages/flaskext/wtf/__init__.py b/pkgs/flaskext/wtf/__init__.py similarity index 100% rename from packages/flaskext/wtf/__init__.py rename to pkgs/flaskext/wtf/__init__.py diff --git a/packages/flaskext/wtf/file.py b/pkgs/flaskext/wtf/file.py similarity index 100% rename from packages/flaskext/wtf/file.py rename to pkgs/flaskext/wtf/file.py diff --git a/packages/flaskext/wtf/html5.py b/pkgs/flaskext/wtf/html5.py similarity index 100% rename from packages/flaskext/wtf/html5.py rename to pkgs/flaskext/wtf/html5.py diff --git a/packages/flaskext/wtf/recaptcha/__init__.py b/pkgs/flaskext/wtf/recaptcha/__init__.py similarity index 100% rename from packages/flaskext/wtf/recaptcha/__init__.py rename to pkgs/flaskext/wtf/recaptcha/__init__.py diff --git a/packages/flaskext/wtf/recaptcha/fields.py b/pkgs/flaskext/wtf/recaptcha/fields.py similarity index 100% rename from packages/flaskext/wtf/recaptcha/fields.py rename to pkgs/flaskext/wtf/recaptcha/fields.py diff --git a/packages/flaskext/wtf/recaptcha/validators.py b/pkgs/flaskext/wtf/recaptcha/validators.py similarity index 100% rename from packages/flaskext/wtf/recaptcha/validators.py rename to pkgs/flaskext/wtf/recaptcha/validators.py diff --git a/packages/flaskext/wtf/recaptcha/widgets.py b/pkgs/flaskext/wtf/recaptcha/widgets.py similarity index 100% rename from packages/flaskext/wtf/recaptcha/widgets.py rename to pkgs/flaskext/wtf/recaptcha/widgets.py diff --git a/packages/jinja2.zip b/pkgs/jinja2.zip similarity index 100% rename from packages/jinja2.zip rename to pkgs/jinja2.zip diff --git a/packages/werkzeug/__init__.py b/pkgs/werkzeug/__init__.py similarity index 100% rename from packages/werkzeug/__init__.py rename to pkgs/werkzeug/__init__.py diff --git a/packages/werkzeug/_internal.py b/pkgs/werkzeug/_internal.py similarity index 100% rename from packages/werkzeug/_internal.py rename to pkgs/werkzeug/_internal.py diff --git a/packages/werkzeug/contrib/__init__.py b/pkgs/werkzeug/contrib/__init__.py similarity index 100% rename from packages/werkzeug/contrib/__init__.py rename to pkgs/werkzeug/contrib/__init__.py diff --git a/packages/werkzeug/contrib/atom.py b/pkgs/werkzeug/contrib/atom.py similarity index 100% rename from packages/werkzeug/contrib/atom.py rename to pkgs/werkzeug/contrib/atom.py diff --git a/packages/werkzeug/contrib/cache.py b/pkgs/werkzeug/contrib/cache.py similarity index 100% rename from packages/werkzeug/contrib/cache.py rename to pkgs/werkzeug/contrib/cache.py diff --git a/packages/werkzeug/contrib/fixers.py b/pkgs/werkzeug/contrib/fixers.py similarity index 100% rename from packages/werkzeug/contrib/fixers.py rename to pkgs/werkzeug/contrib/fixers.py diff --git a/packages/werkzeug/contrib/iterio.py b/pkgs/werkzeug/contrib/iterio.py similarity index 100% rename from packages/werkzeug/contrib/iterio.py rename to pkgs/werkzeug/contrib/iterio.py diff --git a/packages/werkzeug/contrib/jsrouting.py b/pkgs/werkzeug/contrib/jsrouting.py similarity index 100% rename from packages/werkzeug/contrib/jsrouting.py rename to pkgs/werkzeug/contrib/jsrouting.py diff --git a/packages/werkzeug/contrib/kickstart.py b/pkgs/werkzeug/contrib/kickstart.py similarity index 100% rename from packages/werkzeug/contrib/kickstart.py rename to pkgs/werkzeug/contrib/kickstart.py diff --git a/packages/werkzeug/contrib/limiter.py b/pkgs/werkzeug/contrib/limiter.py similarity index 100% rename from packages/werkzeug/contrib/limiter.py rename to pkgs/werkzeug/contrib/limiter.py diff --git a/packages/werkzeug/contrib/lint.py b/pkgs/werkzeug/contrib/lint.py similarity index 100% rename from packages/werkzeug/contrib/lint.py rename to pkgs/werkzeug/contrib/lint.py diff --git a/packages/werkzeug/contrib/profiler.py b/pkgs/werkzeug/contrib/profiler.py similarity index 100% rename from packages/werkzeug/contrib/profiler.py rename to pkgs/werkzeug/contrib/profiler.py diff --git a/packages/werkzeug/contrib/securecookie.py b/pkgs/werkzeug/contrib/securecookie.py similarity index 100% rename from packages/werkzeug/contrib/securecookie.py rename to pkgs/werkzeug/contrib/securecookie.py diff --git a/packages/werkzeug/contrib/sessions.py b/pkgs/werkzeug/contrib/sessions.py similarity index 100% rename from packages/werkzeug/contrib/sessions.py rename to pkgs/werkzeug/contrib/sessions.py diff --git a/packages/werkzeug/contrib/testtools.py b/pkgs/werkzeug/contrib/testtools.py similarity index 100% rename from packages/werkzeug/contrib/testtools.py rename to pkgs/werkzeug/contrib/testtools.py diff --git a/packages/werkzeug/contrib/wrappers.py b/pkgs/werkzeug/contrib/wrappers.py similarity index 100% rename from packages/werkzeug/contrib/wrappers.py rename to pkgs/werkzeug/contrib/wrappers.py diff --git a/packages/werkzeug/datastructures.py b/pkgs/werkzeug/datastructures.py similarity index 100% rename from packages/werkzeug/datastructures.py rename to pkgs/werkzeug/datastructures.py diff --git a/packages/werkzeug/debug/__init__.py b/pkgs/werkzeug/debug/__init__.py similarity index 100% rename from packages/werkzeug/debug/__init__.py rename to pkgs/werkzeug/debug/__init__.py diff --git a/packages/werkzeug/debug/console.py b/pkgs/werkzeug/debug/console.py similarity index 100% rename from packages/werkzeug/debug/console.py rename to pkgs/werkzeug/debug/console.py diff --git a/packages/werkzeug/debug/repr.py b/pkgs/werkzeug/debug/repr.py similarity index 100% rename from packages/werkzeug/debug/repr.py rename to pkgs/werkzeug/debug/repr.py diff --git a/packages/werkzeug/debug/shared/FONT_LICENSE b/pkgs/werkzeug/debug/shared/FONT_LICENSE similarity index 100% rename from packages/werkzeug/debug/shared/FONT_LICENSE rename to pkgs/werkzeug/debug/shared/FONT_LICENSE diff --git a/packages/werkzeug/debug/shared/console.png b/pkgs/werkzeug/debug/shared/console.png similarity index 100% rename from packages/werkzeug/debug/shared/console.png rename to pkgs/werkzeug/debug/shared/console.png diff --git a/packages/werkzeug/debug/shared/debugger.js b/pkgs/werkzeug/debug/shared/debugger.js similarity index 100% rename from packages/werkzeug/debug/shared/debugger.js rename to pkgs/werkzeug/debug/shared/debugger.js diff --git a/packages/werkzeug/debug/shared/jquery.js b/pkgs/werkzeug/debug/shared/jquery.js similarity index 100% rename from packages/werkzeug/debug/shared/jquery.js rename to pkgs/werkzeug/debug/shared/jquery.js diff --git a/packages/werkzeug/debug/shared/less.png b/pkgs/werkzeug/debug/shared/less.png similarity index 100% rename from packages/werkzeug/debug/shared/less.png rename to pkgs/werkzeug/debug/shared/less.png diff --git a/packages/werkzeug/debug/shared/more.png b/pkgs/werkzeug/debug/shared/more.png similarity index 100% rename from packages/werkzeug/debug/shared/more.png rename to pkgs/werkzeug/debug/shared/more.png diff --git a/packages/werkzeug/debug/shared/source.png b/pkgs/werkzeug/debug/shared/source.png similarity index 100% rename from packages/werkzeug/debug/shared/source.png rename to pkgs/werkzeug/debug/shared/source.png diff --git a/packages/werkzeug/debug/shared/style.css b/pkgs/werkzeug/debug/shared/style.css similarity index 100% rename from packages/werkzeug/debug/shared/style.css rename to pkgs/werkzeug/debug/shared/style.css diff --git a/packages/werkzeug/debug/shared/ubuntu.ttf b/pkgs/werkzeug/debug/shared/ubuntu.ttf similarity index 100% rename from packages/werkzeug/debug/shared/ubuntu.ttf rename to pkgs/werkzeug/debug/shared/ubuntu.ttf diff --git a/packages/werkzeug/debug/tbtools.py b/pkgs/werkzeug/debug/tbtools.py similarity index 100% rename from packages/werkzeug/debug/tbtools.py rename to pkgs/werkzeug/debug/tbtools.py diff --git a/packages/werkzeug/exceptions.py b/pkgs/werkzeug/exceptions.py similarity index 100% rename from packages/werkzeug/exceptions.py rename to pkgs/werkzeug/exceptions.py diff --git a/packages/werkzeug/formparser.py b/pkgs/werkzeug/formparser.py similarity index 100% rename from packages/werkzeug/formparser.py rename to pkgs/werkzeug/formparser.py diff --git a/packages/werkzeug/http.py b/pkgs/werkzeug/http.py similarity index 100% rename from packages/werkzeug/http.py rename to pkgs/werkzeug/http.py diff --git a/packages/werkzeug/local.py b/pkgs/werkzeug/local.py similarity index 100% rename from packages/werkzeug/local.py rename to pkgs/werkzeug/local.py diff --git a/packages/werkzeug/posixemulation.py b/pkgs/werkzeug/posixemulation.py similarity index 100% rename from packages/werkzeug/posixemulation.py rename to pkgs/werkzeug/posixemulation.py diff --git a/packages/werkzeug/routing.py b/pkgs/werkzeug/routing.py similarity index 100% rename from packages/werkzeug/routing.py rename to pkgs/werkzeug/routing.py diff --git a/packages/werkzeug/script.py b/pkgs/werkzeug/script.py similarity index 100% rename from packages/werkzeug/script.py rename to pkgs/werkzeug/script.py diff --git a/packages/werkzeug/security.py b/pkgs/werkzeug/security.py similarity index 100% rename from packages/werkzeug/security.py rename to pkgs/werkzeug/security.py diff --git a/packages/werkzeug/serving.py b/pkgs/werkzeug/serving.py similarity index 100% rename from packages/werkzeug/serving.py rename to pkgs/werkzeug/serving.py diff --git a/packages/werkzeug/templates.py b/pkgs/werkzeug/templates.py similarity index 100% rename from packages/werkzeug/templates.py rename to pkgs/werkzeug/templates.py diff --git a/packages/werkzeug/test.py b/pkgs/werkzeug/test.py similarity index 100% rename from packages/werkzeug/test.py rename to pkgs/werkzeug/test.py diff --git a/packages/werkzeug/testapp.py b/pkgs/werkzeug/testapp.py similarity index 100% rename from packages/werkzeug/testapp.py rename to pkgs/werkzeug/testapp.py diff --git a/packages/werkzeug/urls.py b/pkgs/werkzeug/urls.py similarity index 100% rename from packages/werkzeug/urls.py rename to pkgs/werkzeug/urls.py diff --git a/packages/werkzeug/useragents.py b/pkgs/werkzeug/useragents.py similarity index 100% rename from packages/werkzeug/useragents.py rename to pkgs/werkzeug/useragents.py diff --git a/packages/werkzeug/utils.py b/pkgs/werkzeug/utils.py similarity index 100% rename from packages/werkzeug/utils.py rename to pkgs/werkzeug/utils.py diff --git a/packages/werkzeug/wrappers.py b/pkgs/werkzeug/wrappers.py similarity index 100% rename from packages/werkzeug/wrappers.py rename to pkgs/werkzeug/wrappers.py diff --git a/packages/werkzeug/wsgi.py b/pkgs/werkzeug/wsgi.py similarity index 100% rename from packages/werkzeug/wsgi.py rename to pkgs/werkzeug/wsgi.py diff --git a/packages/wtforms.zip b/pkgs/wtforms.zip similarity index 100% rename from packages/wtforms.zip rename to pkgs/wtforms.zip