Code Monkey home page Code Monkey logo

django-adminbrowse's People

Contributors

exogen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lukaszb acdha

django-adminbrowse's Issues

Problems caused by egg installs

By default, a simple "easy_install django-adminbrowse" will install to a single .egg file. This breaks django template discovery and makes it complicated to deal with media files since you'd need to extract them from the egg first.

The former could be solved by recommending that the user enable django.template.loaders.eggs.Loader but I'd prefer to avoid an egg install entirely due to the media file issues.

python manage.py test adminbrowse

Appreciate if you can please help resolve.

Creating test database for alias 'default'...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.

........F......F..........F..........F..........................

FAIL: test_default_sets_html_for_empty_field (adminbrowse.tests.TestChangeLink)

Traceback (most recent call last):
File "/Users/x/domains/l/lib/python2.6/site-packages/adminbrowse/tests.py", line 104, in test_default_sets_html_for_empty_field
self.assertEqual(link(self.books[5]).strip(), "Unknown author")
AssertionError: u'' != 'Unknown author'

FAIL: test_default_sets_html_for_empty_set (adminbrowse.tests.TestDirectManyToManyChangeListLink)

Traceback (most recent call last):
File "/Users/x/domains/l/lib/python2.6/site-packages/adminbrowse/tests.py", line 254, in test_default_sets_html_for_empty_set
self.assertEqual(link(self.books[5]).strip(), "No genres")
AssertionError: u'' != 'No genres'

FAIL: test_default_sets_html_for_empty_set (adminbrowse.tests.TestIndirectManyToManyChangeListLink)

Traceback (most recent call last):
File "/Users/x/domains/l/lib/python2.6/site-packages/adminbrowse/tests.py", line 206, in test_default_sets_html_for_empty_set
self.assertEqual(link(self.genres[4]).strip(), "No books")
AssertionError: u'' != 'No books'

FAIL: test_default_sets_html_for_empty_text (adminbrowse.tests.TestOneToManyChangeListLink)

Traceback (most recent call last):
File "/Users/x/domains/l/lib/python2.6/site-packages/adminbrowse/tests.py", line 163, in test_default_sets_html_for_empty_text
self.assertEqual(link(self.people[0]).strip(), "No books")
AssertionError: u'' != 'No books'


Ran 64 tests in 1.910s

FAILED (failures=4)
Destroying test database for alias 'default'...

PyPI distribution is currently incompatible with pip

I just noticed that installing the distribution from PyPI fails when using pip:

pip install django-adminbrowse
Downloading/unpacking django-adminbrowse
  Using download cache from /tmp/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fd%2Fdjango-adminbrowse%2Fdjango-adminbrowse-0.1.2.tar.gz
  Running setup.py egg_info for package django-adminbrowse
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/Users/cadams/.virtualenvs/PROJECT/build/django-adminbrowse/setup.py", line 1, in <module>
        from distribute_setup import use_setuptools
    ImportError: No module named distribute_setup
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/Users/cadams/.virtualenvs/PROJECT/build/django-adminbrowse/setup.py", line 1, in <module>

    from distribute_setup import use_setuptools

ImportError: No module named distribute_setup

New features

Hello,

Using adminbrowse is great, it add even more features to the already standard admin interface.
I like the idea of making this admin more browse-able!
Thanks for creating this app!

Then I made some changes to your app for myself, but I would like to share as it might be useful to others too.

I added:

  • improved 'related_list' which add a link to each object, and limit the number of items to 'max_items' (and add the 'link_to_changelist' link)
  • in the change - view - a 'goto' button/link to foreign / one to one fields
  • limit the choices of onetoonefields in the drop down in change - view (also in inlines)
    (- used static files app)

I've to admit I new to django, but I think the code for this is quit generic.
Then I'm also new to github, so I don't know how to share, as I can't upload a zip here...
Screenshot are available if you like, but can't share here on github :-(.

Best regards,
Karel.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.