Comments (6)
I resolved this by changing the urls.py, I was calling the class NameForm instead of the function defined in views.py
from django-splitjsonwidget-form.
@adithyadinesh96 It seems that you need investigate why your response
is int
from django-splitjsonwidget-form.
I was getting the same error too but in my case, I was calling the "form class" itself instead of calling the "view" function from the urls.py. See the code below:
forms.py:
class TestForm(forms.Form):
test = forms.CharField(label='Name', max_length=100)
views.py:
def FormView(request):
frm = TestForm()
context = {'frm': frm}
return render(request, 'formtest.html', context)
urls.py:
I had:
urlpatterns = [
path('formtest/', views.TestForm, name='Form_Test'),
]
What I should have:
urlpatterns = [
path('formtest/', views.FormView, name='Form_Test'),
]
if you are using an IDE, you will get both the options since you have imported the forms.py in the views. py and it's easy to pick the other one.
from django-splitjsonwidget-form.
Even i got same error did you find any solution ?
from django-splitjsonwidget-form.
@adithyadinesh96 hi! Can you show/share your code? Currently, I am seeing problem into process_response into the middleware "clickjacking.py".
from django-splitjsonwidget-form.
Any response from Django i am getting this error if response.get('X-Frame-Options', None) is not None:
AttributeError: 'int' object has no attribute 'get' . In previous Django versions this wasnt the problem but after i upgraded to Django 1.8 getting this error
from django-splitjsonwidget-form.
Related Issues (19)
- The objects are disappear
- Viewing and editing through TabularInline StackedInline
- Does not accept floats HOT 1
- Errors on django 1.6.11 or in similar versions HOT 1
- Using for Dictionary, but when saving data gets changed. HOT 2
- How to use it with admin
- Cannot use number key
- Simple change for python 3 HOT 5
- How to use it in a ModelForm? HOT 4
- Getting JSON on submit HOT 2
- Compatibility issue with django 1.11 HOT 1
- Is there a way to use this in a formset (model formset factory) in Django 2.1 or above ?
- Support for Widget.render() method without the renderer argument removed in Django 2.1.
- To fill readme file
- Python3 and Django 3 Compatibility
- render issue in widget
- Crashes when there are unicode contents in json HOT 3
- Json fields are merged when the widget used multiple time in the model. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-splitjsonwidget-form.