Skip to content

Commit

Permalink
Update setup.py and install document and demo datas.
Browse files Browse the repository at this point in the history
  • Loading branch information
sshwsfc committed May 6, 2013
1 parent 71bf06e commit 26a2084
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 28 deletions.
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------

Expand All @@ -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
----
Expand Down
13 changes: 0 additions & 13 deletions demo_app/app/adminx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Binary file modified demo_app/data.db
Binary file not shown.
5 changes: 0 additions & 5 deletions demo_app/demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
try:
import dj_database_url
DATABASES['default'] = dj_database_url.config()
except Exception:
pass
# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = '*'
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@

setup(
name='django-xadmin',
version='0.1.0',
version='0.1.0-dev',
description='Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap.',
long_description=open('README.md').read(),
author='sshwsfc',
author_email='sshwsfc@gmail.com',
url='http://xadmin.io',
url='http://www.xadmin.io',
download_url='http://github.com/sshwsfc/django-xadmin/archive/master.zip',
packages=['xadmin', 'xadmin.plugins', 'xadmin.templatetags', 'xadmin.tests', 'xadmin.views'],
include_package_data=True,
zip_safe=False,
keywords=['admin', 'django', 'xadmin', 'bootstrap'],
classifiers=[
'Development Status :: 1 - Alpha',
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
Expand Down

0 comments on commit 26a2084

Please sign in to comment.