Coder Social home page Coder Social logo

Comments (6)

arbkm22 avatar arbkm22 commented on July 19, 2024 2

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.

abbasovalex avatar abbasovalex commented on July 19, 2024 1

@adithyadinesh96 It seems that you need investigate why your response is int

from django-splitjsonwidget-form.

rajmasud avatar rajmasud commented on July 19, 2024 1

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.

adithyadinesh96 avatar adithyadinesh96 commented on July 19, 2024

Even i got same error did you find any solution ?

from django-splitjsonwidget-form.

abbasovalex avatar abbasovalex commented on July 19, 2024

@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.

adithyadinesh96 avatar adithyadinesh96 commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.