Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Aleph0x/starlamp_base

Repository files navigation

Starlamp

TODO

  • galleries
    • webgl render 3d models in folder to page.
      • three.js
      • NPM project files.
        • Shell file for project initalization & deployment.
          • Need to make sure all dependencies are installed properly.
    • Webpack
    • static content configuration
      • static folder designation "static"
        • /css
        • /js
        • /assets
      • Lightbox applied to images and webgl rendered assets.
      • views.py
        • index is mandatory.
        • authored pages based on directories established in "root/media"
      • collect static assets prior to full deployment.
  • accounts
    • account creation and handling (extremely basic but secure.)
      • Single sign on via forum account? Steam auth token? ????
  • templates
    • base template for displaying global content.
  • postgres
    • migrated relations to container
  • common
    • sglib.py
      • get_files()
      • [-] get_thumbs()
      • get_sg_path()

Notes

It's mandatory for a media folder to exist. There must be one subfolder within the media folder. There must be at least ONE image or 3D asset in each gallery to serve as a thumbnail. Files are sorted alphanumerically[0-9][A-Z]. If you want a specific picture to serve as a thumbnail, name it something like 01AA_HelloWorld.jpg or 01AA_Face.mdl

The top-level folders within the media folder are the galleries. Folders within those folders are subgalleries.

/media
-gallery-1
    -subgallery-1
    -subgallery-2
-gallery-2
    -subgallery-1

The models subdirectory of media refers to source engine .mdl files.

sglib.py

get_sg_paths(filepath: string)

  • Returns a list of filepaths for all subgalleries in a given gallery.

get_files(extensions, filepath: string)

  • returns a list of filepaths of one or more extensions. It can be a single extension or multiple different extensions.

get_thumbs()

  • returns a list of thumbnails, the first file from every gallery discovered will be the thumbnail.

slerror.py

About

A portfolio managemeny system built with Python and Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •