commonsense team mailing list archive
-
commonsense team
-
Mailing list archive
-
Message #00150
Re: [Question #99714]: Can I use the API from a Django project? If not, can I run it as a stand-alone server?
Question #99714 on ConceptNet changed:
https://answers.launchpad.net/conceptnet/+question/99714
Status: Open => Answered
Ken Arnold proposed the following answer:
Certainly! ConceptNet was designed as a set of Django apps. You'll just
need to add the ConceptNet apps to your INSTALLED_APPS variable in
settings.py, and perhaps add a few other settings; csc.django_settings
gives an example configuration (with a few magic things to find or
download the sqlite database).
You'll have to deal with the fact that until recently, Django didn't
support accessing multiple databases in the same project, so you would
have had to keep the ConceptNet data in the same database as the rest of
your project's data. The Django development version, soon to be released
as 1.2, now supports multiple databases, but we don't yet have examples
for you on how to use it.
There has been work towards a web API, but it's not yet mature. I'd
recommend using it directly in your Django project--that's what it was
designed for, and that's what we do.
--
You received this question notification because you are a member of
Commonsense Computing, which is an answer contact for ConceptNet.