0
votes
28
views
Command to handle deploy Django with quickly
posted at July 12, 2018, 3:13 p.m. - 4 months, 1 week ago

Hello guys, this morning i want to share simply how to custom command to handle deploy Django with quickly. ./manage.py deploy --yes <username> <password> <email> ./manage.py deploy --yes --username=myusername --password=mypassword ...

0
votes
26
views
Django: Custom safe excludes from dangerous XSS Injection
posted at July 12, 2018, 3:13 p.m. - 4 months, 1 week ago

Django Custom safe excludes from dangerous XSS Injection. Answered from: http://stackoverflow.com/a/41434870/6396981 from bs4 import BeautifulSoup from django import template from django.utils.html import escape register = template.Library() INVALID_TAGS = ['script', 'style'] ...