Git Product home page Git Product logo

django-fluent-dashboard's People

Contributors

artscoop avatar dependabot[bot] avatar glic3rinu avatar maartendraijer avatar mrmachine avatar paolodina avatar vdboor 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

django-fluent-dashboard's Issues

Duplicate models in app groups

Here's a configuration example:

  ('Users', {                                                        
      'models': (                                                             
          'django.contrib.auth.*',                                            
          'mymodule.models.UserProfile',                                     
          ),                                                                  
  }),                                                                         
  ('My Module', {                                                                  
      'models': (                                                             
          'mymodule.*',                                               
      ),                                                                      
      'collapsible': False,
  })

The result is not as I expect, UserProfile is displayed twice!
I'd like to see every model only once: in "Users" i want to see what i defined while in "My Model" (as I use the "*") I want every module except for the ones I had already defined elsewhere.

Thanks ;)

Bug - version .: django_fluent_dashboard-0.5.3 ...

Please verify in your file "../django-fluent-dashboard/fluent_dashboard/appgroups.py" in the lines 6 and 83 as follow ...

from future.utils import iteritems
for (name, order) in iteritems(appsettings.FLUENT_DASHBOARD_CMS_MODEL_ORDER):

To solve that "bug" ..., i have chaged them as below ...

( commented ) # from future.utils import iteritems
for name, order in appsettings.FLUENT_DASHBOARD_CMS_MODEL_ORDER.iteritems():

And everything have worked well again ...

Doesn't seems to work with Django 3

After updating to Django 3 my django admin layout is broken, it shows the fluent dashboard but when I enter an Object it shows the old(normal django) and new layout (Fluent)

Varnish appears to be required when attempting to use `dashboardmods` (even if not using varnish as caching strategy).

I am guessing that it should be possible to use dashboardmods with fluent-dashboard to display cache statistics when using other caching strategies?

fluent_dashboard/modules.py:

        if 'dashboardmods' in settings.INSTALLED_APPS:
            import dashboardmods
            memcache_mods = dashboardmods.get_memcache_dash_modules()

            try:
                varnish_mods = dashboardmods.get_varnish_dash_modules()
            except (socket.error, KeyError) as e:
                # dashboardmods 2.2 throws KeyError for 'cache_misses' when the Varnish cache is empty.
                # Socket errors are also ignored, to work similar to the memcache stats.
                logger.exception("Unable to request Varnish stats: {0}".format(str(e)))
                varnish_mods = []

Perhaps we should catch ImportError here as well as socket.error and KeyError?

IntegrityError at /admin/report_builder/report/add/

Request Method: POST
Request URL: https://xx.xx.xx.xx/admin/report_builder/report/add/
Django Version: 1.6
Exception Type: IntegrityError
Exception Value:
(1048, "Column 'distinct' cannot be null")
Exception Location: /usr/lib64/python2.6/site-packages/MySQLdb/connections.py in defaulterrorhandler, line 36
Python Executable: /usr/bin/python
Python Version: 2.6.9
Python Path:
['/usr/lib64/python26.zip',
'/usr/lib64/python2.6',
'/usr/lib64/python2.6/plat-linux2',
'/usr/lib64/python2.6/lib-tk',
'/usr/lib64/python2.6/lib-old',
'/usr/lib64/python2.6/lib-dynload',
'/usr/lib64/python2.6/site-packages',
'/usr/lib64/python2.6/site-packages/PIL',
'/usr/lib/python2.6/site-packages',
'/opt/smarti/dashboard/']
Server time: Mon, 25 Nov 2013 22:53:30 +0530

Environment:

Request Method: POST
Request URL: https://54.200.87.254/admin/report_builder/report/add/

