D
D
Desperado072016-10-08 03:11:20
JavaScript
Desperado07, 2016-10-08 03:11:20

Website in Django. How can I track changes in appointments in real time and display reminders?

There is a site on Django for a hairdressing salon. On the site, through the form, you can sign up for a haircut for a specific day and time (recording is available for 7 days in advance).
I need to implement an admin panel for an employee who will track orders. The admin panel should be in real time without reloading the page, i.e. any changes in orders should immediately be displayed in it: the user (customer) can cancel, change the time / date. The employee himself can also change/create a record. Moreover, 5 minutes before the start of the haircut, the administrator should pop up a reminder that such and such a client should come.
What technologies can be used to do this? Especially reminders and tracking changes in the recording (recording times can change several times a day)? Can you advise something? Would a REST framework be useful in this situation? AngularJS?
I looked at Celery, but it seems that this is not quite what you need.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Artem Kislenko, 2016-10-08
@webwork

It is possible without sockets, just once every few seconds via ajax to make a request to the desired controller, this will not load the system, because there are not many administrators, but it is simple and saves a lot of time and resources

A
Artem, 2016-10-08
@proudmore

If you need realtime, then I would advise you to look towards websocket.

S
sim3x, 2016-10-08
@sim3x

That's enough jquery-ajax-CBV You don't have realtime, just make an
Ajax request every 10 seconds and return json

Z
zelsky, 2016-10-08
@zelsky

I agree, ajax + signals.

G
Gasoid, 2016-10-10
@Gasoid

you need realtime for sure, since 5 minutes is 5 minutes
you need Celery + django-celery + websocket (tornado / sockjs-tornado)
from django through celeri you can transfer data to json api tornado data
and already from tornado via websockets the client
will get an instant notification

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question