|
|
1 dia atrás | |
|---|---|---|
| myriad | 1 dia atrás | |
| .gitignore | 1 dia atrás | |
| README.md | 1 dia atrás |
flask app for plurals to publicly share member lists
logged in users are presumed to all be admins with distinction only between being logged in and not
in the blog view, member privacy outweighs individual post privacy. if a private member makes a public post, it will not show up in the public feed. however, if that member switches to public, their public posts will all become publicly viewable (but private posts will remain private).
the blinkies and stamps stuff is literally just because i want an easy way to upload them when i find them. and im the dev so i get to decide mwa ha ha
py -3 -m venv .venv in the root directory and then .venv\Scripts\activatepip install Flask inside the virtual envflask --app myriad init-dbflask --app myriad run --debugdo not deploy this way, the packaged flask server is not secure. production instructions will be provided when the project is ready
.venv\Scripts\activate from the folder every time you start working on itflask --app myriad init-db (losing all the data inside) will be necessary as development continues. DO NOT STORE ANYTHING IMPORTANT DURING DEVELOPMENTflask --app myriad run --debug as usualconfig.py in the instance folder and customise the following settings to your needsREGISTRATION = True # Make sure to disable in production
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif'} # Can be anything you want
ICON_UPLOAD_FOLDER = 'myriad/static/icons' # where member icons will be stored
BLINKIES_UPLOAD_FOLDER = 'myriad/static/blinkies' # where site assets "blinkies" will be stored
STAMPS_UPLOAD_FOLDER = 'myriad/static/stamps' # where site assets "stamps" will be stored
INLINE_UPLOAD_FOLDER = 'myriad/static/inline' # where site assets "misc inline" will be stored
MISC_UPLOAD_FOLDER = 'myriad/static/misc' # where other small images will be stored
THEMES_FOLDER = 'myriad/static/themes' # where theme choices will be stored