Questions tagged as 'django'

0
answers

Add CLASS attribute in Option of select widget django

I'm using widget=forms.Select() in a forms.Form of Django, however, when trying to add a CLASS attribute in Options, which is part of Select, I can not, just in Select itself, I've been looking for and only found Override options o...
asked by 06.10.2016 / 16:51
0
answers

dynamic formulas python django

I'm developing a project that needs to have a form created by the size of the item quantity that is created on another form. The initial form is FormRota: class FormRota(forms.ModelForm): researcher =forms.ModelChoiceField(queryset...
asked by 10.10.2016 / 21:44
0
answers

Doubt in class diagram [closed]

What steps to create a class diagram of a project done with Django? How can I represent MVC in the diagram? My project has only one Post class: from django.db import models from django.utils import timezone class Post(models.Model): autho...
asked by 10.06.2016 / 15:24
1
answer

django - UnicodeDecodeError: 'ascii' codec can not decode byte 0xc3 in position 32: ordinal not in range (128)

Good evening guys! I have Ubuntu 16.04, trying to get back to django, ms when I try to start a project with this error here:    raceback (most recent call last):   File "/ home / alekys / Envs / test3 / bin / django-admin", line 11, in &l...
asked by 30.06.2016 / 01:14
0
answers

How to get nested rest?

I have classes Pessoas , Profissoes , ProfissoesPessoa and QualificacoesProfissoesPesssoa In theory, my Models are as follows: # -*- coding: utf-8 -*- from django.db import models from django.contrib.auth.model...
asked by 25.03.2016 / 20:15
2
answers

Problem with pk that does not exist yet

I have the following urls: # urls.py url(r'^proposal/(?P<pk>\d+)/$', ProposalDetail.as_view(), name='proposal_detail'), url(r'^contract/(?P<pk>\d+)/$', ContractDetail.as_view(), name='contract_detail'), url(r'^proposal/edit/contrac...
asked by 26.10.2015 / 02:45
0
answers

Creating Your Own Provider Mixer and Django

I have seen that in the mixer there are several ready-made providers link link But there is no provider for 'products'. I wanted to create a provider for 'products', hence I saw in How to create a Provider link you can creat...
asked by 20.10.2015 / 20:43
0
answers

Error loading script uwsgi - can not be loaded as Python module

I made the settings to work Django with Apache, but always gives the following error:    can not be loaded as Python module My file: import os import sys sys.path.append('/home/myuser/public/site.com.br/public_html/app/') sys.path.appen...
asked by 18.09.2015 / 17:47
1
answer

How to copy record with DetailView and get in pk (Django)

Consider my template: entry_detail.html <form class="navbar-form navbar-right" action="." method="get"> <!-- add --> <!-- <p name="filter_link" class="pull-right"><a href="">Produtos em baixo estoque</a...
asked by 11.07.2015 / 08:35
0
answers

Base.html Templates in Django

Good morning !! I'm working with Django Templates. It turns out that I created one a base.html template that will serve all other html forms. I have an index.html that extends this tamplate beauty, but I already have another formLogin.html which...
asked by 05.06.2015 / 16:34