Posts by Pedro Mariz • 71 points
6 posts
-
0
votes1
answer64
viewsA: Django, add data from a form
From what I understand you can do it through the views. def KibanToroku500(request): if request.method == 'POST': form500 = Toroku500(request.POST) if form500.is_valid(): form =…
djangoanswered Pedro Mariz 71 -
0
votes1
answer31
viewsA: Noreversematch at /wiki/Edit/CSS/
you have to put everything inside a form: {% block body %} <form method="post"> {{ content|safe }} <a href="{% url 'edit' title %}"> Edit</a> </form> {% endblock %} are using…
djangoanswered Pedro Mariz 71 -
0
votes1
answer54
viewsA: I have Jango in python Anyhere my view that generates pdf works locally but on the error server!
This error is not a code error, possibly the ports you are using on the server are blocking for some reason. Try running through a different door: Adds to the py Settings.: ALLOWED_HOSTS = ['*'] and…
-
0
votes1
answer97
viewsA: How to resolve error in URL configuration in Django?
I’m not sure what you’re doing, but in your project folder you have to have a folder that says templates, something like this : ├── MEU PROJETO │ └── settings.py └── manage.py |___PASTA DA APP | └──…
-
1
votes1
answer518
viewsA: Attributeerror - 'User' Object has no attribute 'project' - Django
def get_queryset(self): usuarioLogado = self.request.user return Projeto.objects.filter(user=usuarioLogado) …
-
0
votes1
answer61
viewsA: I need relationship one for many between 3 tables
From what I understand , at this point this attempt to relate two tables in a relation of N-N i.e., one person can have several cars , and one car can have several people, for a better database…