Re: login using an external database

2012-11-09 Thread Satinderpal Singh
On Fri, Nov 9, 2012 at 7:21 PM, Lucas Nunes ''Ruivinhoshow''
 wrote:
> i mean  db = database
>
>>
>> uhmm... but the second app isn't in django.  it was built in php I
>> think... or it doesn't matter?
>
>
> the important is:  I have access to a database that is part of another
> application and want to use the login fields from there to log into my
> system .. a database for two apps
I don't know exactly, but this may help you:
Describe the two databases in the settings file like:

DATABASES = {
'default': {
'NAME': 'app_data',
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'USER': 'postgres_user',
'PASSWORD': 's3krit'
},
'users': {
'NAME': 'user_data',
'ENGINE': 'django.db.backends.mysql',
'USER': 'mysql_user',
'PASSWORD': 'priv4te'
}
}


--
Satinderpal Singh
http://satindergoraya.blogspot.in/
http://satindergoraya91.blogspot.in/

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



Re: login using an external database

2012-11-09 Thread Lucas Nunes ''Ruivinhoshow''
i mean  db = database
 

> uhmm... but the second app isn't in django.  it was built in php I 
> think... or it doesn't matter?
>
 
the important is:  I have access to a database that is part of another 
application and want to use the login fields from there to log into my 
system .. a database for two apps
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/fF5PL45UgYsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: login using an external database

2012-11-09 Thread Satinderpal Singh
On Fri, Nov 9, 2012 at 6:02 PM, Lucas Nunes ''Ruivinhoshow''
 wrote:
> hi, i'm brazilian (sorry for dude engl.. xD ). I want to login an user using
> the tables that exists in other db...
What do you mean by other db,
> i'll need the tables named  'matricula' and 'password',  and so i log on
> this user in my app...
If you want to join the two application databases, use the following query.
from django.appName import TableName

--
Satinderpal Singh
http://satindergoraya.blogspot.in/
http://satindergoraya91.blogspot.in/

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



login using an external database

2012-11-09 Thread Lucas Nunes ''Ruivinhoshow''
hi, i'm brazilian (sorry for dude engl.. xD ). I want to login an user 
using the tables that exists in other db... 
i'll need the tables named  'matricula' and 'password',  and so i log on 
this user in my app...  

can som1 help me ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/HviDU6jKb8sJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.