Author Picture

Kim Majali


Django Rest Password

Author Avatar wrote on 31/05/2022

EMAIL_HOST = 'smtp.eu.mailgun.org' EMAIL_PORT = 587 EMAIL_HOST_USER = '[email protected]' EMAIL_HOST_PASSWORD = 'YourPassword' DEFAULT_FROM_EMAIL = 'YourEmail' EMAIL_USE_TLS = True Read more

Creating Fake Data in Django

Author Avatar wrote on 31/05/2022

Install
pip install model_bakery
pip install Faker
Read more

Django Cookies

Author Avatar wrote on 31/05/2022

Set cookies
set_cookie(cookie_name, value, max_age = None, expires = None)
Get cookies
request.COOKIES['cookie_Name'] Read more

Django Requirements File

Author Avatar wrote on 31/05/2022

Save in file
pip freeze > requirements.txt
Install from a file
pip install -r requirements.txt
Install from a local directory
pip install -r requirements.txt --no-index --find-links file:///tmp/packagesRead more

Django Cron Jobs

Author Avatar wrote on 31/05/2022

1. Install
pip install django-crontab
2. Add django_crontab to INSTALLED_APPS
Read more

Topics: AppsBasicsExtras

CRUDgen Django CRUD generator