Django Version: 1.6
Python Version: 2.6.9
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'management',
'report_builder')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response

  1.                 response = wrapped_callback(request, _callback_args, *_callback_kwargs)
    
    File "/usr/lib/python2.6/site-packages/django/contrib/admin/options.py" in wrapper
  2.             return self.admin_site.admin_view(view)(_args, *_kwargs)
    
    File "/usr/lib/python2.6/site-packages/django/utils/decorators.py" in _wrapped_view
  3.                 response = view_func(request, _args, *_kwargs)
    
    File "/usr/lib/python2.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  4.     response = view_func(request, _args, *_kwargs)
    
    File "/usr/lib/python2.6/site-packages/django/contrib/admin/sites.py" in inner
  5.         return view(request, _args, *_kwargs)
    
    File "/usr/lib/python2.6/site-packages/django/utils/decorators.py" in _wrapper
  6.         return bound_func(_args, *_kwargs)
    
    File "/usr/lib/python2.6/site-packages/django/utils/decorators.py" in _wrapped_view
  7.                 response = view_func(request, _args, *_kwargs)
    
    File "/usr/lib/python2.6/site-packages/django/utils/decorators.py" in bound_func
  8.             return func(self, _args2, *_kwargs2)
    
    File "/usr/lib/python2.6/site-packages/django/db/transaction.py" in inner
  9.             return func(_args, *_kwargs)
    
    File "/usr/lib/python2.6/site-packages/django/contrib/admin/options.py" in add_view
  10.             self.save_model(request, new_object, form, False)
    
    File "/usr/lib/python2.6/site-packages/report_builder/admin.py" in save_model
  11.     obj.save()
    
    File "/usr/lib/python2.6/site-packages/report_builder/models.py" in save
  12.     super(Report, self).save(_args, *_kwargs)
    
    File "/usr/lib/python2.6/site-packages/django/db/models/base.py" in save
  13.                    force_update=force_update, update_fields=update_fields)
    
    File "/usr/lib/python2.6/site-packages/django/db/models/base.py" in save_base
  14.         updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
    
    File "/usr/lib/python2.6/site-packages/django/db/models/base.py" in _save_table
  15.         result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
    
    File "/usr/lib/python2.6/site-packages/django/db/models/base.py" in _do_insert
  16.                            using=using, raw=raw)
    
    File "/usr/lib/python2.6/site-packages/django/db/models/manager.py" in _insert
  17.     return insert_query(self.model, objs, fields, **kwargs)
    
    File "/usr/lib/python2.6/site-packages/django/db/models/query.py" in insert_query
  18. return query.get_compiler(using=using).execute_sql(return_id)
    
    File "/usr/lib/python2.6/site-packages/django/db/models/sql/compiler.py" in execute_sql
  19.         cursor.execute(sql, params)
    
    File "/usr/lib/python2.6/site-packages/django/db/backends/util.py" in execute
  20.         return super(CursorDebugWrapper, self).execute(sql, params)
    
    File "/usr/lib/python2.6/site-packages/django/db/backends/util.py" in execute
  21.             return self.cursor.execute(sql, params)
    
    File "/usr/lib/python2.6/site-packages/django/db/backends/mysql/base.py" in execute
  22.             six.reraise(utils.IntegrityError, utils.IntegrityError(*tuple(e.args)), sys.exc_info()[2])
    
    File "/usr/lib/python2.6/site-packages/django/db/backends/mysql/base.py" in execute
  23.         return self.cursor.execute(query, args)
    
    File "/usr/lib64/python2.6/site-packages/MySQLdb/cursors.py" in execute
  24.         self.errorhandler(self, exc, value)
    
    File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py" in defaulterrorhandler
  25. raise errorclass, errorvalue
    

Exception Type: IntegrityError at /admin/report_builder/report/add/
Exception Value: (1048, "Column 'distinct' cannot be null")

Can i exclude some models from FLUENT_DASHBOARD_APP_GROUPS?

This is not a bug, but a new-feature request (if not implemented)
As i have written in the title, can i exclude some models from FLUENT_DASHBOARD_APP_GROUPS?

FLUENT_DASHBOARD_APP_GROUPS = (
(gettext('Administration'), {
'models': (
'django.contrib.auth.',
'django.contrib.sites.
',
),
'collapsible': True,
}),
(gettext('Poll Management'), {
'models': (
'project.apps.news.*',
'project.apps.polls.poll', # This does not display anything
),
'collapsible': True,
}),
)

I can't see an help in the documentation
Thanks in advance

Internal Server Error when show the dashboard by an user without the Change Permission in a model -> KeyError 'change_url'

#fluent_dashboard/modules.py line 128  
model_name = model['change_url'].strip('/').split('/')[-1]   # /foo/admin/appname/modelname

I know that is strange give to an user the add and delete permission without the change permission, but it is possible.

probably because it lacks the control over user permissions

Error:
KeyError at /admin/
'change_url'
Request Method: GET
Request URL: http://localhost:8000/admin/
Django Version: 1.4.5
Exception Type: KeyError
Exception Value:
'change_url'
Exception Location: /srv/django/sample/env/local/lib/python2.7/site-packages/fluent_dashboard/modules.py in init_with_context, line 128

Code should follow PEP8 guidelines

