Rahul
How to test aws lambda function locally
Vadym
How to test aws lambda function locally
What do you mean "test"? run? or write unit/integration tests?
Vadym
I mean run and get output and debug it
If you want to test business logic that should be run in aws lambda I'd recommend you to keep all BL in separate function and then run it and debug as regular python function
Vadym
I can test in aws itself right?
do use serverless for your lambda functions?
Vadym
Yes
serverless invoke local -f <function-name> -s <stage> You can add pdb or ipdb in your code to debug it
Nitesh
https://stackoverflow.com/questions/65937517/adding-choices-but-not-showing-in-the-selectbox Pls try toh solve this problem
Haleem
https://stackoverflow.com/questions/65937517/adding-choices-but-not-showing-in-the-selectbox Pls try toh solve this problem
In ur code.. Category.objects.all().values_list('name','name')... Make values_list('name', flat=True)
Haleem
Use forms.ModelSelectField(queryset, initial)
Sorry it's ModelChoiceField
Vadym
In side function right?
serverless invoke local -f <function-name> -s <stage> from terminal pdb or ipdb in your function, like that: import ipdb; ipdb.set_trace()
Gk
How to use graph api using Django
Nats
Does django have any admin plugin to create/change/update/delete Model filed in website without coding.
Doragonsureiyā
How to use graph api using Django
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Gk
I read it I know there is documentation for it but my point is to know if any one had done that in Django already
Gk
Here
Mayur Parmar
Available Django in use video recording code with upload video
Mayur Parmar
cj
you can't
Mayur Parmar
How to implement web video in django
cj
because that's not how Django works... actually that's not how any Python code works
Naol
what about flask flask is a bit minimal
Doragonsureiyā
What are you talking about?
cj
can you please use proper English? so people can understand you
Naol
not it is a separate db software
Mayur Parmar
How to Capture and save we video in django Please sent link for code.. 🙏
Naol
don't judge, articulate your question well first
Naol
visit the documentation it is all there
Doragonsureiyā
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Swapnil
I've a function called testnums defined in views.py When I click on 'Test Numbering Scheme' button that I've defind in template, testnums gets called, but still no parameter is passed on to the function. How can I pass on the primary key as a parameter to testnums function ? Here is a corresponding code :
Swapnil
https://dpaste.org/Oqc0
Naol
there is no url segment after testnum in the <a href
Swapnil
I've specified inside my html: <a href="../testnums" onclick="$('#shownums_4').click()" class="btn btn-info btn-sm">Test numbering scheme</a>
Swapnil
Looks like I've done something wrong while specifying url
Mayur Parmar
Naol
Not available
there is on the documentation
cj
Not available
how come google is not available? is Google banned in your country or what?
cj
I can't find on google or duck
then you need to learn how to make a web search 🤷🏻‍♂️
Naol
does any have mod_wsgi binary
Naol
yes
Naol
in you url routing there is 'testnums/<int:rddbnums_pk>' but on the link there is none <a href= "../testnums"
;)
...: hi firnds i have error , subject is --> none type object has no attrebute lower i search the internet but i cant fix it who can help me ? i cant send photo here if anyone can help me send me message.in private…
Vxvek
Can anyone share how to use inline forms in django template
Sumit
Has anyone used django-user-accoynts library
Anonymous
Documentation for get_input_entity
Suganesh
class WorkSpaceSerializerListCrtApi(ListCreateAPIView): queryset = WorkSpace.objects.all() serializer_class = WorkSpaceSerializer def get_queryset(self, args, *kwargs): queryset_list = WorkSpace.objects.all() query = self.request.POST.get("WorkSpaceName") if query: dbname = query con = psycopg2.connect(user='postgres', host='127.0.0.1', password='sugan@123') con.set_isolation_level(ISOLATION_LEVEL_AUTOCOMMIT) cur = con.cursor() cur.execute('CREATE DATABASE '+ dbname) cur.close() con.close() return dbname
Suganesh
Hi All, Im trying to create new db using django rest. DB name has been saved to model but db not created. Please help this issue. https://dpaste.org/VcTo
SkyLord
Hello throws an error: AttributeError: 'QuerySet' object has no attribute '_meta' in line: tree_obj = ProjectStructure.objects.filter (projectstructure_project = pk) the given string in the put method from the APIView view I google and don't find a solution tree_obj object of type QuerySet can anyone meet? tell me how to solve the problem?
Suganesh
Any help.
Im helpless...
Daniel
Could anyone please point me to good tutorials about admin, user model and other django customizations?
Anonymous
Im helpless...
You're not committing
Suganesh
Anonymous
You need to commit your changes
Suganesh
Anonymous
con.commit() It should be placed before close
Suganesh
Can you please review my function.
Anonymous
Where?
Anonymous
Good Morning does anyone have examples of custom bar or pie charts using Highcharts? I found examples but they are simple
Uday
I know how to customise user model to take email/phone, etc instead of username
Uday
Is there a way I can let users register with email OR phone?
Daniel
Thx
Mohit
I have 2 django project. Both are deployed as azure web service. 1 service handles backend and using rest_framewok. 2nd service only renders frontend index.html. Is there a good way to send request that I get from frontend to backend service as it is?
Creator
Hey There any one knows about how to handle following Error ProgrammingError at / relation " " does not exist LINE 1: SELECT COUNT(*) AS "__ count" FROM " "