Cohen
https://github.com/ccarrylab/mock_test_aws
Mirco
Please move to @python
Cohen
It’s a Django framework
Cohen
I was suggested to come to this group, but someone in @python
Cohen
I’m mocking AWS services.
Mirco
Yes but it's all about testing not a Django issue
Cohen
Ok
Anonymous
Hi
Anonymous
Please i need this book 👇👇 Build a Website With Django 3: A complete introduction to Django 3
Anonymous
Please
Anonymous
Help me
Anonymous
Buy it
I don't have money 💔
Anonymous
I am from syria 😒
Mirco
You will buy it when you will have some Here we don't support piracy
Anonymous
Hi problem: i create a Post on admin panel in my site but the changes dose not show on the main page of my site
Doragonsureiyā
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Mirco
this is not a job platform
Anonymous
Why
I dont know 💔
Anonymous
i have a question, how can i implement two forms not related to each other in the same template?
ᴹᵃᵏˢᵃᵗ
Fabian
hello everyone, i need some help
Fabian
LawyerCertifications.objects.create(certification=certification['certification'], user=lawyer.user) TypeError: 'TemporaryUploadedFile' object is not subscriptable
Mirco
Oh, is it about DevOps?
nope, he uses AWS sdk and during testing he wanna mock those calls
Fabian
certifications = serializer.validated_data.pop('certifications') lawyer = LawyerProfile.objects.create(**serializer.validated_data) for certification in certifications: LawyerCertifications.objects.create(certification=certification['certification'], user=lawyer.user)
Fabian
it supposed that certifications is a dict containing one or more PDF of the certifates of the user, how do i save that to storage and DB?
Sai
Hey can we add multiple choice field in model???
Use lookup field month to filtet month wise
Cohen
nope, he uses AWS sdk and during testing he wanna mock those calls
I’m actually a DevOps Engineer. I’m mocking using moto, Boto, botocore, boto3 and deploying with AWS CDK.
వ్లాదమిర్ పుతిన్
in my CRUD app, i have set up utils in my app to handle sending sms sending. i want on successfl post request, i extract parameters from the json data and send the sms, where should i import my utils file
వ్లాదమిర్ పుతిన్
Right before sending happy response to that post request
i mean the data is coming from client side in react.
వ్లాదమిర్ పుతిన్
im receiving post data, where should i parse this and call my send sms?
వ్లాదమిర్ పుతిన్
in views ?
వ్లాదమిర్ పుతిన్
class DataList(generics.ListCreateAPIView): queryset = Data.objects.all() serializer_class = DataSerializer class DataDetail(generics.RetrieveUpdateDestroyAPIView): queryset = Data.objects.all() serializer_class = DataSerializer
వ్లాదమిర్ పుతిన్
my views
వ్లాదమిర్ పుతిన్
where should i call my send sms message
వ్లాదమిర్ పుతిన్
assumming i did import sendmessage from util
వ్లాదమిర్ పుతిన్
class DataSerializer(serializers.ModelSerializer): class Meta: model = Data fields = ('created', 'code','phone_number')
వ్లాదమిర్ పుతిన్
my serializers
వ్లాదమిర్ పుతిన్
assumming i did import sendmessage from util
where should i import this method and call? it takes the phone number and code parameter
Anonymous
We are planning to host html pages on github and connect them with the drf to reduce the load on our server. Would this be a good option? Or we should use django templates instead.
Anonymous
The website will have a traffic of 2000 visitors and we need all sorts of push notifications and user auth
Anonymous
host static on cdn
Sounds good! Will try that
Anurag
hey plzz help me anyone has ever used apscheduler in django app i need urgent help
Doragonsureiyā
class DataList(generics.ListCreateAPIView): queryset = Data.objects.all() serializer_class = DataSerializer class DataDetail(generics.RetrieveUpdateDestroyAPIView): queryset = Data.objects.all() serializer_class = DataSerializer
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
వ్లాదమిర్ పుతిన్
!paste
small formatted code snippets is fine IMHO, is that not readable for you?
Mirco
small formatted code snippets is fine IMHO, is that not readable for you?
Instead of multiple messages, one pastebin with all code is much better 🙂
kancharla
I have taken hosting VPS and I want to my Django+MySql site over there could any one send me how to do that
Random
How to implement django as serverless for aws
Anonymous
for virtualenv i m getting permission denied error
Anonymous
i m running a python script from python3 env to a python2 env. cuz the script only works in python 2
Anonymous
i m. running using /home/venv/bin/runtests -s /path/of/the/file.py
Anonymous
so i m getting error /home/venv/bin permission denied
వ్లాదమిర్ పుతిన్
Anonymous
i have not set any permissions for file
వ్లాదమిర్ పుతిన్
check current
Anonymous
for script or virtual env
వ్లాదమిర్ పుతిన్
script file
Anonymous
okay checking
Pradyum
Hi, I am looking to create a unique id like ABAB-AB01-0182-AIWN (sample)
Pradyum
does any have any experience how to do it?
Pradyum
Am aware about uuid but it does create like this any idea?
deadspy
hey help me with this.. i send a list from views to templates ajax so its having \n but its not breaking line there . Before.. IN the html templates i used to use |linebreakbr what for js?
Mehmet
You can use br tag.
deadspy
okay..
Mehmet
or put your \n terminated string between pre tags
Mehmet
But that may lead needing additional styling
deadspy
okay.. thanks...
Deep
hi i need some help regarding github
Deep
can anyone help me