Monday, March 30, 2015

Re: Help with Dynamically Adding Forms to Formset!!

Carl is right - this is a hard problem. I'm a mid level django
developer and I spent at least a week trying a number of solutions
(and doing the other, non Django, parts of my job).

The one that ended up working for me was the django-dynamic-formset
javascript library.

https://github.com/elo80ka/django-dynamic-formset

It took some tinkering, but that was because my brain was fried after
a week of trying to solve it :)

L.
------
It is through this shadowy emptiness (of negative space) that we
walk, talk, see, and live; negative space is the impossible cellophane
layer that drapes the known world and is invisible to all but to the
most perceptive minds.

It is possible to learn to see negative space though, in both the
visual and imagined worlds. The first step is developing the ability
to see, and the second is learning — as romantic poet John Keats put
it — to be "capable of being in uncertainties, mysteries, doubts,
without any irritable reaching after fact & reason."
----
Seeking Genius in Negative Space, Chris Messina
https://medium.com/genius-week/seeking-genius-in-negative-space-4e7c755f641f


On 31 March 2015 at 08:18, Carl Meyer <carl@oddbird.net> wrote:
> Hi Stephanie,
>
> On 03/30/2015 02:37 PM, Stephanie Socias wrote:
>> I'm having trouble creating a formset where I can dynamically add and
>> delete items. I've tried many different approaches and can't get
>> anything to work. I'm new to Django and have been at this for days. Can
>> someone please help me!? I can send my code, post it, or do a screen
>> share. Please let me know!! Any help would be greatly appreciated.
>
> I'm afraid I don't have time in my day for a screen-share, but I'd be
> happy to try to help, if you can link to a gist or paste showing your
> current best effort, and explaining how it is not working.
>
> FWIW, I've usually used this library for the JavaScript side of things:
> https://github.com/jgerigmeyer/jquery-django-superformset
>
> If you'd find real-time assistance more helpful, you could visit the
> #django channel on FreeNode IRC; I and others are available to help out
> there.
>
> This is a challenging task you've tackled, even for experienced Django
> developers, so it's not surprising that it's taking some time if you're
> new to Django.
>
> Carl
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5519BD9B.9080105%40oddbird.net.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiO_xJMMmnqEJW1KhJhPsGcFJXHZ1my8YLiCJ9_FR9q0vA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment