UMBC-CMSC447-Spring2017-Team5 / college-JUMP

https://lassa.xen.prgmr.com/collegejump/
GNU General Public License v3.0
0 stars 0 forks source link

Build file upload #50

Closed alexander-bauer closed 7 years ago

alexander-bauer commented 7 years ago

@UMBC-CMSC447-Spring2017-Team5/developers This is another not-insignificant task that I don't expect to get to soon. I can advise, but anyone willing to do some research should be able to take this. There is a good plugin called Flask-Uploads that should help.

RyanErnst commented 7 years ago

If anyone needs info for how to do this, I've found some links that may prove to be helpful.

alexander-bauer commented 7 years ago

I recommend using the Flask plugin, because that'll integrate more easily, and might already have WTForms integration.

RyanErnst commented 7 years ago

Areas of focus collegejump/templates and views.py and forms.py. Needed at file upload and database imports/exports. May also require view for "file upload" and is exclusive for admins.

RyanErnst commented 7 years ago

@alexander-bauer, what was the script that you made for creating accounts for us. I can't get passed the login screen.

alexander-bauer commented 7 years ago

@RyanErnst It's in contrib/make_user.py. You can run it as

env/bin/python3 contrib/make_user.py Ryan your@email.com password --admin
RyanErnst commented 7 years ago

How exactly are we do we want the file to be stored on the website? Shall it be an entry in the database or do we want it as a separate entity?

alexander-bauer commented 7 years ago

@RyanErnst there is a Document model in the database that I intended to store it in.

alexander-bauer commented 7 years ago

@Mjacks3 I can take this, because I did the file upload for the database. It should only take me a few minutes.