Hi,
Below is the my 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.ForeignKey(Category, on_delete=models.CASCADE,)
        title = models.CharField(max_length=128)
        url = models.URLField()
        views = models.IntegerField()

        def __unicode__(self):
                return self.title

From: [email protected] <[email protected]> 
On Behalf Of Raghavendrachari k
Sent: 29 August 2018 09:42
To: [email protected]
Subject: Re: Django : Change Backend as mysql and create sample example using 
django ORM

Hi Sonali,
Could you please paste the models.py file ??
Might be there is some syntax error in the models you have created.
Regards,
Raghav

On Tue, Aug 28, 2018 at 9:41 PM parmeshwar deharkar 
<[email protected]<mailto:[email protected]>> wrote:
hi sonali
 you install sql libray in your project package then edit the setting.py file 
at django framework with database .
I hope your problem will be solve...

On Mon, Aug 27, 2018 at 4:54 PM Sonali Vighne 
<[email protected]<mailto:[email protected]>> wrote:
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 developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/2c673679-4532-4147-a072-5b712b62a621%40googlegroups.com<https://groups.google.com/d/msgid/django-developers/2c673679-4532-4147-a072-5b712b62a621%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups 
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAFyF%2BQg5LcYkXWygyhdu03ciqYUBMifNBWnS923Mstq8jfTnLA%40mail.gmail.com<https://groups.google.com/d/msgid/django-developers/CAFyF%2BQg5LcYkXWygyhdu03ciqYUBMifNBWnS923Mstq8jfTnLA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups 
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAHjM6E5Ky9BDUFi4V887V%2BkMasb6%2BZJ8V7nHKCYqgeUAun0FQA%40mail.gmail.com<https://groups.google.com/d/msgid/django-developers/CAHjM6E5Ky9BDUFi4V887V%2BkMasb6%2BZJ8V7nHKCYqgeUAun0FQA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" 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-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/MA1PR0101MB19116DE7D09FBF14285EAB4CE2090%40MA1PR0101MB1911.INDPRD01.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.

Reply via email to