Git Product home page Git Product logo

geex-arts / django-jet Goto Github PK

View Code? Open in Web Editor NEW
3.5K 116.0 777.0 5.4 MB

Modern responsive template for the Django admin interface with improved functionality. We are proud to announce completely new Jet. Please check out Live Demo

Home Page: https://github.com/jet-admin/jet-bridge

License: GNU Affero General Public License v3.0

Python 37.73% JavaScript 23.85% CSS 26.39% HTML 12.03%
django admin interface template responsive dashboard backoffice administration admin-dashboard

django-jet's Introduction

Django JET

image

Modern template for Django admin interface with improved functionality

Attention! NEW JET

We are proud to announce completely new Jet. Please check out Live Demo.

Developing of new features for Django Jet will be frozen, only critical bugs will be fixed.

Live Demo

Django JET has two kinds of licenses: open-source (AGPLv3) and commercial. Please note that using AGPLv3 code in your programs make them AGPL compatible too. So if you don't want to comply with that we can provide you a commercial license (visit Home page). The commercial license is designed for using Django JET in commercial products and applications without the provisions of the AGPLv3.

Logo

Why Django JET?

  • New fresh look
  • Responsive mobile interface
  • Useful admin home page
  • Minimal template overriding
  • Easy integration
  • Themes support
  • Autocompletion
  • Handy controls

Screenshots

Screenshot #1

Screenshot #2

Screenshot #3

Installation

  • Download and install latest version of Django JET:
pip install django-jet
# or
easy_install django-jet
  • Add 'jet' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'django.contrib.admin'):
INSTALLED_APPS = (
    ...
    'jet',
    'django.contrib.admin',
)
  • Make sure django.template.context_processors.request context processor is enabled in settings.py (Django 1.8+ way):
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                ...
                'django.template.context_processors.request',
                ...
            ],
        },
    },
]

Warning

Before Django 1.8 you should specify context processors different way. Also use django.core.context_processors.request instead of django.template.context_processors.request.

from django.conf import global_settings

TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
    'django.core.context_processors.request',
)
  • Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):
urlpatterns = patterns(
    '',
    url(r'^jet/', include('jet.urls', 'jet')),  # Django JET URLS
    url(r'^admin/', include(admin.site.urls)),
    ...
)
  • Create database tables:
python manage.py migrate jet
# or 
python manage.py syncdb
  • Collect static if you are in production environment:
python manage.py collectstatic
  • Clear your browser cache

Dashboard installation

Note

Dashboard is located into a separate application. So after a typical JET installation it won't be active. To enable dashboard application follow these steps:

  • Add 'jet.dashboard' application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before 'jet'):
INSTALLED_APPS = (
    ...
    'jet.dashboard',
    'jet',
    'django.contrib.admin',
    ...
)
  • Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):
