Re: Database validation error - Even after manage.py flush.

2017-06-30 Thread Guilherme Leal
Hey man, if you have any problem, ALWAYS check the django documentation in the first place. IMO, its preaty extensive and complete, and always helped me through the 4~5 years I'm developing with django. After that, stackoverflow always help ( =P ). And if the things still goes badly, django-users

Re: Database validation error - Even after manage.py flush.

2017-06-30 Thread pieceofkayk2718
Hey thanks for that extra input. I'm currently a student at NMSU making an educational app for NASA'S Planetary Data Systems. Right now I'm the only student working on it and the only person in my building that knows Django (which I'm learning on the job). I'm making a blog alongside my app t

Re: Database validation error - Even after manage.py flush.

2017-06-30 Thread Guilherme Leal
Np man, always glad to help! Just to seal the case, that happened because django dont edit the migration files itself (well, not through the normal cycle of "makemigrations">"migrate"). You generated a migration with an invalid config, and didnt even mattered if you tried to correct that "default

Re: Database validation error - Even after manage.py flush.

2017-06-30 Thread pieceofkayk2718
Oh dude you are officially my hero! I didn't even think about the migration files. That totally worked. And thank you thank you thank you =D <3. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Database validation error - Even after manage.py flush.

2017-06-30 Thread Guilherme Leal
Just to clarify: Change the default value to "False"; Delete the migration file (0012_auto_20170630_1027); Run makemigrations; Run migrate. 2017-06-30 15:08 GMT-03:00 Guilherme Leal : > Have you re-ran the "makemigrations"? If that didnt work, delete the > migration file (0012_auto_20170630_1027

Re: Database validation error - Even after manage.py flush.

2017-06-30 Thread Guilherme Leal
Have you re-ran the "makemigrations"? If that didnt work, delete the migration file (0012_auto_20170630_1027) and run "makemigrations" again. 2017-06-30 15:04 GMT-03:00 : > I also did the "If all else fails, reboot your computer" and still have > the same problem. Haha. I think I'm screwed. > >

Re: Database validation error - Even after manage.py flush.

2017-06-30 Thread pieceofkayk2718
I also did the "If all else fails, reboot your computer" and still have the same problem. Haha. I think I'm screwed. -- 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 ema

Re: Database validation error - Even after manage.py flush.

2017-06-30 Thread pieceofkayk2718
Yes. At first I tried setting default=True or default=False for my BooleanField and kept getting the same error. So I went back in, deleted the model, tried again, got the same error. Then I deleted my db sqlite3 file, made new migrations, migrated (with the model not even a part of my model

Re: Database validation error - Even after manage.py flush.

2017-06-30 Thread Guilherme Leal
>>>django.core.exceptions.ValidationError: [u"'' value must be either True or False."] Have you tried to set the default value of the BooleanField as True or False? BooleanFields must have a valid boolean as default value and so happends that empty string is not a valid boolean. Change the d

Database validation error - Even after manage.py flush.

2017-06-30 Thread pieceofkayk2718
So I made the ultimate error. I put a BooleanField in my models.py, when I made migrations I set default col value to the empty string ''.. Then I migrated and got a validation error. However, I have tried to delete the model containing BooleanField, delete my database file, and I even ran ma

add users to google group django

2017-06-30 Thread Brian Lee
I have a quick question about handling email updates using Django. My organization uses a Google Group to send mass emails to those added to the email list, and I was looking to add a 'sign up' widget to the footer of the website (It's a non-buisness Google Group). Is it possible to utilize Goo

Keep logged in accross Sites

2017-06-30 Thread Pablo Camino Bueno
Hello, I'm using Django Sites framework to hadle different sites, with the same users. I'd like to add a link to switch between my sites, but I don't want to get redirected to login view. What is the best way? should I add a view that logs the user in the destination site and redirect? -- Y

Re: SelectDateWidget when DateField is not required

2017-06-30 Thread Tim Graham
I can't reproduce a crash. If I select only a month, I see a validation error, "Enter a valid date." On Monday, June 12, 2017 at 6:28:29 AM UTC-4, Nonverbis M wrote: > > *Django 1.11.2* > > I'd like to use SelectDateWidget. > > > class FrameDate(models.Model): > through_date = models.DateFiel

Built-in logging module may lead to memory leak?

2017-06-30 Thread Yp Xie
Hi guys, I'm using the python built-in logging module in a django project. Using dictConfig, the configuration in settings.py is like this:

Re: Django tutorial - Misleading instructions

2017-06-30 Thread ecas
As Tim said, the APP_DIRS flag enables the app template loader. https://docs.djangoproject.com/en/1.11/ref/templates/api/#django.template.loaders.app_directories.Loader "Loads templates from Django apps on the filesystem. For each app in INSTALLED_APPS