P
P
pvgdrk2015-01-30 20:20:16
MySQL
pvgdrk, 2015-01-30 20:20:16

What is the best way to create a djabgo project with MySQL database on Azure?

The Django server on Azure can indeed be deployed without editing a single file, without writing a single line of code. This is true if you are deploying through Visul Studio. Unlike Bitnami (on the AWS cloud), where "one-click" deployment is declared, but in practice you have to make (and not all of this is described in the documentation and does not work as described there) edits and add new lines in several apache, mysql and django configuration files before you see the "It Works!" page.
Problem with Django on Azure in MySQL database. You can go the way described in the documentation - use the ClearDB service to manage MySQL databases. This is done quickly and simply - a few clicks. But it's prohibitively expensive and can't be paid for with BizSpark credits or whatever - it's a third party service. Free resources are 20mb and 4 connections - enough for development. But the minimum paid tariff (and it is also intended, as stated in its description, for testing, or very small loads) is $ 10 - 1gb and 15 connections, the minimum working tariff is $ 50 and this is 5gb and 30 connections. For projects at the stage of early development, $ 50 per month for 5gb, well, somehow it’s not very good at all.
It also says in one sentence that you can deploy a MySQL server on a virtual machine yourself. I tried of course. I tried SQL server, SUSE - it did not work out for various reasons (in the case of SUSE, access to the database from a remote computer was not prohibited). By the way, there were lines (database name, host, password, etc.) for connecting only for ADO .Net, ODBC, PHP and JDBC - not for django. I asked in technical support, they answered me that it is possible only through ClearDB. But it seems to me that this answer was not correct - perhaps the specialist was not sufficiently knowledgeable, especially since this contradicts the documentation. I also tried to create a "simple" database, not on a virtual machine - there is some such possibility. In short, I didn't get anything.
It's hard for me to believe that on such a serious resource as Azure, such a neglect of Django is possible.
In short, please share your successful experience in creating a Djabgo project with MySQL database on Azure, if any.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Belotserkovsky, 2015-03-17
@pvgdrk

>>Problem with Django on Azure in MySQL database. You can go the way described in the >> documentation - use the ClearDB service to manage MySQL databases. It's quick and >>easy - just a few clicks. But it's prohibitively expensive and can't be paid for with >>BizSpark credits or whatever - it's a third party service.
Pricing comes from the partner, in this case ClearDB. For this reason, you can't pay with BizSpark credits, and it's hard to say without asking ClearDB why the price is this way.
>> For projects at the start of development, $50 per month for 5gb, well, somehow not at all.
If you are a starting project or a startup, you can submit an application to BizSpark and deploy the infrastructure on a virtual machine. Usually loans are enough to get started.
>> By the way, there were lines (database name, host, password, etc.) for connecting only for ADO .Net, ODBC, >>PHP and JDBC - not for django.
What does connection string mean for django? Connection strings are generated for the most popular consumers, but for Django, you can simply extract this address from the control panel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question