Coder Social home page Coder Social logo

app-generator / django-black-dashboard Goto Github PK

View Code? Open in Web Editor NEW
338.0 9.0 119.0 4.68 MB

Django Dashboard Black - Open-source Seed Project | AppSeed

Home Page: https://appseed.us/product/black-dashboard/django/

License: Other

Shell 0.03% Dockerfile 0.06% Python 1.42% HTML 20.12% JavaScript 5.52% CSS 5.43% SCSS 67.41%
appseed django-dashboard django-template black-design django-admin-theme django-theme django-admin django-bootstrap django-project django-bootstrap4

django-black-dashboard's Introduction

Open-source Django Dashboard provided by AppSeed on top of Black Dashboard, an open-source Bootstrap Design from Creative-Tim. The product is designed to deliver the best possible user experience with highly customizable feature-rich pages.


Features

Have questions? Contact Support (Email & Discord) provided by AppSeed

Free Version PRO Version Custom Development
โœ“ Django 4.2.9 Everything in Free, plus: Everything in PRO, plus:
โœ“ Best Practices โœ… Premium Bootstrap 5 Design โœ… 1 Week Custom Development
โœ“ Bootstrap 4, Black Design โœ… OAuth GitHub โœ… Team: PM, Developer, Tester
โœ“ CI/CD Flow via Render โœ… API, Charts โœ… Weekly Sprints
โœ“ Docker โœ… DataTables (Filters, Export) โœ… Technical SPECS
โœ“ Free Support (GitHub Issues) โœ… Celery โœ… Documentation
- โœ… Media Files Manager โœ… 30 days Delivery Warranty
- โœ… Extended User Profiles โœ… CI/CD for AWS, DO (Extra)
- โœ… Private REPO Access -
- โœ… Premium Support -
------------------------------------ ------------------------------------ ------------------------------------
โœ“ LIVE Demo ๐Ÿš€ LIVE Demo Get in Touch โžก๏ธ

Django Admin Black - Template project for Django provided by AppSeed.


Manual Build

๐Ÿ‘‰ Download the code

$ git clone https://github.com/app-generator/django-black-dashboard.git
$ cd django-black-dashboard

๐Ÿ‘‰ Install modules via VENV.

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

๐Ÿ‘‰ Edit the .env using the template .env.sample.

# True for development, False for production
DEBUG=True

๐Ÿ‘‰ 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  
   |
   |-- requirements.txt    # Project Dependencies
   |
   |-- env.sample          # ENV Configuration (default values)
   |-- manage.py           # Start the app - Django default start script
   |
   |-- ************************************************************************

How to Customize

When a template file is loaded in the controller, Django scans all template directories starting from the ones defined by the user, and returns the first match or an error in case the template is not found. The theme used to style this starter provides the following files:

# This exists in ENV: LIB/admin_black
< UI_LIBRARY_ROOT >                      
   |
   |-- templates/                     # Root Templates Folder 
   |    |          
   |    |-- accounts/       
   |    |    |-- auth-signin.html     # Sign IN Page
   |    |    |-- auth-signup.html     # Sign UP Page
   |    |
   |    |-- includes/       
   |    |    |-- footer.html          # Footer component
   |    |    |-- sidebar.html         # Sidebar component
   |    |    |-- navigation.html      # Navigation Bar
   |    |    |-- scripts.html         # Scripts Component
   |    |
   |    |-- layouts/       
   |    |    |-- base.html            # Masterpage
   |    |
   |    |-- pages/       
   |         |-- dashboard.html       # Dashboard page
   |         |-- user.html            # Settings  Page
   |         |-- *.html               # All other pages
   |    
   |-- ************************************************************************

When the project requires customization, we need to copy the original file that needs an update (from the virtual environment) and place it in the template folder using the same path.

