Re: Django-survey fails with beta-1
On Aug 20, 8:59 pm, rex <[EMAIL PROTECTED]> wrote: > I commented out the problematic image > code in the file that was causing the problem, and also in > forms.py, and it works. You can leave the ImageField, just remove core=True from it. That's what's throwing the error, and you don't need it anymore. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django-survey fails with beta-1
[EMAIL PROTECTED] <[EMAIL PROTECTED]> [2008-08-20 17:49]: > >On Aug 20, 2:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >wrote: >> If you like, you can >> put it on another field in the model, just not an ImageField or >> FileField. > > >Oops. Bad advice. With newforms-admin, core isn't needed or used >anymore at all. But the first part of your post was good advice, and thanks to it, I got Django-survey running. I commented out the problematic image code in the file that was causing the problem, and also in forms.py, and it works. Thank you much for your help. Now if I can just understand the level of abstraction... -rex -- I ain't goin' to buy my kids an encyclopedia. Let them walk to school the way I did. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django-survey fails with beta-1
On Aug 20, 2:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > If you like, you can > put it on another field in the model, just not an ImageField or > FileField. Oops. Bad advice. With newforms-admin, core isn't needed or used anymore at all. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django-survey fails with beta-1
Just what it says... Core can't be on the ImageField is survey/ models.py anymore. Remove it, and you'll be fine. If you like, you can put it on another field in the model, just not an ImageField or FileField. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Django-survey fails with beta-1
Running Debian Lenny, I uninstalled Django 0.96-2, installed Django beta 1, and downloaded Django-survey. The result of running it is below. Any help appreciated, thanks. -rex XXX:~/djcode/django-survey-read-only$ python examples/manage.py runserver Validating models... Unhandled exception in thread started by Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/management/commands/runserver.py", line 47, in inner_run self.validate(display_num_errors=True) File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 122, in validate num_errors = get_validation_errors(s, app) File "/usr/lib/python2.5/site-packages/django/core/management/validation.py", line 28, in get_validation_errors for (app_name, error) in get_app_errors().items(): File "/usr/lib/python2.5/site-packages/django/db/models/loading.py", line 128, in get_app_errors self._populate() File "/usr/lib/python2.5/site-packages/django/db/models/loading.py", line 57, in _populate self.load_app(app_name, True) File "/usr/lib/python2.5/site-packages/django/db/models/loading.py", line 72, in load_app mod = __import__(app_name, {}, {}, ['models']) File "/home/rex/djcode/django-survey-read-only/survey/models.py", line 159, in class Question(models.Model): File "/home/rex/djcode/django-survey-read-only/survey/models.py", line 172, in Question null=True, blank= True, core=False) File "/usr/lib/python2.5/site-packages/django/db/models/fields/files.py", line 283, in __init__ FileField.__init__(self, verbose_name, name, **kwargs) File "/usr/lib/python2.5/site-packages/django/db/models/fields/files.py", line 131, in __init__ raise TypeError("'%s' is not a valid argument for %s." % (arg, self.__class__)) TypeError: 'core' is not a valid argument for . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---