Skip to content

app-generator/sample-django-file-manager

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
July 4, 2023 16:13
July 6, 2023 14:33
July 5, 2023 10:28
June 22, 2023 12:54
July 3, 2023 12:20
July 6, 2023 15:08
July 3, 2023 11:54
June 22, 2023 12:54
June 22, 2023 12:54
July 5, 2023 19:39
June 22, 2023 12:54
June 22, 2023 12:54
June 22, 2023 12:54
June 22, 2023 12:54
June 22, 2023 12:54
June 22, 2023 12:54
June 22, 2023 12:54
June 22, 2023 12:54
June 22, 2023 12:54
July 5, 2023 19:41
June 22, 2023 12:54

Django File Manager

Open-source Django project crafted on top of Corporate Dashboard, an open-source Bootstrap 5 design from Creative-Tim. Designed for those who like bold elements and beautiful websites. Made of hundred of elements, designed blocks and fully coded pages, Corporate Dashboard is ready to help you create stunning websites and web apps.

πŸ‘‰ VIDEO Presentation: Django File Manager (published on YouTube)


Features

  • βœ… Simple File Manager over the MEDIA folder
    • Supports any Depth TREE
    • Options: delete, preview, download, upload
  • βœ… Up-to-date Dependencies
  • βœ… Theme: Django Admin Corporate, designed by Creative-Tim
    • can be used in any Django project (new or legacy)
  • βœ… Authentication: Django.contrib.AUTH, Registration

Django File Manager - Open-Source Sample crafted by AppSeed.


Manual Build

πŸ‘‰ Download the code

$ git clone https://github.com/app-generator/sample-django-file-manager.git
$ cd sample-django-file-manager

πŸ‘‰ Install modules via VENV

$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt

πŸ‘‰ Set Up Database

$ python manage.py makemigrations
$ python manage.py migrate

πŸ‘‰ Create the Superuser

$ python manage.py createsuperuser

πŸ‘‰ Start the app

$ python manage.py runserver

At this point, the app runs at http://127.0.0.1:8000/.


Codebase structure

The project is coded using a simple and intuitive structure presented below:

< PROJECT ROOT >
   |
   |-- core/                            
   |    |-- settings.py   # Project Configuration  
   |    |-- urls.py       # Project Routing
   |
   |-- home/
   |    |-- views.py      # APP Views 
   |    |-- urls.py       # APP Routing
   |    |-- models.py     # APP Models 
   |    |-- tests.py      # Tests  
   |     
   |-- templates/
   |    |-- includes/     # UI components 
   |    |-- layouts/      # Masterpages
   |    |-- pages/        # Kit pages 
   |
   |-- static/   
   |    |-- css/                                   # CSS Files 
   |    |-- scss/                                  # SCSS Files 
   |         |-- corporate-ui-dashboard/_variables.scss # File Used for Theme Styling
   |
   |-- requirements.txt   # Project Dependencies
   |
   |-- env.sample         # ENV Configuration (default values)
   |-- manage.py          # Start the app - Django default start script
   |
   |-- ************************************************************************

Recompile SCSS

The SCSS/CSS files used to style the Ui are saved in the static directory. In order to update the Ui colors (primary, secondary) this procedure needs to be followed.

$ yarn                                                  # install modules
$ vi static/scss/corporate-ui-dashboard/_variables.scss # edit variables 
$ gulp                                                  # SCSS to CSS translation

The _variables.scss content defines the primary and secondary colors:

$primary:       #774dd3 !default; // EDIT for customization
$secondary:     #64748b !default; // EDIT for customization
$info:          #55a6f8 !default; // EDIT for customization
$success:       #67c23a !default; // EDIT for customization
$warning:       #f19937 !default; // EDIT for customization 
$danger:        #ea4e3d !default; // EDIT for customization

Deploy on Render

  • Create a Blueprint instance
  • Click New Blueprint Instance button.
  • Connect your repo which you want to deploy.
  • Fill the Service Group Name and click on Update Existing Resources button.
  • After that your deployment will start automatically.

At this point, the product should be LIVE.



Django File Manager - Django starter provided by AppSeed