For instance, if we want to customize the dashboard.html these are the steps:

  • โœ… Step 1: create the templates DIRECTORY inside the ROOT directory
  • โœ… Step 2: configure the project to use this new template directory
    • core/settings.py TEMPLATES section
  • โœ… Step 3: copy the dashboard.html from the original location (inside your ENV) and save it to the templates DIR
    • Source PATH: <YOUR_ENV>/LIB/admin_black_pro/pages/dashboard.html
    • Destination PATH: <PROJECT_ROOT>templates/pages/dashboard.html

To speed up all these steps, the codebase is already configured (Steps 1, and 2) and a custom dashboard can be found at this location:

templates/pages/custom-dashboard.html

By default, this file is unused because the theme expects dashboard.html (without the custom- prefix).

In order to use it, simply rename it to dashboard.html. Like this, the default version shipped in the library is ignored by Django.

In a similar way, all other files and components can be customized easily.


Recompile SCSS (separate terminal)

Tested with Node v18.20.0

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

$ npm # install modules
$ # # edit variables 
$ vi static/assets/scss/black-dashboard/custom/_variables.scss 
$ npm run dev   # SCSS to CSS Development MODE
$ npm run build # SCSS to CSS Production Build

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

$default:       #344675 !default; // EDIT for customization
$primary:       #e14eca !default; // EDIT for customization
$secondary:     #f4f5f7 !default; // EDIT for customization
$success:       #00f2c3 !default; // EDIT for customization
$info:          #1d8cf8 !default; // EDIT for customization
$warning:       #ff8d72 !default; // EDIT for customization
$danger:        #fd5d93 !default; // EDIT for customization
$black:         #222a42 !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 in 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 Black Dashboard - Django starter provided by AppSeed

django-black-dashboard's People

Contributors

app-generator avatar topstar210 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-black-dashboard's Issues

Can't find _brand.scss

Hi,

I would like to change the brand color but I can't find the _brand.scss file.

I tried changing the _variables.scss and recompiling scss with gulp but it doesn't seem to change colors.

File nucleo.svg is missing

Hi,

In file static/assets/css/nucleo-icons.css you have a next line:
url('../fonts/nucleo.svg') format('svg');

But actually in folder static/assets/fonts file nucleo.svg is missing

Could you please fix that bug?

Thanks

Can't not reach any urls for new app

Hello,

I am trying to create my own app inside the project, but the URLs reverse doesn't work.
For example, I created an app call user_profile, and I want to change the User Profile when the user clicks the "Profile" button.

<li class="nav-link"><a href="{% url 'profile' %}" class="nav-item dropdown-item">Profile</a></li> # navigattion.html

However, only inside your original "app" folder, this button will work, for any other new apps, it won't work.
Is this only possible for Pro Version?

path('user-profile/', include("user_profile.urls")) # core.urls for new app user_profile

urlpatterns = [ path('profile', views.user_profile_view, name='profile') ] # urls for user_profile

views

@login_required
def user_profile_view(request):
    profile = Profile.objects.get(user=request.user)
    form = ProfileForm(request.POST or None, request.FILES or None, instance=profile)
    confirm = False
    if form.is_valid():
        form.save()
        confirm = True
    context = {
        'profile': profile,
        'form': form,
        'confirm': confirm,
    }

    return render(request, 'user_profile/profile.html', context) 

I create a folder called user_profile inside templates,
thank you so much.

How to get Black Dashboard into Visual Studio 2019

I used the Git add-in in Visual Studio 2019 to clone this project locally, but no matter what I do, I cannot get Visual Studio to recognize it as a Django Web Project. VS just thinks it's a lot of folders and files. There is no way to execute it. I also tried creating a new Blank Django Web Project in VS and then copying the files from the local Git repository into the project folder it creates, but again, it won't run. It just launches the default blank project I created even though I replaced the new manage.py and requirements.txt files with the ones from the clone. VS uses it's own folder structure to organize Django projects and I can't figure out how to get the folders in this Black Dashboard project to line up they way it wants it.

How do I get this project to work in VS?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.