Hi,
Thanks...
The steps to solve my issue:
install mysqlclient: pip install mysqlclient
thanks Tim Graham
Configure in settings: 'ENGINE': 'django.db.backends.mysql',
Thanks Ricardo Prado
Now, all is working fine!
Regards!
AYMG
On Thursday, October 13, 2016 at 8:37:52 PM UTC-5, Ricardo Prado wrote:
>
> First you can install python tools and other librarys
>
> If you using Ubuntu or Debian, check this steps
>
> sudo apt-get install python-setuptools apache2 libapache2-mod-wsgi
>
> sudo apt-get install python-pip
>
> sudo apt-get install *python-dev libmysqlclient-dev*
>
> Don't use
> 'ENGINE': 'mysql.connector.django',
>
> USE
> 'ENGINE': 'django.db.backends.mysql',
>
> I hope help you
>
>
>
> Em quinta-feira, 13 de outubro de 2016 19:47:02 UTC-3, Andres Marin
> escreveu:
>>
>> Dear all,
>>
>> I'm trying to learn about django, follow the documentation, in my first:
>>
>> python manage.py migrate
>>
>>
>> all time get this error:
>>
>>
>> File
>> "/usr/local/lib/python3.5/site-packages/mysql/connector/django/operations.py",
>>
>> line 223, in bulk_insert_sql
>>
>> return "VALUES " + ", ".join([items_sql] * num_values)
>>
>> TypeError: can't multiply sequence by non-int of type 'tuple'
>>
>>
>> I'm ussing mysql-connector-python-2.1.4 to connect to mysql:
>>
>>
>> settings.py:
>>
>> ...
>>
>> 'default': {
>>
>> 'NAME': 'firstapp',
>>
>> 'ENGINE': 'mysql.connector.django',
>>
>> ...
>>
>> Python 3.5.2
>>
>> django 1.10.2
>>
>> mysql 5.6.34
>>
>>
>> Do you know which connector I can to use?
>>
>>
>> I was tried 'pip install mysql-python' to install MySQL-python-1.2.5 but
>> is not possible, regarding with some google results, this version is not
>> supported by python 3.
>>
>>
>> Any help, will be appreciated.
>>
>>
>> PD: learning django, I'm new user.
>>
>>
>> Thanks!
>>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/aeb65f0c-89a1-485f-a875-fbe123d80816%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.