Skip to content

Commit 32aa611

Browse files
committed
rename exadmin to xadmin
1 parent e625e06 commit 32aa611

230 files changed

Lines changed: 273 additions & 273 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
django-exadmin [![Build Status](https://travis-ci.org/sshwsfc/django-exadmin.png?branch=master)](https://travis-ci.org/sshwsfc/django-exadmin)
1+
django-xadmin [![Build Status](https://travis-ci.org/sshwsfc/django-xadmin.png?branch=master)](https://travis-ci.org/sshwsfc/django-xadmin)
22
==============
33

44
Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap.
55

66
Live Demo
77
----
88

9-
http://exadmin.herokuapp.com
9+
http://x-admin.herokuapp.com
1010

1111
* User: admin
1212
* Password: admin
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import exadmin
2-
from exadmin import views
1+
import xadmin
2+
from xadmin import views
33
from models import *
4-
from exadmin.layout import *
4+
from xadmin.layout import *
55

6-
from exadmin.plugins.inline import Inline
7-
from exadmin.plugins.batch import BatchChangeAction
6+
from xadmin.plugins.inline import Inline
7+
from xadmin.plugins.batch import BatchChangeAction
88

99
class MainDashboard(object):
1010
widgets = [
@@ -18,14 +18,14 @@ class MainDashboard(object):
1818
{"type": "addform", "model": MaintainLog},
1919
]
2020
]
21-
exadmin.site.register(views.website.IndexView, MainDashboard)
21+
xadmin.site.register(views.website.IndexView, MainDashboard)
2222

2323
class GolbeSetting(object):
2424
globe_search_models = [Host, IDC]
2525
globe_models_icon = {
2626
Host: 'laptop', IDC: 'cloud'
2727
}
28-
exadmin.site.register(views.CommAdminView, GolbeSetting)
28+
xadmin.site.register(views.CommAdminView, GolbeSetting)
2929

3030
class MaintainInline(object):
3131
model = MaintainLog
@@ -146,21 +146,21 @@ def avg_count(self, instance):
146146
"avg_count": {'title': u"Avg Report", "x-field": "date", "y-field": ('avg_count',), "order": ('date',)}
147147
}
148148

149-
exadmin.site.register(Host, HostAdmin)
150-
exadmin.site.register(HostGroup, HostGroupAdmin)
151-
exadmin.site.register(MaintainLog, MaintainLogAdmin)
152-
exadmin.site.register(IDC, IDCAdmin)
153-
exadmin.site.register(AccessRecord, AccessRecordAdmin)
149+
xadmin.site.register(Host, HostAdmin)
150+
xadmin.site.register(HostGroup, HostGroupAdmin)
151+
xadmin.site.register(MaintainLog, MaintainLogAdmin)
152+
xadmin.site.register(IDC, IDCAdmin)
153+
xadmin.site.register(AccessRecord, AccessRecordAdmin)
154154

155155
# Override auth admins
156156
from django.contrib.auth.models import User
157-
from exadmin.plugins.auth import UserAdmin
157+
from xadmin.plugins.auth import UserAdmin
158158

159159
class DemoUserAdmin(UserAdmin):
160160
def save_models(self):
161161
pass
162162
def delete_model(self):
163163
pass
164164

165-
exadmin.site.unregister(User)
166-
exadmin.site.register(User, DemoUserAdmin)
165+
xadmin.site.unregister(User)
166+
xadmin.site.register(User, DemoUserAdmin)

demo_app/data.db

56 KB
Binary file not shown.

demo_app/extest/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
'django.contrib.messages',
129129
'django.contrib.staticfiles',
130130

131-
'exadmin',
131+
'xadmin',
132132
'crispy_forms',
133133
'reversion',
134134

demo_app/extest/urls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from django.conf.urls import patterns, include, url
22

33
# Uncomment the next two lines to enable the admin:
4-
import exadmin
5-
exadmin.autodiscover()
4+
import xadmin
5+
xadmin.autodiscover()
66

7-
from exadmin.plugins import xversion
7+
from xadmin.plugins import xversion
88
xversion.registe_models()
99

1010
urlpatterns = patterns('',
11-
url(r'', include(exadmin.site.urls)),
11+
url(r'', include(xadmin.site.urls)),
1212
)

exadmin/tests/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

exadmin/tests/views/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

exadmin/xadmin.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from setuptools import setup, find_packages
22

33
setup(
4-
name='django-exadmin',
4+
name='django-xadmin',
55
version='0.1.0',
66
description='New style and free plugin django admin module, UI base bootstrap2.',
77
author='TM (sshwsfc)',
88
author_email='[email protected]',
9-
url='http://github.com/sshwsfc/django-exadmin',
9+
url='http://github.com/sshwsfc/django-xadmin',
1010
download_url='',
1111
packages=find_packages(),
1212
include_package_data=True,
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from exadmin.sites import AdminSite, site
1+
from xadmin.sites import AdminSite, site
22

33
def autodiscover():
44
"""
@@ -11,15 +11,15 @@ def autodiscover():
1111
from django.utils.importlib import import_module
1212
from django.utils.module_loading import module_has_submodule
1313

14-
from exadmin import views
15-
from exadmin import plugins
14+
from xadmin import views
15+
from xadmin import plugins
1616

1717
for app in settings.INSTALLED_APPS:
1818
mod = import_module(app)
1919
# Attempt to import the app's admin module.
2020
try:
2121
#before_import_registry = site.copy_registry()
22-
import_module('%s.xadmin' % app)
22+
import_module('%s.admin' % app)
2323
except:
2424
# Reset the model registry to the state before the last import as
2525
# this import will have to reoccur on the next request and this
@@ -30,5 +30,5 @@ def autodiscover():
3030
# Decide whether to bubble up this error. If the app just
3131
# doesn't have an admin module, we can ignore the error
3232
# attempting to import it, otherwise we want it to bubble up.
33-
if module_has_submodule(mod, 'xadmin'):
33+
if module_has_submodule(mod, 'admin'):
3434
raise

0 commit comments

Comments
 (0)