mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-16 22:20:24 +00:00
first commit
This commit is contained in:
commit
568f436d7e
4 changed files with 112 additions and 0 deletions
52
.gitignore
vendored
Normal file
52
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
*.py[co]
|
||||
|
||||
# Packages
|
||||
*.egg
|
||||
*.egg-info
|
||||
dist
|
||||
build
|
||||
eggs
|
||||
parts
|
||||
bin
|
||||
var
|
||||
sdist
|
||||
develop-eggs
|
||||
.installed.cfg
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
.coverage
|
||||
.tox
|
||||
|
||||
#Translations
|
||||
*.mo
|
||||
|
||||
#Mr Developer
|
||||
.mr.developer.cfg
|
||||
|
||||
# Django
|
||||
dev.db*
|
||||
dev
|
||||
*.log
|
||||
local_settings.py
|
||||
collected_static/
|
||||
|
||||
# Local file cruft/auto-backups
|
||||
.DS_Store
|
||||
*~
|
||||
|
||||
# Coverage
|
||||
coverage
|
||||
|
||||
# Sphinx
|
||||
docs/_build
|
||||
docs/_static
|
||||
|
||||
# Launchpad
|
||||
lp-cache
|
||||
_data
|
||||
|
||||
# PostgreSQL
|
||||
logfile
|
||||
26
README.rst
Normal file
26
README.rst
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
===============
|
||||
django-admin2
|
||||
===============
|
||||
|
||||
One of the most useful parts of ``django.contrib.admin`` is the ability to configure various views that touch and alter data. django-admin2 is a complete rewrite of that library using modern Class-Based Views and enjoying a design focused on extendibility. By starting over, we can avoid the legacy code and make it easier to write extensions and themes.
|
||||
|
||||
Basic Pattern
|
||||
==============
|
||||
|
||||
Our goal is to make this API work:
|
||||
|
||||
.. code-block::
|
||||
|
||||
# myapp/admin2.py
|
||||
|
||||
# Import the MongoAdmin base class
|
||||
from admin2.sites import Admin
|
||||
|
||||
# Import your custom models
|
||||
from blog.models import Post
|
||||
|
||||
# Instantiate the Admin class
|
||||
# Then attach the admin object to your model
|
||||
Post.mongoadmin = Admin()
|
||||
|
||||
.. note:: You will notice a difference between how and django.contrib.admin and django-mongonaut do configuration. The former associates the configuration class with the model object via a registration utility, and the latter does so by adding the configuration class as an attribute of the model object.
|
||||
0
docs/TODO
Normal file
0
docs/TODO
Normal file
34
setup.py
Normal file
34
setup.py
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
from setuptools import setup, find_packages
|
||||
|
||||
import admin2
|
||||
|
||||
LONG_DESCRIPTION = open('README.rst').read()
|
||||
|
||||
setup(
|
||||
name='django-admin2',
|
||||
version=admin2.__version__,
|
||||
description="An introspective interface for Django's ORM.",
|
||||
long_description=LONG_DESCRIPTION,
|
||||
classifiers=[
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Environment :: Web Environment",
|
||||
"Framework :: Django",
|
||||
"License :: OSI Approved :: BSD License",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: JavaScript",
|
||||
"Programming Language :: Python :: 2.7",
|
||||
"Programming Language :: Python :: 3.3",
|
||||
"Topic :: Internet :: WWW/HTTP",
|
||||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
],
|
||||
keywords='django,admin',
|
||||
author=mongonaut.__author__,
|
||||
author_email='pydanny@gmail.com',
|
||||
url='http://github.com/pydanny/django-admin2',
|
||||
license='MIT',
|
||||
packages=find_packages(exclude=['examples']),
|
||||
include_package_data=True,
|
||||
install_requires=['django>=1.5.0', 'django-braces=='],
|
||||
zip_safe=False,
|
||||
)
|
||||
Loading…
Reference in a new issue