I have a MySQL server with hundreds of dbs... is there a way to be able to connect to all these without breaking DRY principles?
On Friday, 2 August 2013 14:26:23 UTC+1, Christian Schmitt wrote: > > You could use django's inbuild ORM: > https://docs.djangoproject.com/en/dev/topics/db/multi-db/ > And just copy the database. > > Am Freitag, 2. August 2013 02:50:35 UTC+2 schrieb Ji Park: >> >> Hello, I'm trying to make an app that can periodically access a remote >> mysql database. >> >> This app will query the remote database and copy some data to the local >> postgresql database. >> >> So far I know that celery can be used to schedule periodic tasks, but I'm >> not sure what to do about querying the remote mysql database server. >> >> Should I just use python's MySQLdb module, does anyone know any other >> python module that I can use to query mysql db? >> >> Would this even be a good way to access remote database server from a >> django app? I'll have to be running a function that is within tasks.py >> periodically (via celery-django), would there be any better way to access >> remote mysql server from a django app in this case? >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/04375d45-95e9-4354-afef-3f6b9e03f38e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.