Maz
Ya same question , which one is cheap and efficient
From cheapest to most expensive: 1. Linode and Digital Ocean🙂 2. Google Cloud Compute😁 3. Amazon EC2😁 4. Azure 🤮
Anonymous
why this error? https://dpaste.org/mPZz#L69,81
Si
does any one make a register form?
😇ANGELO™️🎧
Si
Found in Django
Yes but when I enter username and password the page stays the same
Guido Ernesto
somebody have worked with <input type="search"> in django?
Anonymous
I have erro on acessin a data in firebase plase solve this plz db.collection('person').set({"name":"mine"}) Pleze solve this
Guido Ernesto
S
Have you worked?
Anonymous
Have you worked?
Just learning for one monts
Anonymous
Have you worked?
Ucn work with firebase
Guido Ernesto
But never has used it?
Guido Ernesto
I created a search bar but I want to implement it a type search
Guido Ernesto
I doesn't work
Guido Ernesto
What I'm trying
Guido Ernesto
I need some documentation about how to do it
Sid
Help Can I export my datatables to excel file format. Like save the data and then download it on the local system in excel file
Harikrishna
Does anyone know how to make follow unfollow module using rest
jay
What is smart_str in django?
Anki|Important texts only
i am unable to retrieve a list view from my Django admin, i am doing all the steps correctly, but its not working for me(following the steps from the book Django For Beginners). i need some help!
NOV
good morning from cambodia, anyone can share me install django from source which download from git?
Anonymous
how did you patch the following without exception? https://dpaste.org/DR8u
bot
Anyone knows about erosion and dilation
bot
Structuring element
Anonymous
I am looking for experienced python Developer Please ping me
Khumoyun
Hello, I want to create Django project with elasticsearch engine but I don't how to start. Who knows the best example project from github or tutorial with this? or any ideas?
Anonymous
how can I refactor this function? https://dpaste.org/dCPq returns django.db.utils.ProgrammingError: more than one row returned by a subquery used as an expression
.
Hello.. i am new in django..can anyone help me in django rest Framework ?
Ravi
Best way to add more security to Django Admin with features like 2FA, Captcha etc?
Kishore
How can I make a newsfeed using angular with django
Raja
How to find web page size using selenium in python
Anonymous
https://dpaste.org/EVDf why it's not saving the vuln_id? seems to be lost in the transition
Maz
Your choose azure is bad?
Azure is expensive bro. If you're not careful doing budgeting your bill will easily run into the hundreds of dollars
Mirco
!ot
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Mayur
from djongo import models class Files(models.Model): subject = models.CharField(max_length=128, null=True, blank=True) files = models.FileField(uplode_to="uplodes" ,blank=True) class Person(Subject): name = models.CharField(max_length=64) files = ArrayField( model_container=Files, null=True, blank=True)
Mayur
Is it right..?...But File url and file not showing after uplode in admin panel
Mayur
could anyone help plz!!
Ganesh
why its not saving the image
Ganesh
https://dpaste.org/2zna
Jacek
Ganesh Did you do the migration? In the model dob can be a null-value, but DB thinks it's NOT NULL...
Hari
What are the ORM libraries?
Jacek
@Challa4u ORM libraries are libraries that allow you to access DB from e.g. Python without writing SQL code, with object oriented style
Jacek
for instance Django ORM, or SQLAlchemy
Jacek
instead of conn.execute("SELECT * FROM ...") you simply write in Django: Model.objects.all()
Hari
Can you list 5 libraries ?
Mayur
add media url to settings.py and url.py
if i am doing this type it is working but not in nested class Person(Subject): name = models.CharField(max_length=64) files = ArrayField( model_container=Files, null=True, blank=True) files = models.FileField(uplode_to="uplodes" ,blank=True)
Hari
In django orm
Jacek
I can't, I only know 2 of them in Python: SQLalchemy & Django's built-in ORM
Hari
Thanks jacek
Ganesh
Ganesh Did you do the migration? In the model dob can be a null-value, but DB thinks it's NOT NULL...
now its saving the image but every thing except user and image becomes blank
Ganesh
Check what you have in fields... in form
but using that form i just want to get image from the user for other data i am not using form but user defined function ..
krishna
Please can any help How to write api location using pin code
Naresh
How to convert raw SQL query to Django orm, anyone suggest me how
__init__
p12 = crypto.load_pkcs12(open(abs_file, 'rb').read(), b'password') private_key = p12.get_privatekey() certificate = p12.get_certificate() ca_certificate = p12.get_ca_certificates() xml = open('data.xml', 'r').read() data = xml.encode() signature = crypto.sign(private_key, data, 'rsa-sha1') xml_signed = base64.b64encode(signature) verifyed = crypto.verify(ca_certificate, signature=signature, data=xml, digest='rsa-sha1') print(verifyed)
.....
Using django template can we post direct data on website without creating model.py
Dev__master
can any one help me please
Dev__master
how to add two serializers
Dev__master
in django
Dev__master
class sendMailSerializer(serializers.ModelSerializer): class Meta: model = sendemail fields = '__all__' class senthistoryserializer(serializers.ModelSerializer): sendemail = sendMailSerializer(many = True) class Meta: model = sentHistory fields = ['sendemail','SentBy','sentGroupId','fileDurationDownload','fileDurationByDays','password'] def create(self,validated_data): # print(validate_data) sendemail_data = validated_data.pop('sendemail') senthistory_data = sentHistory.objects.create(**validated_data) sendemail_user = sendemail.objects.create(**sendemail_data) return sendemail_user
Dev__master
here i need to combine two serializers to send update these teo tables in api
Anonymous
Please how do I generate random numbers of only unique 13 digits (only numbers, no string)...like account numbers
Devo
Output= int(''.join([str(random.randint(0,10)) for _ in range(13)]))
Sopan
import random def generate_activationcode (size=8, chars=string.digits): return ''.join(random.choice(chars) for x in range(size))
Sopan
use whatever size you want
Anonymous
Okay, let me run the code
Anonymous
Thanks
Sopan
To be precise >>> import string >>> import random >>> def generate_activationcode (size=8, chars=string.digits): ... return ''.join(random.choice(chars) for x in range(size)) ... >>> generate_activationcode(size=13) '2322362793234' >>>