Coder Social home page Coder Social logo

fiedzia / fang-of-mongo Goto Github PK

View Code? Open in Web Editor NEW
260.0 15.0 61.0 3.07 MB

web based gui for mongodb created with pyhon, django and jquery.

Home Page: http://linuxcoder.co.uk:8000/fangofmongo/

License: Other

Python 16.78% JavaScript 78.75% CSS 4.46%

fang-of-mongo's Introduction

Fang of Mongo - web based user interface for MongoDB build with django and jquery.

It will allow you to explore content of mongodb with simple but (hopefully) pleasant user interface.

Curren status:

Fang of mongo is actually rather proof of concept for mongo ui then anything working properly. Expect all kinds of bugs and limitations. This is work in progress.

For installation instruction, see INSTALL file To get the idea of code internals, see code_hacking.txt

INSTALLATION:

  • Ubuntu 10.10: - requirements:

    sudo aptitude install python-setuptools mongodb python-django python-pymongo

Project goals:

  • allow users to easily explore mongdb content and any metainformation it may provide
  • Long term goal is to being able to perform any operation that can be done using mongodb console

TODO (in order of importance):

  • make sure fom works correctly (by creating unittests and usable dataset)
  • rethinking plugin interface
  • collection and db operations
  • data export (html, json, csv, xml)
  • support for database credentials
  • user management
  • implement some form of mongo console

UI comments (thanks matt):

1.) Look at jquery ui autocomplete for the searches. 2.) Less draggable area dont allow it to cover the top menu. 3.) Wider text boxes with larger font. 4.) More margin between elements (pretty much everywhere) 5.) Effects / transitions between panes. 6.) Ive always though YAML has the best way to cleanly show

collections. http://yaml.org/spec/1.0/#id2489726 If that can be extended so that every array or object can be shown or hidden by the user that would be a huge win.
7.) If your going with the whole draggable idea, why not make it so
that you can open more than one collection at once and be able to minimize them. See: http://desktop.sonspring.com/ for ideas.

Down the road ideas: 1.) Completely themeable using the theme roller with all the pre-built

themes as an option right in the page itself.
2.) Drag and drop query builder with all of the special variables
($set, $unset ect...) similar to the MySQL workbench query builder.

3.) Full set of CRUD operations to perform on the database.

author: Maciej Dziardziel ([email protected]) website:i http://github.com/Fiedzia/Fang-of-Mongo twitter: @fangofmongo

fang-of-mongo's People

Contributors

fiedzia avatar japerk avatar minimal 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fang-of-mongo's Issues

ImportError: cannot import name execute_manager

Root cause:
This project is very old and not maintained any more. In other words scrap it and look for something else.

If you still want to use this, you need to use an earlier Django version than 1.4:
execute_manager deprecated in Django 1.4 as part of the project layout refactor and was removed in 1.6 per the deprecation timeline: https://docs.djangoproject.com/en/1.4/internals/deprecation/#id3

To fix this error you should either install a compatible version of Django for the project or update the manage.py to new style which does not use execute_manager: https://docs.djangoproject.com/en/1.4/releases/1.4/#updated-default-project-layout-and-manage-py Most likely if your manage.py is not compatible with 1.6 then neither is the rest of the project. You should find the appropriate Django version for the project.

Installation Requirements

Pymongo 1.8
Django 1.2 (it seems)

... this project is very old and has some weird quirks. Maybe starting from scratch is something that is needed for this.

Specify database at login

Hello,

There is a issue when trying to connect to a server that has restrictions on reading the database list.

On my setup the user I'm using only has permissions on a specific database.
From console I connect using
mongo myhost:27017/allowed_database -u user -p pass

On the FangOfMongo login page there is no way to specify the database.

I hope to see this feature added :)

is this a bug?

SyntaxError at /fangofmongo/
invalid syntax (views.py, line 127)
Request Method: GET
Request URL: http://192.168.9.109:8080/fangofmongo/
Django Version: 1.2.3
Exception Type: SyntaxError
Exception Value:
invalid syntax (views.py, line 127)
Exception Location: /usr/lib/python2.4/site-packages/django/utils/importlib.py in import_module, line 35
Python Executable: /usr/bin/python
Python Version: 2.4.3
Python Path: ['/home/jia.zhao/Fang-of-Mongo/fangofmongo', '/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r85381-py2.4.egg', '/usr/lib/python2.4/site-packages/pymongo-1.9-py2.4-linux-i686.egg', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/gtk-2.0']
Server time: Sat, 27 Nov 2010 17:41:02 +0000

cannot import name json_util

Hi,

Even if json-utils is installed (pip install json_utils), I still get this error :

ImportError at /fangofmongo/
cannot import name json_util
Request Method: GET
Request URL: http://localhost:8000/fangofmongo/
Django Version: 1.4.1
Exception Type: ImportError
Exception Value:
cannot import name json_util
Exception Location: /Users/chmoulli/Temp/Fang-of-Mongo/fangofmongo/fom/views.py in , line 9
Python Executable: /usr/bin/python
Python Version: 2.7.1
Python Path:
['/Users/chmoulli/Temp/Fang-of-Mongo/fangofmongo',
'/Library/Python/2.7/site-packages/Pygments-1.5-py2.7.egg',
'/Library/Python/2.7/site-packages/nodeenv-0.5.2-py2.7.egg',
'/Library/Python/2.7/site-packages/Markdown-2.1.1-py2.7.egg',
'/Library/Python/2.7/site-packages/elementtree-1.2.7_20070827_preview-py2.7.egg',
'/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages']

What is the python dependency which is missing ?

Regards,

Charles

ReferenceError: fom_init_login_form is not defined

hi,

after starting fang-of-mongo i'm receiving the following error as javascript alert.
ReferenceError: fom_init_login_form is not defined
the connect button is also missing.

thanks and cheers,
marc

Starting FOM

This may sound stupid, but how do you start FOM?

ImproperlyConfigured at /fangofmongo/

Im new at this, although it looks like some important information is not set in the install file:
Probably this could be fixed using the settings.py but no guide can be found for the fang of mongo. Please Help,

Environment:

Request Method: GET
Request URL: http://localhost:8000/fangofmongo/

Django Version: 1.4
Python Version: 2.6.5
Installed Applications:
('django.contrib.contenttypes', 'fangofmongo.fom')
Installed Middleware:
()

Traceback:
File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/handlers/base.py" in get_response

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/home/hmarrao/Programas/Fiedzia-Fang-of-Mongo-444fc22/fangofmongo/fom/views.py" in start_page
  2. return render_to_response('fom/templates/start_page.html', {})
    
    File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/shortcuts/init.py" in render_to_response
  3. return HttpResponse(loader.render_to_string(_args, *_kwargs), **httpresponse_kwargs)
    
    File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py" in render_to_string
  4.     t = get_template(template_name)
    
    File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py" in get_template
  5. template, origin = find_template(template_name)
    
    File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py" in find_template
  6.         loader = find_template_loader(loader_name)
    
    File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py" in find_template_loader
  7.         raise ImproperlyConfigured('Error importing template source loader %s: "%s"' % (loader, e))
    

Exception Type: ImproperlyConfigured at /fangofmongo/
Exception Value: Error importing template source loader django.template.loaders.filesystem.load_template_source: "'module' object has no attribute 'load_template_source'"

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.