Author Picture

Kim Majali


Django Display Loaing… Please Wait Modal on Long Process

Author Avatar wrote on 30/05/2022

partials/_loading-modal.html
Read more

Django Warn on Refresh and Leaving Page with JS

Author Avatar wrote on 30/05/2022

Redirect (will prevent resubmitting the form)


from django.shortcuts import redirect
return redirect(f'/customer/{pk}')
Read more

Scheduling Tasks in Django

Author Avatar wrote on 27/05/2022

Purpose  
There are long running tasks that you want to hand off to a background process without it blocking the page from loading
While we wait for it to complete.
Like sending emails and generating huge files and graphics.

Way 1: django-background-tasks

1. install
pip install django-background-tasks
2. Add to INSTALLED_APPS:\
INSTALLED_APPS = ( # ... 'background_task', # ... ) Read more

Django Troubleshooting

Author Avatar wrote on 26/05/2022

Django: OperationalError No Such Table

The issue may be solved by running migrations.

Read more

Topics: ExtrasResources

CRUDgen Django CRUD generator