Tuesday, 3 July 2012

Fang of Mongo Installation



Ubuntu 10.10: - requirements:  
  $sudo aptitude install python-setuptools mongodb python-django python-pymongo

if not getting installed
- install sudo aptitude with 

$ sudo apt-get install <selected package>
"aptitude" can be your selected package*

then try to install the above command.

installation of Fang of Mango:

  • download archive and unpack into directory of your choice
    after downloading, open console, cd to directory where the files are and type:
    $cd fangofmongo
    $python ./manage.py runserver
    now point your browser to http://localhost:8000/fangofmongo/ and enjoy

    If any error raises at running server regarding time
    ex:raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)  
    try whether the timezone present in the /usr/share/zoneinfo/  directory.. 
    if the time zone is not present then go to fangofmongo extracted directory and open form/settings.py   change the TIME_ZONE = 'America/North_Dakota'  (America/North_Dakota) these should be in your "zone info"  .
    After completing the installation.... try to run the last command. your localhost:8000.
    if still your db is not getting retrieved.. having a problem with --
    error:AttributeError("'module' object has no attribute 'binary',").
    then update your fangofmongo/fom/views.py as follows:
    go to this link and make this changes as shown...
    https://github.com/JeffAMcGee/Fang-of-Mongo/commit/202fd95b5a6558fc60d85bd94ec6a9c6a3c14a2e#diff-0
    these are the probs i faced and got solved and now working fine..
     Enjoying with Fang of Mango.... :)