_mysql_connector.MySQLInterfaceError: Table 'table_name already exists

2018-09-10 Thread Sonali Vighne
Hi I am getting above error when * I am running python manage.py migrate command * *This table are already created in database when I make migration for first time. * *Please help there any way to handle this exception in models.py or view.py* *Thanks in Advance.* -- You received this message

Re: Need help for saving JSON object into Django Model (class object)

2018-09-05 Thread Sonali Vighne
Thanks , it works for me. there is minor changes request.data is not working, so I tried request.body and then extracted value from dict. Do you know any other way to it without using dict. if yes please , help with same. On Tuesday, September 4, 2018 at 8:29:58 PM UTC+5:30, pgopa...@gmail.com

Re: Need help for saving JSON object into Django Model (class object)

2018-09-04 Thread Sonali Vighne
Thanks I will try it. On Tuesday, September 4, 2018 at 8:29:58 PM UTC+5:30, pgopa...@gmail.com wrote: > > # Please try to use this logic in your views.py file. > # first extract the data from the request > > question_text = request.data['question_text'] > pub_date = request.data['pub_date ']

Need help for saving JSON object into Django Model (class object)

2018-09-04 Thread Sonali Vighne
Hi, I have create a model Models.py from django.db import models import datetime from django.utils import timezone class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self

Re: Help with mi first hello world please problems with urls

2018-08-30 Thread Sonali Vighne
¿Dónde está tu archivo views.py? escribir la solicitud de importación en views.py On Wednesday, August 22, 2018 at 10:31:19 PM UTC+5:30, Dario Coronel wrote: > > El problema que tengo es el siguiente soy un novato recien conociendo el > mundo de python y django estaba siguiendo los pasos de la

Re: Help.... Django : Change Backend as mysql and create sample example using django ORM

2018-08-29 Thread Sonali Vighne
MySQL version- 6.0.8-alpha-community On Wednesday, August 29, 2018 at 7:26:09 PM UTC+5:30, Tom Forbes wrote: > > What version of MySQL are you running? > > On Tuesday, 28 August 2018 07:00:52 UTC+1, Sonali Vighne wrote: >> >> I will paste full error and stack t

Re: Help.... Django : Change Backend as mysql and create sample example using django ORM

2018-08-29 Thread Sonali Vighne
Programs\Python\Python36\lib\site-packages\django\core\management\base.py", >> >> line 83, in wrapped* >> >> res = handle_func(*args, **kwargs) >> >> *File >> "C:\Users\sonali_vighne\AppData\Local\Programs\Python\Python36\lib\site-packages\d

Django Mysql Error : Unknown system variable 'innodb_strict_mode

2018-08-29 Thread Sonali Vighne
Models.py from django.db import models #from django_mysql.models import Model class Category(models.Model): name = models.CharField(max_length=128, unique=True) def __unicode__(self): return self.name class Page(models.Model): category = models

Re: Error: Not able to create table using models (Backend mysql)

2018-08-28 Thread Sonali Vighne
thank Mohammad :) I will try it. hope so it would solve my issue. On Wednesday, August 29, 2018 at 10:32:32 AM UTC+5:30, Mohammad Aqib wrote: > > This password doesn't belong to mysql. This belongs to your database > 'hospital'. > > On Wed, Aug 29, 2018 at 10:07 AM

Re: Error: Not able to create table using models (Backend mysql)

2018-08-28 Thread Sonali Vighne
7;default'*: { > > *'ENGINE'*: *'django.db.backends.mysql'*, > > *'NAME'*: *'hospital'*, > > *'USER'*: *'root'*, > > *'PASSWORD'*: *'password'*, > > *'HOST&#x

Re: Error: Not able to create table using models (Backend mysql)

2018-08-28 Thread Sonali Vighne
I will paste full error and stack trace here. This is occurred when I am giving “python manage.py migrate” command Operations to perform: Apply all migrations: admin, auth, contenttypes, sessions Running migrations: Traceback (most recent call last): *File "C:\Users\sonali_vighne\Ap

Error: Not able to create table using models (Backend mysql)

2018-08-28 Thread Sonali Vighne
I am getting this error raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc) django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table ((1064, "You have an error in your SQL syntax; check the manual that corresponds

Re: Help.... Django : Change Backend as mysql and create sample example using django ORM

2018-08-27 Thread Sonali Vighne
LLED_APPS = [ *'django.contrib.admin'*, *'django.contrib.auth'*, *'django.contrib.contenttypes'*, *'django.contrib.sessions'*, *'django.contrib.messages'*, *'django.contrib.staticfiles'*, *'mysqlApp&#

Help.... Django : Change Backend as mysql and create sample example using django ORM

2018-08-27 Thread Sonali Vighne
Hi, I have tried a lot to change Django back-end as MySQL but not able to achieve this. please help for the same. thanks in advance. :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Help me with this, plz

2018-08-27 Thread Sonali Vighne
hey , have you get any solutions for mysql? On Friday, August 17, 2018 at 11:46:31 AM UTC+5:30, Vikrant Gupta wrote: > > sick of this error... what to do? > > antuptasMBP:New_Django vikrantgupta$ python manage.py migrate > Traceback (most recent call last): > File "manage.py", line 15, in >