Posts by Marcos Alves • 9 points
5 posts
-
0
votes1
answer88
viewsQ: Save files via upload to the folder configured with the stipulated name
I am in development environment, and would like to record an image by placing it after upload in a folder that I have configured locally on my machine like this: MEDIA_URL = '/media/' MEDIA_ROOT =…
-
0
votes2
answers295
viewsA: Foreignkey using User in other models
Obrigado Ricardo, eu acabei a minutos atrás descobrindo via outros meios a mesma coisa que tu me passou. E pelo que vi acertei. Veja como ficou agora. from django.shortcuts import render, redirect…
-
0
votes2
answers295
viewsQ: Foreignkey using User in other models
I’m developing a quotation site for language study purposes. I have customized the User models and it includes other attributes such as address and city for example. The problem now is to write the…
-
0
votes1
answer14
viewsA: templates extends from project to apps
I found out after reading a lot of articles on the subject. So: for a extends from the project, just include in Settings.py in the TEMPLATE configuration the following configuration 'DIRS':…
-
0
votes1
answer14
viewsQ: templates extends from project to apps
I have a project created from startproject ... command where in the structure of it, I created a templates folder, in which, I wish to have templates htmls bases, ie extending them to the templates…