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
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
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 ']
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
¿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
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
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
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
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
7;default'*: {
>
> *'ENGINE'*: *'django.db.backends.mysql'*,
>
> *'NAME'*: *'hospital'*,
>
> *'USER'*: *'root'*,
>
> *'PASSWORD'*: *'password'*,
>
> *'HOST
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
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
LLED_APPS = [
*'django.contrib.admin'*,
*'django.contrib.auth'*,
*'django.contrib.contenttypes'*,
*'django.contrib.sessions'*,
*'django.contrib.messages'*,
*'django.contrib.staticfiles'*,
*'mysqlApp
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
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
>
15 matches
Mail list logo