byteweaver / django-polls Goto Github PK
View Code? Open in Web Editor NEWA simple and reusable polls application for Django.
License: BSD 3-Clause "New" or "Revised" License
A simple and reusable polls application for Django.
License: BSD 3-Clause "New" or "Revised" License
There is no database in the files and the manage.py is not included, so the project can be cloned properly
this breaks in django 1.9
Hi
When I try to add a poll from Django's admin show the following error:
Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/polls/poll/add/
Django Version: 1.8.5
Python Version: 2.7.3
Installed Applications:
('polls',
'material',
'material.frontend',
'material.admin',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware')
Traceback:
File "/home/guest/django/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/guest/django/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper
616. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/home/guest/django/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
110. response = view_func(request, *args, **kwargs)
File "/home/guest/django/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/home/guest/django/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
233. return view(request, *args, **kwargs)
File "/home/guest/django/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in add_view
1516. return self.changeform_view(request, None, form_url, extra_context)
File "/home/guest/django/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
34. return bound_func(*args, **kwargs)
File "/home/guest/django/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
110. response = view_func(request, *args, **kwargs)
File "/home/guest/django/local/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
30. return func.__get__(self, type(self))(*args2, **kwargs2)
File "/home/guest/django/local/lib/python2.7/site-packages/django/utils/decorators.py" in inner
145. return func(*args, **kwargs)
File "/home/guest/django/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in changeform_view
1466. if all_valid(formsets) and form_validated:
File "/home/guest/django/local/lib/python2.7/site-packages/django/forms/formsets.py" in all_valid
439. if not formset.is_valid():
File "/home/guest/django/local/lib/python2.7/site-packages/django/forms/formsets.py" in is_valid
304. self.errors
File "/home/guest/django/local/lib/python2.7/site-packages/django/forms/formsets.py" in errors
278. self.full_clean()
File "/home/guest/django/local/lib/python2.7/site-packages/django/forms/formsets.py" in full_clean
325. for i in range(0, self.total_form_count()):
File "/home/guest/django/local/lib/python2.7/site-packages/django/forms/formsets.py" in total_form_count
115. return min(self.management_form.cleaned_data[TOTAL_FORM_COUNT], self.absolute_max)
File "/home/guest/django/local/lib/python2.7/site-packages/django/forms/formsets.py" in management_form
97. code='missing_management_form',
Exception Type: ValidationError at /admin/polls/poll/add/
Exception Value: [u'ManagementForm data is missing or has been tampered with']
Any idea how to fix it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.