GithubHelp home page GithubHelp logo

adamcharnock / django-adminlte2 Goto Github PK

View Code? Open in Web Editor NEW
194.0 19.0 67.0 4.21 MB

Reusable AdminLTE templates and admin theme

Home Page: http://django-adminlte2.readthedocs.io/

License: MIT License

Python 7.56% JavaScript 6.94% CSS 63.93% HTML 21.57%

django-adminlte2's Introduction

AdminLTE Templates, Template Tags, and Admin Theme for Django

pypi_badge

Django AdminLTE2 provides the functionality of the AdminLTE2 theme to developers in the form of standard base templates. Optional styling for Django's built-in admin interface is also provided.

Installation

Installation using pip:

pip install django-adminlte2

Add to installed apps:

INSTALLED_APPS = [
     # General use templates & template tags (should appear first)
    'django_adminlte',
     # Optional: Django admin theme (must be before django.contrib.admin)
    'django_adminlte_theme',

    ...
]

Usage

The base template is designed to be highly customisable. Template blocks are provided to allow you to hook in customisations as you wish

Admin Theme Usage

Install as per the above installation instructions. The django admin UI should then change as expected.

Documentation

Can be found at: http://django-adminlte2.readthedocs.io

Credits

This project a based heavily on work by the following:

django-adminlte2 is packaged using seed.

django-adminlte2's People

Contributors

adamcharnock avatar atnartur avatar basitsattar avatar clover-es avatar cresg820 avatar dependabot[bot] avatar hmphu 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-adminlte2's Issues

the patterns module has been removed (it had been deprecated since 1.8).

As of Django 1.10, the patterns module has been removed (it had been deprecated since 1.8).

need to change urls.py file to :

-- coding: utf-8 --

author = 'sandlbn'

from django.conf.urls import url
from views import CalendarJsonListView, CalendarView
#url(r'^djrichtextfield/', include('djrichtextfield.urls')),

urlpatterns = [
url(r'^json/$',CalendarJsonListView.as_view(),name='calendar_json'),
url(r'^$',CalendarView.as_view(),name='calendar'),
]

Add DataTables to _scripts.html and css

.gitignore lib/ and adminlte/lib

Hi,
this is not a really issue but i suggest to change name of "amdinlte/lib" directory because of .gitignore files.
This is a typical gitignore for python projects and "lib/" excludes adminlte/lib too.

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
!sts/backend/templates/adminlte/lib/*
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

Licensing for django-adminlte2

Hello,

I'm interested in using this for an academic research project, I was just wondering what license this project is under. We're allowed to use any free license, but just want to make sure before we build out our dashboard around this.

Keep up the great work!

Suhail

NoReverseMatch: 'admin'

When i'm trying to see the example in a view, is returning me this error ๐Ÿ˜ข
django.urls.exceptions.NoReverseMatch: 'admin' is not a registered namespace

Fieldsets are not supported

When I set fieldsets in admin.py, fieldsets in the page cannot be expanded. When I look at bootstrap.css, I find that collapse is none. The collapse should be block.

Local copy of jquery-ui.min.js

Hi!

I was wondering if there was any specific reason to keep jquery-ui.min.js file as an external resource pointing to jquery.com domain. Given the fact that it's an specific release version (1.11.4), it wouldn't pass the keep up-to-date argument.

I'm developing an application using this django package that may go offline, so it would be interesting to have this a local resource.

Would you accept such modification?

Thank you,
Guillermo.

Header template crashes in Django 2.x

Since User.is_authenticated is now a property in Django 2.x, the is_authenticated() call in templatetags/adminlte_helpers.py now raises an exception. There's PR #11 that removes the parentheses but it would break compatibility with <2.x, so something like

user = context['request'].user if user is None else user
authenticated = user.is_authenticated
authenticated = authenticated() if callable(authenticated) else authenticated
return 'https://www.gravatar.com/avatar/{hash}?s={size}&d=mm'.format(
    hash=md5(user.email.encode('utf-8')).hexdigest() if authenticated else '',
    size=size or '',
)

should do the trick.

pip version not updated

In the version i've installed trought PIP there are some mismatches with the github version.
For example in the PIP the add_active tag is not present.

is there a plan to upgrade to adminlte3?

Hello, recently i discover that adminlte version 3 has been released with many interesting features, have you a plan to upgrade your great package to use adminlte3 ? i hope yes

Bug in admin_menu templatetag

'available_apps' is not present in context object when the registration pages is load.

def admin_apps(self, context, r):
request = context['request']
for app in context['available_apps']:
...

bug_admin_menu

'bool' object is not callable

I got the following error when trying to use adminlte admin.
`

Request Method: GET
http://127.0.0.1:8000/admin/
2.0
TypeError
'bool' object is not callable
/home/sithu/PycharmProjects/chatbot/venv/lib/python3.5/site-packages/django_adminlte/templatetags/adminlte_helpers.py in avatar_url, line 20
/home/sithu/PycharmProjects/chatbot/venv/bin/python
3.5.2
['/home/sithu/PycharmProjects/chatbot', '/home/sithu/PycharmProjects/chatbot', '/home/sithu/PycharmProjects/chatbot/share/pyshared', '/home/sithu/PycharmProjects/chatbot/venv/lib/python35.zip', '/home/sithu/PycharmProjects/chatbot/venv/lib/python3.5', '/home/sithu/PycharmProjects/chatbot/venv/lib/python3.5/plat-x86_64-linux-gnu', '/home/sithu/PycharmProjects/chatbot/venv/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/home/sithu/PycharmProjects/chatbot/venv/lib/python3.5/site-packages', '/home/sithu/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/173.3942.36/helpers/pycharm_matplotlib_backend']
`
as indicated in error message, it is cause by user.is_authenticated() method called in adminlte_helpers.py.
Instead of using method, if I change to user.is_authenticated and use as property it is working.

how to override the skin on body class?

i wanna change the body class from 'skin-blue' into 'skin-black'. The closest solution that i found is to use "body_class" block, but it's adding another class to the body tag. I would like to override it

override folder in documentation

In the documentation https://django-adminlte2.readthedocs.io/en/latest/quickstart.html mentions everywhere that in order to override the template you need to create the files under adminlt/lib/...however it really needs to be under admin/lib/...

How to use static files when debug false?

When I change debug false to in setting.py. The static files(css,js,...) are not load automatically. Is there any way to load that file. I am totally new to python and django.

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.