Posts by Welington Carlos • 81 points
5 posts
-
1
votes1
answer263
viewsQ: Django-Rest password validations in two fields
How to recover values from html elements in a custom validation with Django-Rest ? How would Django-Rest the similarity with the code below ? def clean(self): password1 =…
django-rest-frameworkasked Welington Carlos 81 -
2
votes1
answer445
viewsQ: Angularjs and Django integrationForms to record data
How you’re handling Javascript frameworks integration with forms django? Sample scenario Address forms where there is a telephone field (Many-to-ONE), which in the template is represented by an…
-
0
votes3
answers2056
viewsA: Delete text part with Python
I settled with the following REGEX import re m = re.findall("[<][\w|\W]*[>]*", str(corpo), re.IGNORECASE) for i in m: corpo = corpo.replace(i, "") That erases EVERYTHING YOU HAVE:…
pythonanswered Welington Carlos 81 -
2
votes3
answers2056
viewsQ: Delete text part with Python
How do I delete part of a Python text ? I have the following string """ texto textinho outro texto <div dir 'ltr'><div><div> bla bla .... """ I want to delete all HTML. I’m using…
pythonasked Welington Carlos 81 -
2
votes1
answer255
viewsQ: Problem in importing User models
I am doing some tests in a Django project. I created a very simple module just for testing. Below: from django.contrib.auth.models import User def teste(): for i in User.objects.all(): print…