List Info

Thread: Using more than one database in the project




Using more than one database in the project
country flaguser name
United States
2007-06-28 05:06:40
Hi!
As I said in previous posts I'm a newbie in these django
stuff.
I'm creating a project that consists in a web based GUI for
managing
some databases. This project has several modules. The user
is
presented with a start page where it is possible to chose
which
database to manage.
I have now finished working on one of the databases module
and
everything is running smoothly.
I will now have to start working with another database but I
have no
idea how to do this. The problem is, the server runs with a
certain
settings.py file, in this settings file I have my database
configuration information. How can I use another database if
the
settings file only has information about one database?
Another question I have is, the user will have to login
before
entering the system. When using sessions with Django, there
is a table
"django_session" that is created on the database
that you are using.
My problem is, if the user has to login and after loggin the
user can
access any of the databases, where should I store this
table? It
doesn't make sense to make the user login again each time
there is a
need to go manage a different database.
I'm kind of lost and a bit stuck here because I have no idea
how to
deal with these two problems.
I read several other posts about this matter but none of
them seemed
to help me.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Using more than one database in the project
user name
2007-06-28 05:21:19
Hi
There is a branch that supports multiple databases and I'm working on getting the merges I've made from trunk checked in at the moment... That's probably your best bet, watch this space!
Ben

On 28/06/07, AnaReis < anasofia_gfrhotmail.com">anasofia_gfrhotmail.com> wrote:

Hi!
As I said in previous posts I'm a newbie in these django stuff.
I&#39;m creating a project that consists in a web based GUI for managing
some databases. This project has several modules. The user is
presented with a start page where it is possible to chose which
database to manage.
I have now finished working on one of the databases module and
everything is running smoothly.
I will now have to start working with another database but I have no
idea how to do this. The problem is, the server runs with a certain
settings.py file, in this settings file I have my database
configuration information. How can I use another database if the
settings file only has information about one database?
Another question I have is, the user will have to login before
entering the system. When using sessions with Django, there is a table
&quot;django_session" that is created on the database that you are using.
My problem is, if the user has to login and after loggin the user can
access any of the databases, where should I store this table? It
doesn&#39;t make sense to make the user login again each time there is a
need to go manage a different database.
I'm kind of lost and a bit stuck here because I have no idea how to
deal with these two problems.
I read several other posts about this matter but none of them seemed
to help me.





--
Regards,
Ben Ford
ben.fordnzgmail.com">ben.fordnzgmail.com
+628111880346
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users"; group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to django-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )