openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #17798
Re: Inserting into custom tables from horizon.
Horizon has (thus far) been designed to avoid requiring a persistent storage backend such as a database, so you won't find any code in there to do that.
That said, Horizon is built on Django, and Django has a phenomenal ORM which works with most common database backends. Building a Django model for your data and integrating that with your Horizon installation is totally fair game. See Django's documentation for examples there.
However I would advise against using the same database as Nova unless you actually need to do JOINs between the tables. Better to keep a clean separation otherwise.
All the best,
- Gabriel
From: openstack-bounces+gabriel.hurley=nebula.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+gabriel.hurley=nebula.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Srikanth Kumar Lingala
Sent: Thursday, October 25, 2012 8:48 AM
To: openstack@xxxxxxxxxxxxxxxxxxx
Subject: [Openstack] Inserting into custom tables from horizon.
Hi,
I want to create a new custom table in nova database and insert data into that table from Openstack Dashboard, by creating some custom fields.
I am not able to find any SQL executions in the source code, as it is using django framework, which is similar to MVC architecture.
Can anyone point me where can I start doing that?
--
----
Srikanth.
References