On Jul 14, 2016 4:31 AM, "USMAN MALIK" <umalik...@gmail.com> wrote: > > Hi. I'm new to django and i'm creating a buisness application for my company. i want to generate a monthly invoice for every member in my company and for this i have two models in which all the information is stored. Is there a way to generate an automatic invoice based on the information in these two models? kindly help me. thanks . >
If you can code the logic necessary to extract the information needed on a regular basis, then you can absolutely automate the task. Simple, recurring cases can be handled by cron on *nix, and task scheduler on Windows. The scripts are generally written as custom Django-admin commands, since you usually need access to the ORM and your models for most tasks: https://docs.djangoproject.com/en/1.9/howto/custom-management-commands/ More complicated tasks may require extra infrastructure like Celery. It provides more flexibility, but is also more complicated to setup and manage: http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html Start with cron, and work your way up to Celery. -James -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciVzhJ7ACwcU4w0TrtiupAebCiRbxn7MCynJ5mN_N6zczQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.