From 26a2084f03f3088264da78c11978aea5193286e7 Mon Sep 17 00:00:00 2001 From: sshwsfc Date: Mon, 6 May 2013 17:45:14 +0800 Subject: [PATCH] Update setup.py and install document and demo datas. --- README.md | 25 ++++++++++++++++++------- demo_app/app/adminx.py | 13 ------------- demo_app/data.db | Bin 339968 -> 339968 bytes demo_app/demo/settings.py | 5 ----- setup.py | 7 ++++--- 5 files changed, 22 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 24aded6e1..7625ad7f1 100644 --- a/README.md +++ b/README.md @@ -38,18 +38,29 @@ Screenshots ![Edit inline](https://raw.github.com/sshwsfc/django-xadmin/docs-chinese/doc/images/plugins/editable.png) +Get Started +----------- + +**Install** + +Xadmin is best installed via PyPI. To install the latest version, run: + +```bash +pip install django-xadmin +``` + +or Install form github source: + +```bash +pip install git+git://github.com/sshwsfc/django-xadmin.git +``` + Documentation -------- * English (coming soon) * [Chinese](https://xadmin.readthedocs.org/en/latest/index.html) - -Get Started ------------ - -Coming soon. - Online Group -------------- @@ -63,7 +74,7 @@ cd demo_app ./manage.py runserver ``` -Open http://127.0.0.1:8000 in your browser +Open http://127.0.0.1:8000 in your browser, the admin user password is ``admin`` Help ---- diff --git a/demo_app/app/adminx.py b/demo_app/app/adminx.py index e4d9e1c8d..22f989e9c 100644 --- a/demo_app/app/adminx.py +++ b/demo_app/app/adminx.py @@ -166,16 +166,3 @@ def avg_count(self, instance): xadmin.site.register(MaintainLog, MaintainLogAdmin) xadmin.site.register(IDC, IDCAdmin) xadmin.site.register(AccessRecord, AccessRecordAdmin) - -# Override auth admins -from django.contrib.auth.models import User -from xadmin.plugins.auth import UserAdmin - -class DemoUserAdmin(UserAdmin): - def save_models(self): - pass - def delete_model(self): - pass - -xadmin.site.unregister(User) -xadmin.site.register(User, DemoUserAdmin) diff --git a/demo_app/data.db b/demo_app/data.db index 7748d290944935c52c45ddeed1d49f39f4447353..0933552e995cfd6cef16b0da98ca22cac09afa5b 100644 GIT binary patch delta 97 zcmZp8Aky$aWP&u~qKPujjEgoVSnankF32=ZGx8}-&G$-H$xY01(GLj;Ps$4j4$s!t z&+soy^r