Django, Ajax e Fullcalendar

174 views
Skip to first unread message

Elias Coutinho

unread,
Nov 15, 2016, 11:57:54 AM11/15/16
to Django users
Boa tarde a todos.

Assisti o vídeo de um colega https://www.youtube.com/watch?v=PwskBz5re4Q&feature=youtu.be e peguei carona no projeto dele para iniciar estudo de Ajax.
Aproveitei a api rest que ele criou, modifiquei um pouco para atender o que eu desejava, ja havia estudado django rest framework e foi moleza essa pasrte da app.

O que ficou confuso foi a integração do ajax com o django, vi as views e confesso que pouca coisa eu compreendi (para variar rsrs). Percebo que o Cuducos foi bem didatico mas como eu não fiquei muito tempo no hangout não pude perguntar nada.

Enfim, consigo fazer o CRUD no django e ver o resultado no fullcallendar, ficou lindão!

O problema é que sei das firulas que o fullcalendar pode fazer, como por exemplo:

1 - arrastar um evento de uma data para outra. (Editar)
2 - cadastrar um novo evento diretamente pelo fullcalendar utilizando modais.(Incluir)
3 - excluir um evento diretamente no fullcalendar utilizando modais.(excluir)

Ou seja, do CRUD só aprendi o R kkkk

Então publicarei meu projeto no github e se alguém desejar me ajudar a implementar isso ficarei muito grato.

Aqui o link do projeto no [GitHub.](https://github.com/CoutinhoElias/vitrinebela)
Caso não tenham permissão basta me enviar seu usuário do github para eu add, ainda não descobri como deixar o projeto público, eu nunca fiz nenhum projeto privado.

Aqui o link do [fullcalendar.](https://fullcalendar.io/)

Caso alguém tenha um curso de ajax integrando com django pode portar aqui também.

Obrigado.

Elias Coutinho

unread,
Nov 15, 2016, 12:06:42 PM11/15/16
to Django users

I'm sorry,
Now correctly translated.

Good afternoon everyone.

I watched a video from a colleague https://www.youtube.com/watch?v=PwskBz5re4Q&feature=youtu.be and I took a ride on his project to start Ajax study.
I took advantage of the api rest he created, modified it a little to fit what I wanted, had already studied django rest framework and it was this app pasha way.

What was confusing was the integration of ajax with django, I saw the views and confess that little I understood (for a change). I realize that the Cuducos was well didactic but since I did not stay long in the hangout I could not ask for anything.

Anyway, I can do CRUD in django and see the result in fullcallendar, it was nice!

The problem is that I know of the firsts that fullcalendar can do, such as:

1 - drag an event from one date to another. (To edit)
2 - register a new event directly by fullcalendar using modal. (Include)
3 - delete an event directly in fullcalendar using modal. (Delete)

That is, from CRUD I only learned the R kkkk

So I will post my project on github and if anyone wants to help me implement this I will be very grateful.

Here the project link in [GitHub.] (Https://github.com/CoutinhoElias/vitrinebela)
If you do not have permission just send me your github user to add me, I still have not figured out how to leave the public project, I've never done any private projects.

Here the [fullcalendar.] Link (https://fullcalendar.io/)

If someone has an ajax course integrating with django you can carry here as well.

Thank you.

Breno Uchoa

unread,
Nov 16, 2016, 1:06:02 PM11/16/16
to Django users
Bom dia,
acho que o disclaimer respondeu a sua pergunta.
Disclaimer:   FullCalendar is great for displaying events, but it isn't a complete solution for event content-management. Beyond dragging an event to a different time/day, you cannot change an event's name or other associated data. It is up to you to add this functionality through FullCalendar's event hooks.
ele oferece um link no evento que no caso vc teria que redirecionar para algum form no django para fazer a modificação dos parâmetros.
Vou começar uma implementação disso semana que vem, vou fazer um fork do seu projeto.
Reply all
Reply to author
Forward
0 new messages