Error No Module Named Admin_tools.dashboard
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Django custom admin dashboard error up vote 3 down vote favorite 1 I tried to use django-grappelli dashboard, and the admin interface is giving error. Django Version: 1.4.1 Exception Type: ImportError Exception Value: No module named dashboard In template /.../lib/python2.7/site-packages/grappelli/dashboard/templates/admin/index.html, error at line 32 31 {% block content %} 32 {% grp_render_dashboard %} 33 {% endblock %} I could able to use the grappelli admin interface prior to the change. Steps taken were according to the manual. I added these to my settings.py GRAPPELLI_INDEX_DASHBOARD = 'myproj.dashboard.CustomIndexDashboard' ... TEMPLATE_CONTEXT_PROCESSORS = ( "django.contrib.auth.context_processors.auth", "django.core.context_processors.request", "django.core.context_processors.i18n", 'django.contrib.messages.context_processors.messages', ) INSTALLED_APPS = ( 'grappelli.dashboard', 'grappelli', 'django.contrib.admin', ... dashboard.py is in the root directory (myproj). and it had a class in it. class CustomIndexDashboard(Dashboard): myproj ├── admin │ ├── css : ├── dashboard.py ├── grappelli │ ├── images │ │ ├── backgrounds ├── myapp │ ├── __init__.py │ ├── __init__.pyc python django django-grappelli share|improve this question asked Sep 13 '12 at 18:45 bsr 13.4k47141237 add a comment| 2 Answers 2 active oldest votes up vote 16 down vote accepted Ok, it got working. dashboard.py needed to move to myproj/myproj share|improve this answer answered
and dashboard modules API The Dashboard class The AppIndexDashboard class The DashboardModule class The Group class The LinkList class The AppList class The ModelList class The RecentActions class The Feed class Integration with third party applications Contributing to django-admin-tools Testing of django-admin-tools django-admin-tools Docs » The django-admin-tools http://stackoverflow.com/questions/12412786/django-custom-admin-dashboard-error dashboard and dashboard modules API Edit on GitHub The django-admin-tools dashboard and dashboard modules API¶ This section describe the API of the django-admin-tools dashboard and dashboard modules. Make sure you read this before creating your custom dashboard and custom modules. ..note:: If your http://django-admin-tools.readthedocs.io/en/latest/dashboard.html layout seems to be broken or you have problems with included javascript files, you should try to reset your dashboard preferences (assuming a MySQL backend, the truncate command also works in postgress): python manage.py dbshell mysql> truncate admin_tools_dashboard_preferences; For more information see this issue. The Dashboard class¶ class admin_tools.dashboard.Dashboard(**kwargs)¶ Base class for dashboards. The Dashboard class is a simple python list that has three additional properties: title The dashboard title, by default, it is displayed above the dashboard in a h2 tag. Default value: ‘Dashboard'. template The template to use to render the dashboard. Default value: ‘admin_tools/dashboard/dashboard.html' columns An integer that represents the number of columns for the dashboard. Default value: 2. If you want to customize the look o
Foundation Core Development Package Index > django-admin-tools > 0.8.0 Not Logged In Login Register Lost Login? Use OpenID Login with Google django-admin-tools 0.8.0 Downloads ↓ A collection of tools for the django administration interface Package https://pypi.python.org/pypi/django-admin-tools Documentation django-admin-tools is a collection of extensions/tools for the default django https://groups.google.com/d/topic/django-admin-tools/BcENBlrvKZo administration interface, it includes: a full featured and customizable dashboard; a customizable menu bar; tools to make admin theming easier. The code is hosted on Github. Django-admin-tools is generously documented, you can browse the documentation online. a good start is to read the quickstart guide. The project was error no created by David Jean Louis and was previously hosted on Bitbucket. Please join the mailing list if you want to discuss of the future of django-admin-tools. Requirements django-admin-tools requires Python 2.7 or Python 3.3 or newer and Django 1.7 or newer. For older python and django versions please use the 0.5.2 version of django-admin-tools which is available on Pypi. Installation error no module To install django-admin-tools, run the following command inside this directory: python setup.py install If you have the Python easy_install utility available, you can also type the following to download and install in one step: easy_install django-admin-tools Or if you’re using pip: pip install django-admin-tools Or if you’d prefer you can simply place the included “admin_tools” directory somewhere on your python path, or symlink to it from somewhere on your Python path; this is useful if you’re working from a Mercurial checkout. An installation guide is available in the documentation. Documentation Extensive documentation is available, it was made with the excellent Sphinx program Translations There is a a transifex project for django-admin-tools. Screenshots The django admin login screen: The admin index dashboard: The admin menu: Dashboard modules can be dragged, collapsed, closed etc.: The app index dashboard: django-admin-tools changelog Version 0.8.0, 12 August 2016: This release adds support for Django 1.10 and fixes various bugs and documentation issues. Django 1.10 support Dashboard pre_content and post_content now accept HTML by default Use the staff_member_required decorator instead of login_required
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen