djaodjin-survey icon indicating copy to clipboard operation
djaodjin-survey copied to clipboard

Problem installing fixture '/fixtures/initial_data.json': Question has no field named u'required'

Open senner opened this issue 7 years ago • 3 comments

Receive various errors on following the testsite deploy. Seems this may need a few updates to get running for most users to test it with newer Django, maybe with some explicit pins on the requirements.txt?

First receive "initial_data.json': Could not load auth.User(pk=2): no such table: auth_user"

so you need to run python manage.py migrate auth ; python manage.py contenttypes; python manage.py admin python manage.py syncdb

but still get: "RemovedInDjango19Warning: initial_data fixtures are deprecated. Use data migrations instead." ...

File "/opt/djaodjin/local/lib/python2.7/site-packages/django/db/models/options.py", line 554, in get_field raise FieldDoesNotExist('%s has no field named %r' % (self.object_name, field_name)) django.core.serializers.base.DeserializationError: Problem installing fixture '/opt/djaodjin/djaodjin-survey/testsite/fixtures/initial_data.json': Question has no field named u'required'

senner avatar Feb 20 '18 06:02 senner

Hi @senner. Thank you for the report. I pushed a fix for the initial_data.json but there are still pb running the testsite (500 errors). I will try to get to them within the next few days.

djaodjin-survey version 0.1.7 behaves like an online web questionnaire/quiz (radio, checkbox, etc). It should be stable.

djaodjin-survey version 0.2+ (current master) is more like a geographic/weather survey. It is used to record some metrics at various point in time (i.e. Campaigns). I still have the intention to retrofit the 0.1.7 functionality into the 0.2 series though models might look overly complicated for online surveys.

smirolo avatar Feb 20 '18 07:02 smirolo

Thanks , we are looking for a 'campaign' based time limited poll/survey. So 0.2 may work for our use case. I added "django-debug-toolbar django-extensions django-urldecorators " to the requirements.txt and it ran after the migrate but now its missing templates "TemplateDoesNotExist at /manager/ survey/campaign_list.html"

senner avatar Feb 21 '18 17:02 senner

The last commit should have fixed most (hopefully all) the issues with running the testsite. Please let me know if the repo fits the bill for you or if you are missing features. Thank you.

smirolo avatar Feb 23 '18 18:02 smirolo