django-fluent / django-fluent-dashboard Goto Github PK
View Code? Open in Web Editor NEWAn improved django-admin-tools dashboard for Django projects
Home Page: http://django-fluent.org/
License: Apache License 2.0
An improved django-admin-tools dashboard for Django projects
Home Page: http://django-fluent.org/
License: Apache License 2.0
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 ;)
Add a "Recent comments" module to the dashboard.
Inspiration from https://mezzanine.readthedocs.org/en/latest/overview.html
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 ...
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)
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
?
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
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
return self.admin_site.admin_view(view)(_args, *_kwargs)
response = view_func(request, _args, *_kwargs)
response = view_func(request, _args, *_kwargs)
return view(request, _args, *_kwargs)
return bound_func(_args, *_kwargs)
response = view_func(request, _args, *_kwargs)
return func(self, _args2, *_kwargs2)
return func(_args, *_kwargs)
self.save_model(request, new_object, form, False)
obj.save()
super(Report, self).save(_args, *_kwargs)
force_update=force_update, update_fields=update_fields)
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
using=using, raw=raw)
return insert_query(self.model, objs, fields, **kwargs)
return query.get_compiler(using=using).execute_sql(return_id)
cursor.execute(sql, params)
return super(CursorDebugWrapper, self).execute(sql, params)
return self.cursor.execute(sql, params)
six.reraise(utils.IntegrityError, utils.IntegrityError(*tuple(e.args)), sys.exc_info()[2])
return self.cursor.execute(query, args)
self.errorhandler(self, exc, value)
raise errorclass, errorvalue
Exception Type: IntegrityError at /admin/report_builder/report/add/
Exception Value: (1048, "Column 'distinct' cannot be null")
I want to display "Pages" under CMS and "Shared Content" section in admin home page. How can I add that?
Thanks in advance.
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
#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
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
A fresh, Python 3, Django 1.8.2 installation for fluent-dashboard seems to stop working after installing fluent-pages, with an error:
AttributeError at /admin/fluent_pages/page/
'dict' object has no attribute 'iteritems'
Traceback: http://dpaste.com/13X11MY
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.