Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » How to create the model in a different database from within the same database server. [RSS Feed]

#1 June 16, 2010 20:30:37

t.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

How to create the model in a different database from within the same database server.


Hi,

when I mean database I mean the separate databases from within one
mysql database server. So ex:

DB server: server.example.com
Databases that are contained in the one instance of mysql:
People
Books

I have made the connection in the settings.py at the project level but
in the individual applications suppose People I would like to create
the models that write the tables in that database space and the
application Books to write its models in the Books database. This
should be possible to do but not sure why its not working.

Any thoughts?

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » How to create the model in a different database from within the same database server. [RSS Feed]

Board footer

Moderator control

Enjoy the 19th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support