Package: djangosmartshare
django smart sharea simple django app for sharing files over http / https.attention :on test, not bug free.
i just started this project for fun, so will be glad if you use and report issues on this project.Requirementspython >= 3.5django >= 2Installationinstall usingpip:pip install djangosmartshareaddingsmartsharetoINSTALLED_APPSinsettings.py:INSTALLED_APPS=[...,'smartshare',...,]includingsmartshare.urlsin your projecturls.py:fromdjango.urlsimportpath,includeurlpatterns=[...,path('',include('smartshare.urls')),...,]runningmigratefor making related database tables:python3 manage.py migrateFeaturesyou can simply share any directory on your local system over http / https, in short : just like a file browser.inLocationmodel, by adding a new location, system will check if the path exist, so you can have following permissions separated for 3 different user types per eachLocationobject.Admins,Users( mean normal users ) andAnonymouse Visitors( public ) :attention :if you share a directory, inside another shared directory, neitherBase DirectorynorSub Directorywill not change each other permissions. the deepest availableSub DirectoryLocation object permissions will be used for each directory.the root path/is not available.only directories path are allowed to be shared, not files.commands will run as logged-in user on local system, so even if a permission likeCan DeletebeTrue, on a directory that need superusersudopermission, the command will not effect, for security reasons.permissiondescriptionActivewheather to show this directory for the allowed user or not.Show Filesuser can view Files in directory. ( only view, nothing more )Show Directoriesuser can view Directories in directory.Show Hidden Filessame as Files, fore Hidden Files.Show Hidden Directoriessame as Directories, for Hidden DirectoriesCan Downloadif this permission beTrue, user can download shared directory and it's subdirectories in compressed files aszip,tar,tar.gzandtar.bz2. an also user allowed to download any Files in directory and it's subdirectories.Can Uploadif this permission beTrue, user can upload Files in directory and it's subdirectories.Can Deleteif this permission beTrue, aDeletebutton will be showed for each subdirectories and files in directory, so user can delete them.Can Createif this permission beTrue, anAddbutton will be showed for Directories and Files, so user can add new directory, or a file with it's content.this app have a simple responsive front-end design, created usingBootstrap 4framework. by default, needed static files are instatic/cssandstatic/jsdirectories outside of app directory for avoiding duplication. if you are planning to uses this app make sure to include these files or replacingshare/templates/base.htmlstyles and scripts withBootstrap 4SDN.this users are added for testing :usernamepasswordis superuseradminadminadminyesuseruserusernoTO DOthis Features are planned to be added in next version :addingRun Commandability.addingCopyandMove.addingmulti upload.addingmulti selectingfiles and directories ability for Download or Delete.addingPreviewandEditabilities.addingpermissionsfor duplicated files and directories while adding or uploading.changingdirs.htmltemplate for addingUpload,Delete,Addforms.rewritingviewsdefinitions.rewriting responsive template for a better UX / UI.