Skip to content

Commit

Permalink
Updated files; Included missing configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbcastillo committed Jan 20, 2015
1 parent 0e3488c commit 469fab3
Show file tree
Hide file tree
Showing 12 changed files with 710 additions and 196 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file removed .config.py.swp
Binary file not shown.
59 changes: 53 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,54 @@
config.py
venv/
uploads/
*.log
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo
*.pot
*.pyc
app/static/data/

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/
16 changes: 16 additions & 0 deletions .idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/dictionaries/joel.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

328 changes: 138 additions & 190 deletions .idea/workspace.xml

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions GPSP.sublime-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"folders":
[
{
"follow_symlinks": true,
"path": "."
}
]
}
263 changes: 263 additions & 0 deletions GPSP.sublime-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,263 @@
{
"auto_complete":
{
"selected_items":
[
[
"validateFile",
"validateFileSizeArray"
],
[
"validateDirectory",
"validateDirectorySize"
],
[
"filename",
"filename_to_inode_dict"
],
[
"file",
"filenameToInodeSize"
],
[
"filean",
"filenameToInode"
],
[
"parent",
"parentDirPointerCorrect"
],
[
"filane",
"filenameToInode"
],
[
"validateDirec",
"validateDirectoryPointersCorrect"
],
[
"parentNode",
"parentNodeFilenameToInode"
],
[
"dese",
"deserializedBlock"
],
[
"director",
"directoryPointersCorrect"
],
[
"filena",
"filenameToInode"
],
[
"direcotr",
"directoryPointersCorrect"
]
]
},
"buffers":
[
],
"build_system": "",
"command_palette":
{
"height": 375.0,
"selected_items":
[
[
"html",
"HTMLBeautify"
],
[
"install",
"Package Control: Install Package"
]
],
"width": 579.0
},
"console":
{
"height": 127.0,
"history":
[
"import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)"
]
},
"distraction_free":
{
"menu_visible": true,
"show_minimap": false,
"show_open_files": false,
"show_tabs": false,
"side_bar_visible": false,
"status_bar_visible": false
},
"expanded_folders":
[
"/Users/joel/Documents/WebDev/GPSP"
],
"file_history":
[
"/Users/joel/Documents/WebDev/django_gpp/elasticsearch/config/elasticsearch.yml",
"/Users/joel/Documents/WebDev/GPSP/sftp-config.json",
"/Users/joel/Documents/WebDev/GPSP/gpp.wsgi",
"/Users/joel/Library/Application Support/Sublime Text 3/Packages/User/sftp_servers/gpsp_staging.json",
"/Applications/MAMP/logs/apache_error.log",
"/Users/joel/Dropbox/School/Fall Semester - 2014/CS3224/Homework/Homework 2/csefsck.repy",
"/Users/joel/Documents/WebDev/django_gpp_orig/template/base.html",
"/Users/joel/Documents/WebDev/django_gpp_orig/template/index.html",
"/tmp/out.sh",
"/Users/joel/Downloads/repyv2_commit_3499642/repy.py",
"/Users/joel/Downloads/Bible/Books_NoHeader.csv",
"/Users/joel/Downloads/SpaRV/mods.d/sparv.conf",
"/Users/joel/Downloads/Bible/RV1909es/openlp leame",
"/Users/joel/Documents/WebDev/GPP/django_gpp/template/results.html",
"/Users/joel/Documents/WebDev/GPP/django_gpp/venv/lib/python2.7/encodings/raw_unicode_escape.py",
"/Users/joel/Documents/WebDev/GPP/django_gpp/requirements.txt",
"/Users/joel/Downloads/elasticsearch-1.3.4/README.textile",
"/Users/joel/Documents/WebDev/Performance-Testing/gppStag/results/results_2014.10.31_12.11.52/results.csv",
"/Users/joel/Documents/WebDev/Performance-Testing/gppStag/test_scripts/v_user.py",
"/Users/joel/Documents/WebDev/GPP/views_s.py",
"/Users/joel/Documents/WebDev/GPP/views_t.py",
"/Users/joel/Library/Caches/Coda 2/83A91C1A-0246-49DB-83C4-65C4C15EE632/query_functions.py",
"/Users/joel/Documents/WebDev/GPP/Staging/app/views.py",
"/Users/joel/Library/Caches/Coda 2/7ABB3EBD-3506-4CFC-A7C6-08100CC3C1B0/QueryFunctions.py",
"/Users/joel/Documents/query_functions.py",
"/Users/joel/Desktop/.DS_Store",
"/Users/joel/Library/Application Support/Sublime Text 3/Packages/User/MacTerminal.sublime-settings",
"/Users/joel/Library/Application Support/Sublime Text 3/Packages/User/SFTP.sublime-settings",
"/Users/joel/Library/Application Support/Sublime Text 3/Packages/User/Preferences.sublime-settings"
],
"find":
{
"height": 37.0
},
"find_in_files":
{
"height": 0.0,
"where_history":
[
]
},
"find_state":
{
"case_sensitive": false,
"find_history":
[
"else if",
"blockSize",
"deserializedBlock",
"b1",
" ",
" "
],
"highlight": true,
"in_selection": false,
"preserve_case": false,
"regex": true,
"replace_history":
[
],
"reverse": false,
"show_context": true,
"use_buffer2": true,
"whole_word": false,
"wrap": true
},
"groups":
[
{
"sheets":
[
]
}
],
"incremental_find":
{
"height": 23.0
},
"input":
{
"height": 0.0
},
"layout":
{
"cells":
[
[
0,
0,
1,
1
]
],
"cols":
[
0.0,
1.0
],
"rows":
[
0.0,
1.0
]
},
"menu_visible": true,
"output.find_results":
{
"height": 0.0
},
"output.sftp":
{
"height": 102.0
},
"project": "GPSP.sublime-project",
"replace":
{
"height": 42.0
},
"save_all_on_build": true,
"select_file":
{
"height": 0.0,
"selected_items":
[
[
"re",
"template/results.html"
]
],
"width": 0.0
},
"select_project":
{
"height": 0.0,
"selected_items":
[
],
"width": 0.0
},
"select_symbol":
{
"height": 0.0,
"selected_items":
[
],
"width": 0.0
},
"selected_group": 0,
"settings":
{
},
"show_minimap": true,
"show_open_files": false,
"show_tabs": true,
"side_bar_visible": true,
"side_bar_width": 150.0,
"status_bar_visible": true,
"template_settings":
{
}
}
12 changes: 12 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from app import app
app.config['SQLALCHEMY_DATABASE_URI'] = "mysql://submission:[email protected]/submission"
app.config['SECRET_KEY'] = 'Key To Be Determine' # secret key to prevent csrf
#Debug and sqlalchemy_echo overvides the config.py variables
#Remove variables when in production
#DEBUG = True
#SQLALCHEMY_ECHO = True #logs sql
#app.config['SQLALCHEMY_DATABASE_URI'] = "mysql://root:password@localhost/submission"
app.config['UPLOAD_FOLDER'] = '/export/local/admin/GPP-Submission-Portal/app/static/data/gppPdfs'
app.config['DOC_PATH'] = '/static/data/gppPdfs'

a
12 changes: 12 additions & 0 deletions gpp.wsgi
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
activate_this = '/var/www/http/venv/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
import sys, os
import logging, sys

sys.path.insert(0, '/var/www/http')

logging.basicConfig(stream=sys.stderr)
from app import app as application

if __name__ == '__main__':
application.run()
Loading

0 comments on commit 469fab3

Please sign in to comment.