Following errors are found when flake8 is run,
branch: master
$ pip install flake8
$ flake8 --ignore=E501 .
./setup.py:48:19: E251 unexpected spaces around keyword / parameter equals
./setup.py:48:21: E251 unexpected spaces around keyword / parameter equals
./docs/conf.py:14:11: E401 multiple imports on one line
./docs/conf.py:26:1: E265 block comment should start with '# '
./docs/conf.py:42:1: E265 block comment should start with '# '
./docs/conf.py:62:1: E265 block comment should start with '# '
./docs/conf.py:66:1: E265 block comment should start with '# '
./docs/conf.py:68:1: E265 block comment should start with '# '
./docs/conf.py:75:1: E265 block comment should start with '# '
./docs/conf.py:78:1: E265 block comment should start with '# '
./docs/conf.py:82:1: E265 block comment should start with '# '
./docs/conf.py:86:1: E265 block comment should start with '# '
./docs/conf.py:92:1: E265 block comment should start with '# '
./docs/conf.py:104:1: E265 block comment should start with '# '
./docs/conf.py:107:1: E265 block comment should start with '# '
./docs/conf.py:111:1: E265 block comment should start with '# '
./docs/conf.py:114:1: E265 block comment should start with '# '
./docs/conf.py:118:1: E265 block comment should start with '# '
./docs/conf.py:123:1: E265 block comment should start with '# '
./docs/conf.py:132:1: E265 block comment should start with '# '
./docs/conf.py:136:1: E265 block comment should start with '# '
./docs/conf.py:139:1: E265 block comment should start with '# '
./docs/conf.py:143:1: E265 block comment should start with '# '
./docs/conf.py:146:1: E265 block comment should start with '# '
./docs/conf.py:149:1: E265 block comment should start with '# '
./docs/conf.py:152:1: E265 block comment should start with '# '
./docs/conf.py:155:1: E265 block comment should start with '# '
./docs/conf.py:158:1: E265 block comment should start with '# '
./docs/conf.py:161:1: E265 block comment should start with '# '
./docs/conf.py:166:1: E265 block comment should start with '# '
./docs/conf.py:169:1: E265 block comment should start with '# '
./docs/conf.py:178:1: E122 continuation line missing indentation or outdented
./docs/conf.py:179:1: E122 continuation line missing indentation or outdented
./docs/conf.py:179:1: E265 block comment should start with '# '
./docs/conf.py:181:1: E122 continuation line missing indentation or outdented
./docs/conf.py:182:1: E122 continuation line missing indentation or outdented
./docs/conf.py:182:1: E265 block comment should start with '# '
./docs/conf.py:184:1: E122 continuation line missing indentation or outdented
./docs/conf.py:185:1: E122 continuation line missing indentation or outdented
./docs/conf.py:185:1: E265 block comment should start with '# '
./docs/conf.py:191:3: E121 continuation line under-indented for hanging indent
./docs/conf.py:197:1: E265 block comment should start with '# '
./docs/conf.py:201:1: E265 block comment should start with '# '
./docs/conf.py:204:1: E265 block comment should start with '# '
./docs/conf.py:207:1: E265 block comment should start with '# '
./docs/conf.py:210:1: E265 block comment should start with '# '
./docs/conf.py:213:1: E265 block comment should start with '# '
./docs/conf.py:226:1: E265 block comment should start with '# '
./docs/conf.py:235:3: E121 continuation line under-indented for hanging indent
./docs/conf.py:241:1: E265 block comment should start with '# '
./docs/conf.py:244:1: E265 block comment should start with '# '
./docs/conf.py:247:1: E265 block comment should start with '# '
./fluent_dashboard/items.py:4:1: F401 'django' imported but unused
./fluent_dashboard/items.py:34:14: E201 whitespace after '{'
./fluent_dashboard/items.py:38:13: E124 closing bracket does not match visual indentation
./fluent_dashboard/items.py:92:69: F841 local variable 'e' is assigned to but never used
./fluent_dashboard/appsettings.py:50:21: E241 multiple spaces after ':'
./fluent_dashboard/appsettings.py:52:49: E261 at least two spaces before inline comment
./fluent_dashboard/appsettings.py:52:50: E262 inline comment should start with '# '
./fluent_dashboard/appsettings.py:59:62: E261 at least two spaces before inline comment
./fluent_dashboard/appsettings.py:59:63: E262 inline comment should start with '# '
./fluent_dashboard/appsettings.py:79:65: E261 at least two spaces before inline comment
./fluent_dashboard/appsettings.py:79:66: E262 inline comment should start with '# '
./fluent_dashboard/appsettings.py:179:5: E265 block comment should start with '# '
./fluent_dashboard/dashboard.py:14:1: F401 'admin_tools.dashboard.modules.Group' imported but unused
./fluent_dashboard/dashboard.py:91:61: E262 inline comment should start with '# '
./fluent_dashboard/dashboard.py:119:12: E713 test for membership should be 'not in'
./fluent_dashboard/modules.py:188:9: E122 continuation line missing indentation or outdented
./fluent_dashboard/modules.py:189:9: E122 continuation line missing indentation or outdented
./fluent_dashboard/modules.py:216:17: E221 multiple spaces before operator

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.