nimbis / cmsplugin-forms-builder

A django-forms-builder plugin for django-cms
BSD 3-Clause "New" or "Revised" License
15 stars 13 forks source link

Problem with creating form #13

Closed Darex1991 closed 7 years ago

Darex1991 commented 7 years ago

Hi ;) I tried to add cms into the page. But still have the same problem:

screen shot 2017-01-08 at 19 23 26

What I did wrong? I tried branch master and add-cms-3.1.0-migration

EDIT When I changed in template: <form action='/contact-form/' method="post" its render me error :

screen shot 2017-01-08 at 19 52 29
Colleoni commented 7 years ago

I have encoutered the same problem

ericamador commented 7 years ago

I'm not sure that I have enough information to attempt to reproduce this. It seems like this might be a Django CMS configuration problem? I can try to add a minimal testing project to this app when I can get a chance within the next few days.

Colleoni commented 7 years ago

Actually I found the problem and you are right it is a configuration problem. simply need to add forms_builder to urls. py

import forms_builder.forms.urls

urlpatterns += i18n_patterns('',
    url(r'^admin/', include(admin.site.urls)),  
    url(r'^forms/', include(forms_builder.forms.urls)),
    url(r'^', include('cms.urls')),
)

Adding it to the readme file of the repo will be enought:)

Best regards, Luca

Darex1991 commented 7 years ago

@Colleoni you have right. Fix for using sample: 1) add into your urls.py url(r'^forms/', include(forms_builder.forms.urls)), example -post Colleoni 2) install bootstrap3 and add into build_form.html {% load sekizai_tags bootstrap3 %}

Btw. I will send PR, but I don't know how to write my fix in plugin conf ;)