Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
senner opened this issue Feb 20, 2018 · 3 comments

Comments

@senner
Copy link

senner commented Feb 20, 2018

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'

@smirolo
Copy link
Contributor

smirolo commented Feb 20, 2018

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.

@senner
Copy link
Author

senner commented Feb 21, 2018

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"

@smirolo
Copy link
Contributor

smirolo commented Feb 23, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants