set-up and usage of mysql in django

13 views
Skip to first unread message

Mahantesh U

unread,
Oct 21, 2013, 12:47:19 AM10/21/13
to django...@googlegroups.com
Pls let me know how to use mysql with django with few examples... I'm new to django.

Thanks
mahantesh

Leonardo Giordani

unread,
Oct 21, 2013, 2:30:05 AM10/21/13
to django...@googlegroups.com
What is your exact problem?

If you need to use a MySQL server you just need to put the server address and credentials in your settings.py file, then run manage.py syncdb, just like you do with the development server. Everything you did in the tutorial (you did it, right?) is still valid, thanks to the layer called ORM, which maps the DB to Python objects.

As for the management you can issue standard SQL commands through the mysql command line tool. I suggest you to use Fabric (http://docs.fabfile.org/en/1.8/) to automate the process.

Feel free to post a more detailed question.
Cheers,

Leo

Leonardo Giordani
Author of The Digital Cat
My profile on About.me - My GitHub page - My Coderwall profile


2013/10/21 Mahantesh U <mahant.u...@gmail.com>
Pls let me know how to use mysql with django with few examples... I'm new to django.

Thanks
mahantesh

--
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...@googlegroups.com.
To post to this group, send email to django...@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/a6eb46a0-55f5-4328-b46a-db2a577a55dd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages