Hey,

I'm completely new to web2py and I am currently trying to install/run Runestone 
<http://runestoneinteractive.org/build/html/developer.html>on it. I've 
followed the specific instructions given to me by runestone up to the point 
where it says to modify the database if you get an error.

I'm currently getting this error: 
<type 'exceptions.ImportError'> cannot import name uname
and as I understand it this means that my database config is not setup 
correctly -

if 'local' in uname()[1] or 'David' in uname()[0]:
 settings.database_uri = 'sqlite://storage.sqlite'
elif 'webfaction' in uname()[1]: 
    # the real uri is set in gitignore'd 1.py
 settings.database_uri = 'postgres://a_fake_database'
elif 'luther' in uname()[1]:
 settings.database_uri = 'sqlite://storage.sqlite'
else:
 raise RuntimeError('Host unknown, settings not configured') 

Currently I have no local(on my system) database created however I do have 
a university database at sots.brookes that runs on mysql that I can use. 

Can anyone give me any advice on how to either connect to a local database 
or the sots.brookes one so that I can run runestone correctly. 

Thanks in advanced,

David - Complete novice.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to