Xevion 710924c419 fix thumbnail dir not being created for new installs, add traceback printing for failed thumbnail printing, fix naive datetime object loading
on new installs, the thumbnail directory in /viewer/static is not created automatically
when thumbnail generation fails for any reason, tracebacks are not printed
i fixed the numerous warnings generated by not setting the DateTimeField to a datetime object with a timezone (fixed with dateutil package)
2020-11-05 18:27:01 -06:00
2020-11-04 01:00:18 -06:00
2020-10-31 04:32:03 -05:00

simple-viewer

Simple Viewer is a small learning project designed to work as a static file server with accompanying viewing methods.

These viewing methods are intended to be as simple as possible, mostly focusing on video.

Planned are text files, source code files, PDFs, and pictures. Everything else will be served as direct browser links (the browser handles all viewing) or as downloads.

The project will be built in Django (as well as HTML/CSS/JS), my first ever project in the framework, so expect poorer standards, mishaps, some complex bugs (resolved with needlessly complex solutions) and such.

Setup

git clone https://github.com/Xevion/simple-viewer.git
pip install -r requirements.txt

Additionally, during development, you will want Sass files to be updated.

In a separate terminal, run this command to automatically generate .css files from .scss files when they are edited.

cd ./viewer/static/css/
sass --watch .

Running simple-viewer

python manage.py runserver
Description
No description provided
Readme 738 KiB
Languages
Python 66.3%
HTML 27.9%
SCSS 5.8%