urlpatterns = patterns(
    '',
    url(r'^jet/', include('jet.urls', 'jet')),  # Django JET URLS
    url(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')),  # Django JET dashboard URLS
    url(r'^admin/', include(admin.site.urls)),
    ...
)
  • For Google Analytics widgets only install python package:
pip install google-api-python-client==1.4.1
  • Create database tables:
python manage.py migrate dashboard
# or
python manage.py syncdb
  • Collect static if you are in production environment:
python manage.py collectstatic

django-jet's People

Contributors

alin23 avatar bashar avatar brenouchoa avatar danielquinn avatar darccio avatar dbartenstein avatar dnmellen avatar f1nality avatar grigory51 avatar harrylafranc avatar hbiboluo avatar jensastrup avatar jpic avatar lburdzy avatar leonardoarroyo avatar lmwgv avatar michaelkuty avatar mord4z avatar normal-cock avatar pyzenberg avatar rense avatar retailify avatar salahaddin avatar sedir avatar timur-orudzhov avatar tkanemoto avatar woutor 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  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

django-jet's Issues

Using jet dashboard in production causing 404 for admin page

I've recently upgraded to 0.1.3. Everything is working fine except for jet dashboard. When I'm using only jet then everything is working fine. But adding jet.dashboard is creating 404 for admin page after login (Without login, login form for admin is rendering fine).

Here is my configuration:
Installed Apps:

INSTALLED_APPS = (
    'jet.dashboard',
    'jet',
    'django.contrib.admin',

URLs file

import jet.dashboard.urls
import jet.urls
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.views.static import serve

urlpatterns = [
    url(r'^jet/', include(jet.urls, namespace='jet')),
    url(r'^jet/dashboard/', include(jet.dashboard.urls, namespace='jet-dashboard')),
    url(r'^admin/', include(admin.site.urls)),
]

If I remove jet.dashboard from INSTALLED_APPS then everything is working fine.

jquery UI postprocessing issue. Image 'animated-overlay.gif' not found

Hi,
On production server, collectstatic is failing as it is unable to find 'animated-overlay.gif'

Post-processed 'jet/vendor/jquery-ui-timepicker/include/ui-1.10.0/ui-lightness/images/ui-icons_222222_256x240.png' as 'jet/vendor/jquery-ui-timepicker/include/ui-1.10.0/ui-lightness/images/ui-icons_222222_256x240.ebe6b6902a40.png'
Post-processing 'jet/vendor/jquery-ui-timepicker/include/ui-1.10.0/ui-lightness/jquery-ui-1.10.0.custom.min.css' failed!

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/dheerendra/.Envs/ldapsso/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
    utility.execute()
  File "/home/dheerendra/.Envs/ldapsso/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 342, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/dheerendra/.Envs/ldapsso/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/dheerendra/.Envs/ldapsso/local/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/home/dheerendra/.Envs/ldapsso/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 176, in handle
    collected = self.collect()
  File "/home/dheerendra/.Envs/ldapsso/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 128, in collect
    raise processed
ValueError: The file 'jet/vendor/jquery-ui-timepicker/include/ui-1.10.0/ui-lightness/images/animated-overlay.gif' could not be found with <django.contrib.staticfiles.storage.CachedStaticFilesStorage object at 0x7f8d62ed6a50>

Add support for django-admin2

The jet theme is awesome. I'd like to see support for django-admin2 so I'd be able to use it with Django REST Framework endpoints.

Bootstrap support

Hi, guys. Great job. Django-jet looks very good and shiny. Do you have any plans to support Bootstrap or any other framework? This might help to achieve a few goals simultaneously. It improves jets` design to make it mobile friendly and gives ability to users to apply other themes (skins) easily.

What do you think about it?

How works color themes?

Hi man, i like your admin theme. I was using django-suit but these theme is outdated. Your theme is awesome!

I have a two questions about your color themming:

  1. How works?
    I try custom the color for themes and they not change, it's the same that your color:
JET_THEMES = [
    {
        'theme': 'default', # theme folder name
        'color': '#47bac1', # color of the theme's button in user menu
        'title': 'Default' # theme title
    },
    {
        'theme': 'green',
        'color': '#44b78b',
        'title': 'Green'
    },
    {
        'theme': 'light-green',
        'color': '#83C3AA',
        'title': 'Light Green'
    },
    {
        'theme': 'light-violet',
        'color': '#C1A7CE',
        'title': 'Light Violet'
    },
    {
        'theme': 'light-blue',
        'color': '#5EADDE',
        'title': 'Light Blue'
    },
    {
        'theme': 'light-gray',
        'color': '#222',
        'title': 'Light Gray'
    }
]

I change light-violet and light-green colors for other but i can't see any change. I have to delete violet theme for the next reason:

  1. Seems that violet static files are missing, for this reason, when you refresh the web page they have problem with styles and show without styles. In terminal we can see this:
    seleccion_011

Are missing, right?

All selection checkbox does not select all listed items

Hi,

First of all, the UI is awesome. Thank you, for open sourcing this.

Secondly, the bug:

I just wanted to delete all instances from a model. I checked the all-selection check box.
But nothing was selected.

It's is happening all over the place. In all the models.

some issues

Django to 1.8 or later:

/usr/local/lib/python2.7/dist-packages/django/utils/translation/init.py:146: RemovedInDjango19Warning: The use of the language code 'zh-cn' is deprecated. Please use the 'zh-hans' translation instead.

Require some jquery i18n files.

ManytoManyField, if set 'filter_horizontal', it's not working. I'm not sure if it is my problem.

datetime picker does not work correctly when used in inlines (tabular or stacked)

image

for the existing records, datetime picker works well, but if add another row, the datetime picker does not work correctly -> it shows Ok, but if clicked on the field or on the buttons, the datetime picker window does not show up.

I've tried to initialize datetime picker using livequery jquery plugin, but still does not work...

Custom menu

Is it possible to hide (completely remove) apps and/or models in menu?

Better styles for Django-Jet

Hi guys, i like this project and i wan help with it, so, i'll do a list of issues related with the styles here, i show what's my work until now and if you want help, please put his work here.

  • Make order in static files folders
  • Create a compile way that not require ruby-sass *
  • Create a grid componnet for responsive desing
  • Change and make better the green theme **
  • Create a toggle component for menu responsive
  • I'm working in a webpack config file for this
  • The same for the all themes that needs a better face

Well, please, put here your work and together we can make better django-jet.

[Warning][Django 1.10] Reporting warnings in jet.dashboard

I want report the next warnings:

/run/media/salahaddin/Data/Proyectos/Trabajo/ccct/lib/python3.5/site-packages/jet/urls.py:31: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  name='jsi18n'

/run/media/salahaddin/Data/Proyectos/Trabajo/ccct/lib/python3.5/site-packages/jet/dashboard/dashboard.py:6: RemovedInDjango110Warning: django.core.context_processors is deprecated in favor of django.template.context_processors.
  from django.core.context_processors import csrf

/run/media/salahaddin/Data/Proyectos/Trabajo/ccct/lib/python3.5/site-packages/jet/dashboard/urls.py:49: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  name='jsi18n'

Cannot Reach Jet, Raises 404

I installed and correctly configured for django-jet. However, when I request for url jet/ or jet/dashboard, it responses 404, saying:

The current URL, jet/, didn't match any of these.


settings.py

INSTALLED_APPS

INSTALLED_APPS = [
    # Outsource
    "jet.dashboard",
    "jet",

    # Main
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    # Outsource
    "rest_framework",

    # Self
    "api",
    "blog",
    "cvitae",
    "activities",
]

TEMPLATES

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
            os.path.join(BASE_DIR, "templates"),
            os.path.join(BASE_DIR, "templates/responses")
        ],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

urls.py

urlpatterns = [
    url(r'^jet/', include('jet.urls', 'jet')),
    url(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')),
    url(r'^admin/', admin.site.urls),
    url(r"^api/", include("api.urls")),
    url(r"^blog/", include("blog.urls")),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

I migrated and run server but could not help.


Environment

  • python 3.5.1
  • django 1.9.5
  • django-jet 0.1.4

Select2 issues in some browsers

Hi, We are facing some issues when we try to search elements in MultipleChoices fields. In safari it works ok, but the autocompletion does not work properly in google chrome or in Firefox (windows).

Any advise?

Admin - multiselect filter for m2m and fk - how to?

Hi, i'm trying to use multiselect filter in modeladmin, but the rendered control is always the normal single selection dropdown. What do i need to change to get the control that i want? Also, django-jet already have this functionality built-in?

Thanks!

list_filter = (('education_level', IntersectionFieldListFilter), 'tutor_category',)

My multiselect list filters are based on this project: extraadminfilters... here's the code. filters.py:

from django.utils.translation import ugettext_lazy as _
from django.contrib.admin.filters import FieldListFilter
from django.db.models.fields import IntegerField, AutoField
import logging


class MultipleSelectFieldListFilter(FieldListFilter):

    def __init__(self, field, request, params, model, model_admin, field_path):
        self.lookup_kwarg = '%s_filter' % field_path
        self.filter_statement = '%s__id' % field_path
        self.lookup_val = request.GET.get(self.lookup_kwarg, None)
        self.lookup_choices = field.get_choices(include_blank=False)
        super(MultipleSelectFieldListFilter, self).__init__(
            field, request, params, model, model_admin, field_path)

    def expected_parameters(self):
        return [self.lookup_kwarg]

    def values(self):
        """
        Returns a list of values to filter on.
        """
        values = []
        value = self.used_parameters.get(self.lookup_kwarg, None)
        if value:
            values = value.split(',')
        # convert to integers if IntegerField
        if type(self.field.rel.to._meta.pk) in [IntegerField, AutoField]:
            values = [int(x) for x in values]

        return values

    def queryset(self, request, queryset):
        raise NotImplementedError

    def choices(self, cl):
        from django.contrib.admin.views.main import EMPTY_CHANGELIST_VALUE
        yield {
            'selected': self.lookup_val is None,
            'query_string': cl.get_query_string({},
                [self.lookup_kwarg]),
            'display': _('All')
        }
        for pk_val, val in self.lookup_choices:
            selected = pk_val in self.values()
            pk_list = set(self.values())
            if selected:
                pk_list.remove(pk_val)
            else:
                pk_list.add(pk_val)
            queryset_value = ','.join([str(x) for x in pk_list])
            if pk_list:
                query_string = cl.get_query_string({
                    self.lookup_kwarg: queryset_value,
                    })
            else:
                query_string = cl.get_query_string({}, [self.lookup_kwarg])
            yield {
                'selected': selected,
                'query_string': query_string,
                'display': val,
            }


class IntersectionFieldListFilter(MultipleSelectFieldListFilter):
    """
    A FieldListFilter which allows multiple selection of
    filters for many-to-many type fields. A list of objects will be
    returned whose m2m contains all the selected filters.
    """

    def queryset(self, request, queryset):
        for value in self.values():
            filter_dct = {
                self.filter_statement: value
            }
            queryset = queryset.filter(**filter_dct)
        return queryset


class UnionFieldListFilter(MultipleSelectFieldListFilter):
    """
    A FieldListFilter which allows multiple selection of
    filters for many-to-many type fields. A list of objects will be
    returned whose m2m contains all the selected filters.
    """

    def queryset(self, request, queryset):
        filter_statement = "%s__in" % self.filter_statement
        filter_values = self.values()
        filter_dct = {
            filter_statement: filter_values
        }
        if filter_values:
            return queryset.filter(**filter_dct)
        else:
            return queryset

Pop up content redirect to a new page

Hi man,

I think, by default, all pop up content have to open a new windows, where do anything and when you click in button, close this window. But, in Django-Jet all pop up links rediret to new url instead open a new window. Why?

mozilla firefox_005

Is a register new object form and are in the same window, isn't a extern window.

Localization

Hi man, one of problem that have django-suit is that isn't locale.

Have you a locale project in Transifex? I can help you with Spanish and Turkish translation. Thanks.

Missing/placeholder icons pose problems for static file serving

There are a few a couple of icons that are loaded as such:

<img src="{% static "admin/img/icon-unknown.gif" %}" ..... />

The CSS and JS then matches that src path and then replaces the icon in many circumstances. However, these icons have been removed or change to be SVG files as of Django 1.9 and can throw exceptions depending in some circumstances (for me using whitenoise and with debug off).

I can probably do a pull request to fix that — in which case should I amend #45 to create a more generic "django 1.9 or above" tag and do a bunch of if/elses? Is there a more elegant solution?

[Feature] List of widgets for dashboard

Hi guys, i like this admin and i want help with this.

I think, we can do a list of some good widgets for this apps and then try to create it, some one have ideas for these? So, maybe aren't other good widgets and we can not do the list.

What do you think?

[Warning][Django1.10]RemovedInDjango110Warning

Warning for django 1.10:

/run/media/salahaddin/Data/Proyectos/Trabajo/ccct/lib/python3.5/site-packages/jet/urls.py:31: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  name='jsi18n'

If i could help you, i'll do, thanks for your work :D

Now i found other:

/run/media/salahaddin/Data/Proyectos/Trabajo/ccct/lib/python3.5/site-packages/jet/templatetags/jet_tags.py:58: RemovedInDjango110Warning: render() must be called with a dict, not a Context.
  return t.render(c)

How to create custom widgets?

Hi! I need a little support. I need to add a map(getting data from my models) with time slider filters that is going to be used for monitoring and little work; and need to do a lot of customization with that map. So I thought it'll be a great idea to create a widget for the map and use it. I need to know how do I write a custom widget and include it in the admin panel. Can you please help me doing that? Or let me know if there is a better way to add that map in the admin panel?

Dashboard doesn't update unless i press reset button

When i do some changes in my custom dashboard file it does not reflect changes in browser unless i press reset button. When i looked into jet's dashboard file i found that

    def load_modules(self):
        module_models = UserDashboardModule.objects.filter(
            app_label=self.app_label,
            user=self.context['request'].user.pk
        ).all()

        if len(module_models) == 0:
            module_models = self.create_initial_module_models(self.context['request'].user)

        loaded_modules = []

        for module_model in module_models:
            module_cls = module_model.load_module()
            if module_cls is not None:
                module = module_cls(model=module_model, context=self.context)
                loaded_modules.append(module)

        self.modules = loaded_modules

This function loads module from UserDashboardModule model not from my custom dashboard file. I guess model should only store the position and some setting for respective modules instead of storing all the modules in db. It never happened with me when i used admin-tools.

Sass styles don't change in Browser

Hi man, i'm trying to customize and complet your styles but i have a problem:
I do changes in sass files but in the browser nothing change, i refresh the browser, nothing, i try find css files but i can't find it.

I don't know what do.

In addition, i want to do violet theme, orange theme, yellow theme, brown theme, and change the color for the other temes, but, again, if the browser doesn't take the new styles, how can i test the styles?

jet-dashboard seems to not be enabled

Hi,
First all, I would like to thank you for this beautiful admin.
I have tried to enable the jet dashboard following the readme on the release 0.9 but that does not seems to work.

I dont see the widget field on the top right corner, I haven't also the Hide applications collapse on the sidebar.

My settings :

# settings.py
INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'modeltranslation',
    'jet.dashboard',
    'jet',
    'django.contrib.admin',
    'compressor',
    'naomi',
    'django_extensions',
    'redactor',
    'cv',
]
# urls.py
urlpatterns = patterns('',
    url(r'^$', lambda r : HttpResponseRedirect('cv/')),
    url(r'^jet/', include('jet.urls', 'jet')),
    url(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^redactor/', include('redactor.urls')),
    url(r'^robots.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /", content_type="text/plain")),
)

My python packages:

Django (1.8.4)
django-appconf (1.0.1)
django-compressor (1.5)
django-extensions (1.5.6)
django-jet (0.0.9)
django-modeltranslation (0.10.1)
django-naomi (0.8)
django-wysiwyg-redactor (0.4.9)
ecdsa (0.13)
Fabric (1.10.2)
google-api-python-client (1.4.2)
httplib2 (0.9.1)
oauth2client (1.5.1)
paramiko (1.15.2)
Pillow (2.9.0)
pip (7.1.2)
pyasn1 (0.1.8)
pyasn1-modules (0.0.7)
pycrypto (2.6.1)
rsa (3.2)
setuptools (18.3.1)
simplejson (3.8.0)
six (1.9.0)
uritemplate (0.6)
Werkzeug (0.10.4)
wheel (0.25.0)

Any idea about this problem ?

django-smart-selects not working in jet

How to create a cascade select in django jet? I am integrate django-smart-selects in my admin but not working. when i use django-admin default not has problem.

list_editable checkbox don't show

list_editable field don't render in admin,

in admin py:
list_editable = ['slider']

checkbox input has html code:

<input checked="checked" id="id_form-0-slider" name="form-0-slider" type="checkbox">

and css rule:

input[type=checkbox] { display: none; }

Update:
if i hardcoded .field-slider in main.js addLabelToCheckboxes $containers then all works fine

Application pins are global?

When I clear out the jet_pinnedapplication table and create an application pin on the current version, it appears for other users aswell.

When they try to delete the pin, it adds the pin instead (because it wasn't added for that user, before).

Features deveolped

Here are a list of works:

  • Merge other PRs
  • Django 1.10 warnings solved
  • Better colors for styles
  • List per page option
  • Site title option
  • Edit bookmarks

Some one have other ideas?

Empty sidebar with custom admin site on Python 3

I have defined a simple custom admin site:

class CustomAdminSite(AdminSite):
    site_header = settings.SITE_TITLE
    site_title = settings.SITE_TITLE
    site_url = settings.SITE_URL
    index_title = "{} Administration".format(settings.SITE_TITLE)

After that the sidebar of my admin no longer showed any apps/models, while they remained in the main part on the right hand side:

af770e40-c795-11e5-91ac-505919006d0c

I assume it is due to the changes of how a method is referencing it's class in Python 2 vs 3.
I found a solution that works for me in Python 3 but do not have the time to implement it cleanly and test it at the moment:

https://github.com/belugame/django-jet/commit/9237d96ade64d534e090e47a18107a26d587bd14

Autocomplete fails because of related_model property

Hi, maybe is not a django-jet issue, but if I use RelatedFieldAjaxListFilter I get a server error because related_model is returning a string instead of a model instance.

I also reported this behaviour on stackoverflow because maybe is a Django issue:
http://stackoverflow.com/questions/35745607/why-djangos-related-model-property-is-returning-string-instead-of-model-instanc

A possible workaround is to directly get the related model through field.remote_field.model

app_label = field.remote_field.model._meta.app_label
model_name = field.remote_field.model._meta.object_name

I need to do this workaround for me and I can make a pull request if you think it is interesting to avoid future problems.

Thanks!

UnicodeDecodeError with python 3.4.2

When running pip install django-jet with python 3.4.2 i got the following error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2496: ordinal not in range(128)

Complete traceback is:

  Downloading django-jet-0.1.0.tar.gz (734kB): 734kB downloaded
  Running setup.py (path:/tmp/pip-build-s6sd7ah1/django-jet/setup.py) egg_info for package django-jet
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-s6sd7ah1/django-jet/setup.py", line 21, in <module>
        long_description=read('README.rst'),
      File "/tmp/pip-build-s6sd7ah1/django-jet/setup.py", line 6, in read
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
      File "/home/edvm/.virtualenvs/inmobiz/lib/python3.4/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2496: ordinal not in range(128)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-s6sd7ah1/django-jet/setup.py", line 21, in <module>

    long_description=read('README.rst'),

  File "/tmp/pip-build-s6sd7ah1/django-jet/setup.py", line 6, in read

    return open(os.path.join(os.path.dirname(__file__), fname)).read()

  File "/home/edvm/.virtualenvs/inmobiz/lib/python3.4/encodings/ascii.py", line 26, in decode

    return codecs.ascii_decode(input, self.errors)[0]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2496: ordinal not in range(128)

Regarding beta phase of this package

I like this plugin and would like to use this in my product. I want to ask certain question regarding its beta phase .

  1. What is the development status of this package?
  2. There is no test written for this package. Is this package production ready?
  3. How much compatible is it with various django versions ?

Ajax lookups on admin change_list filters not working

Hi, I don't know if it is possible, but when I try to something like:

class YourModelAdmin(admin.ModelAdmin):
    list_filter = ['a_foreignkey_field']

When I render the change list all the data is loaded in client instead of make the proper lookups through Ajax as it does from a field represented in a change form.

Am I doing something wrong?

Thanks in advance!

Try add Date and Time format info

I try to do something like django-suit time and date tags for show these in admin, but, i have a ugly bug:
seleccion_013

I do this:

from django.template.defaulttags import NowNode
@register.tag
def jet_time(parser, token):
    return NowNode(get_format('JET_HEADER_TIME_FORMAT'))


@register.assignment_tag
def get_themes():
    return settings.JET_THEMES

I hope that you could these tags but correct form and i try to do other some fixes that do a full pr for you :D

Thank you.

Licensing issues

First GPL2 permits commercial usage so this "Free for non-commercial use under the GPLv2 license." is very wrong. The "issue" with GPL2 it's that being viral it spreads to eventual derivative code.

Second on pypi https://pypi.python.org/pypi/django-jet/ you have an old README version that links to creative commons instead of GPL 2.

License

Django JET is licensed under a The GNU General Public License, Version 2

See online version of this license here: https://creativecommons.org/licenses/by-nc-sa/4.0/

Thanks

checkboxes does not get rendered in custom forms

picking a direct example from django-jet templates, if you try to put checkbox inputs in "password_change_form.html" template, they simply does not get rendered... only the text is rendered

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.