barszczmm / django-wpadmin Goto Github PK
View Code? Open in Web Editor NEWWordPress look and feel for Django administration panel
Home Page: http://django-wpadmin.dev.barszcz.info/
License: Other
WordPress look and feel for Django administration panel
Home Page: http://django-wpadmin.dev.barszcz.info/
License: Other
I am using Django 2.0.1 I installed django-wpadmin from master branch.
When I entered ./manage.py runserver
, I saw the following warning:
UserWarning: Django WP Admin 1.7.4 is not compatible with Django 2.0.1 and may not work properly. You should install Django WP Admin from 2.0.x branch.
However, I cannot find 2.0.x branch.
Hii.. there.. big pardon to ask something...
I already add this code on my django settings.py:
SITE_URL='www.mydomain.tld/somewhere/'
SITE_NAME='My site'
but doesnt works..still doesnt anything happen...
how to costum text and icon, i found on https://github.com/barszczmm/django-wpadmin/blob/master/wpadmin/menu/menus.py , and just re-write class BasicTopMenu(Menu):
class BasicTopMenu(Menu):
"""
Basic default top menu.
"""
def init_with_context(self, context):
admin_site_name = get_admin_site_name(context)
if 'django.contrib.sites' in settings.INSTALLED_APPS:
from django.contrib.sites.models import Site
site_name = Site.objects.get_current().name
site_url = 'http://' + Site.objects.get_current().domain
else:
site_name = _('Site')
site_url = '/'
self.children += [
items.MenuItem(
title=site_name,
url=site_url,
icon='fa-bullseye',
css_styles='font-size: 1.5em;',
),
I change site_name and site_url directly from the code, and also the icon url . Does have a method change the text very simple to do?
Very big thanks and appreciation for the response
Hello :D
I get this error when installing:
django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'wpadmin.templatetags.wpadmin_menu_tags': No module named 'django.utils.importlib
Any fix?
Hi @barszczmm
Look like lots of people want to help to maintain this repository maybe you can consider a project transfer to jazzband ?
Just a suggestion!
Hi, congrats for the project, I like it very much.
I am getting following message on start: UserWarning: Django WP Admin 1.6.3 is not compatible with Django 1.7.1 and may not work properly. You should install Django WP Admin from 1.7.x branch. , but cannot see branch 1.7 here. Can you tell me what is not compatible with django 1.7 to be aware of it.
P.S. Also you should add z-index above 1020 to #bottombar , because In django geo admin the map has z-index 726 and it overlaps your controls.
ImportError raised when trying to load 'w
padmin.templatetags.wpadmin_menu_tags': No module named 'django.utils.importlib'
Hi,
I'm trying to create a modal dialog to display when the admin page is ready using this code in the change_list.txt template :
<script type="text/javascript">
(function($) {
$(document).ready(function($) {
$("#dialog").dialog({
modal: true,
autoOpen: true
});
});
})(django.jQuery);
</script>
..but when I load the page I'm getting "Uncaught TypeError: undefined is not a function".
Dialog is defined in change_list.txt (which is overriden) inside block content like this :
<div id="dialog" title="Title">This is dialog.</div>
What should I do to set this dialog to show?
Horizontal scroll on mobile devices doesn't work.
I'm using admin panel from mobile. I discovered that horizontal scroll doesn't appear on mobile devices.
Do we have any update on responsiveness of wp-admin theme?
I wanna use and contribute with this project, but the licence shoud be more GPL friendly and my project is AGPLv3.
Another reason is that I think you need change de licence to include Font Awesome with your code.
If you change de Licence, I can test this with geodjango.
Cheers
Not sure if this is really an issue or the fact I'm upgrading a legacy site from 1.3 to 1.6.5, but when I add this app, the left-hand bar does not appear and the colors are off. It's the same in Chrome and Firefox and I don't see any missing files/ 404s in the network panel. I've removed the custom /templates/admin/*.html files the site did have and I've run collectstatic
, but the site still looks like this:
There are a couple of other admin packages in use, django-wysiwyg-redactor
and filebrowser
but shutting those off has no effect. What's the best way to debug this?
I am getting below warning
UserWarning: Django WP Admin 1.7.4 is not compatible with Django 1.8.0 and may not work properly. You should install Django WP Admin from 1.8.x branch. UserWarning)
But I dont find 1.8 branch. How to solve this ?
Are you working on it? This is a fine project, should not die!
is there a quick/clean way to override the bullseye icon? By this I mean to an arbitrary icon unrelated to a font.
First wanted to congratulate for the great job before posting the issue I have experienced with Firefox.
In fact, the Login site is showing black in Firefox. This can be reproduced by calling:
http://django-wpadmin.dev.barszcz.info/adminpanel/
in Firefox.
Cheers
Hello there, we was install django-wpadmin
from pip, and have an error like this:
/home/agaust/ENV/djangowp/local/lib/python2.7/site-packages/wpadmin/__init__.py:20: UserWarning: Django WP Admin 1.7.4 is not compatible with Django 1.8.5 and may not work properly. You should install Django WP Admin from 1.8.x branch.
UserWarning)
Can i fix this please?
If in yourapp/admin.py you configure a site header like this, wpadmin won't show it:
admin.site.site_header = "My site administration"
A workaround in menu/menus.py, in class DefaultTopMenu:
from django.contrib.admin import site
title=getattr(site, 'site_header', _('Django administration')),
You may want to get the site from settings.wpadmin['admin']['admin_site'].
I hope it's helpin'.
I just tried to use the django-wpadmin app together with the django-reversion app and noticed that the "Recover deleted [object name plural]" link was missing. Django reversion obviously uses the object-tools block to add this link to the change list. And because the django-wpadmin's change_list.html is not using this block, nothing is being displayed.
Is there any proper solution for this?
Thank you very much in advance.
Best regards,
Rico Moorman
I try the username/password given but it's not working. Any new password?
Thanks
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.