rather than having your dev environment exist on two separate operating systems, you should use virtual machines with docker or vagrant for development. That way, your environment is identical through dev, staging and prod environments, except for env-specific settings. Consider this case, if you're working fine in Linux but Windows is blowing up, using docker or vagrant would make this a non-issue/
On Monday, August 20, 2018 at 3:18:33 AM UTC-4, Marcus Grass wrote: > > Yeah I know it's recommended, but I can't for the life of my get that > connector to work in windows. > I program my project both in places where I only have windows and only > Linux. > > On Mon, Aug 20, 2018 at 2:20 AM, Jason <jjohn...@gmail.com <javascript:>> > wrote: > > that is indeed weird, but suggests its an issue with > python-mysql-connector, > > not django. > > > > > https://docs.djangoproject.com/en/1.11/ref/databases/#mysql-db-api-drivers > > > > As you can see there, mysqlclient is the django project recommended way > to > > interface with mysql. What are your reasons for going with > > mysql-connector-python? > > > > > > On Sunday, August 19, 2018 at 6:15:44 PM UTC-4, Marcus Grass wrote: > >> > >> Hi, I ran into a strange problem when i switched from using mysqlclient > to > >> mysql-connector/python. > >> > >> In practice: > >> class Foo(models.Model): > >> bar = models.IntegerField(default=0, null=False) > >> > >> queryset = Foo.objects.all().filter(bar=0) > >> print(queryset[0].bar) # prints None > >> > >> > >> Anyone know a fix for this? > >> > >> Using python 3.6.6, Django 2.0.3.0- > > > > -- > > 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 django-users...@googlegroups.com <javascript:>. > > To post to this group, send email to django...@googlegroups.com > <javascript:>. > > 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/6be9073b-34f1-445f-ba02-dabf09c9916c%40googlegroups.com. > > > > > > For more options, visit https://groups.google.com/d/optout. > -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. 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/1c47e38f-d898-4fcd-945e-b1e96cc9a477%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.