On Fri, Nov 9, 2012 at 7:21 PM, Lucas Nunes ''Ruivinhoshow''
<ruivinhos...@hotmail.com> 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.

Reply via email to