In Python the lists could contain other lists for example
lista = ["x",["a","b"],["c","d"],"z"];
print lista[1][1]>>>>>>>>>> output "b"
my question is ... in c # can other fixes be contained in an array...
I am trying to use the File_CSS from Materialize but I can not find a way to make it work for me.
This is my model:
class ComprobanteDomicilio(models.Model):
alumno = models.ForeignKey(Alumno, on_delete=models.CASCADE)
url_documen...
I'm trying to migrate through heroku to log in with fb but when I run the command heroku run python manage.py migrate the following happens (I'm supposed to have already done diployed in heroku):
>>> heroku run python manage.py...
In the view.py I have a query like this
ing =ingresos.objects.filter(pk=id_jovenclub).values('natural').annotate(sum=Sum('natural'))
in the template is like this
{{ ing}}
and it returns these values
[{'sum': 1066.0, 'natural': 1066...
for example I have this chain
the Red car.
and I want to know if after that. another word comes
I had thought of this solution
cadenaaux = "el carro rojo.casa"
if (cadenaaux.count('.') > 0 and cadenaaux[-1] != '.'):
but the last position...
Of the libreria Scipy to use the metodo de Newton I have to declare the functions and the parameters scipy.optimize.newton(func, x0, fprime=None, args=(), tol=1.48e-08, maxiter=50, fprime2=None) The problem is that when I de...
Good evening
Veran I am new to python and I need
someone to explain to me how to do
save an information x in txt file
for example:
student: carlos rojas
age: 29
Address: alajuela
telefo: 2222222
student: luis perez
age: 18
Address: here...
I am a student. I've been trying to solve this error for hours and I can not find a way to do it:
This is the complete error:
builtins.KeyError
KeyError: 'SQLALCHEMY_TRACK_MODIFICATIONS'
Traceback (most recent call last)
File "C:\Users\Mar...
You see, I have created a model which is used to link a comment to a user.
This is the code models.py:
class mensajeria(models.Model):
texto=RichTextField(max_length=300)
usuario=models.OneToOneField(User)
def __srt__(self):...