Posts by Enderson Menezes • 126 points
6 posts
-
1
votes1
answer262
viewsA: Project Structure in Django
Work in a similar way and use the following structure. STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATIC_URL = '/static/' STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')] When I turn…
-
0
votes1
answer24
viewsA: Capture a value using Select with Django
If you change only the line below, see if it returns any errors. if request.POST: cliente = request.POST['cliente.id']
djangoanswered Enderson Menezes 126 -
0
votes2
answers169
viewsA: Login redirect Django does not work
Look, I don’t know if that’s all it is, because in my head, I would structure it differently. I identified that on your line 6 you are giving the function of authenticating the user. But on line 1…
-
0
votes4
answers92
viewsA: Field match, referenced in previous field
In the case medida_de_saida will always be a fixed value and you will never edit? If this is the case you can use an Override the save() method from Django. class Retirada(models.Model): veiculo =…
-
0
votes2
answers806
viewsA: App not compatible with buildpack (Heroku)
You have declared the Runtime and the 'machine' requested correctly? In accordance with the documentation Buildpack has to do with the instance you are asking Heroku to create, in case he may not be…
-
0
votes1
answer145
viewsA: Choices values are being stored like this ['Dog', 'Cat', 'Birds']
I understand you have a form receiving FIXED CHOICES. Inside your MODEL Business the field accepted You don’t have to have CHOICES. You can make this user "lock" only enter the data you want in the…