Overview
SB Admin 2 is a Django project that integrates the free Admin template named SB Admin 2. It is a fully functional and responsive bootstrap template designed for administrators. The project uses a tech stack consisting of Python 3.6.7, Django 2.2.6, and Bootstrap 4.
Features
- Django powered: SB Admin 2 is built using Django, a high-level web framework for Python.
- Responsive design: The template is fully responsive, ensuring that it works well on different devices and screen sizes.
- Bootstrap integration: SB Admin 2 is integrated with the Bootstrap CSS framework, providing a range of pre-built components and styles.
- Dynamic URLs: The URLs defined in the project are fully dynamic, allowing for easy changes in the urls.py file without requiring updates to the templates.
- Separation of UI and backend code: The UI code is separate from the backend code, with the UI code located in the src/ui directory.
- Theme customization: Users can add their own template and static files separately, allowing for customization and extension of the theme.
- Organized static files: All static files, including CSS, JavaScript, images, and logos, are located in the src/ui/static/files directory. This directory is further divided into the theme directory for theme-related files and the app/resource directory for developer-created files to avoid conflicts during static file searching.
Installation
To run the SB Admin 2 project, follow these steps:
- Clone the project repository:
git clone https://github.com/hygull/sbadmin.git - Set up a virtual environment using virtualenv:
virtualenv venv (on Linux or MAC OS X) or .\venv\Scripts\activate (on Windows) - Navigate to the project directory:
cd sbadmin - Install the required dependencies:
pip install -r requirements.txt - Navigate to the source directory:
cd src - Run the database migrations:
python manage.py migrate - Start the development server:
python manage.py runserver - Visit http://127.0.0.1:8000 in your web browser to access the project.
Summary
SB Admin 2 is a Django project that integrates the free Admin template named SB Admin 2. It provides a fully functional and responsive bootstrap template for administrators. The project is built using Python 3.6.7, Django 2.2.6, and Bootstrap 4. It features a separation of the UI and backend code, dynamic URLs, and organized static files. To install and run the project, clone the repository, set up a virtual environment, install the dependencies, perform the necessary database migrations, and start the development server.