Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Passing Request objects to a serializer in DRF
Post: Passing Request objects to a serializer in DRF
I have a stand-alone app and a corresponding api. The idea is to consume the api in a browser extension. I can utilize the objects from a GET request in the app's views like so:
def room(request, roo... |
|
Dexty |
Web Scraping & Web Development |
0 |
1,536 |
Aug-15-2022, 04:51 AM |
|
|
Thread: How to Extend a serializer in Django Rest-Framework
Post: How to Extend a serializer in Django Rest-Framewor...
I have a stand-alone app and a corresponding api. The idea is to consume the api in a browser extension. I can utilize the objects from a GET request in the app's views like so:
def room(request, room... |
|
Dexty |
Web Scraping & Web Development |
0 |
1,734 |
Aug-10-2022, 02:53 PM |
|
|
Thread: Post request not saving in DRF
Post: Post request not saving in DRF
Anytime I try to post a request in Django-Rest-Framework view, it returns an empty array. This looks like a DRF issue and not a Django one but I don't know why.
models.py
from django.db import models... |
|
Dexty |
Web Scraping & Web Development |
0 |
929 |
Jun-03-2022, 12:35 PM |
|
|
Thread: Multiple Loop Statements in a Variable
Post: Multiple Loop Statements in a Variable
I'm quite familiar with:
for i in range(n):
for j in range(n):
print(i, j)and
myVar = [i for i in range(n)]Is there a way to correctly do the last example with 2 variables? Like this:
myVar2 = [i,... |
|
Dexty |
General Coding Help |
1 |
1,211 |
May-23-2022, 08:36 AM |
|
|
Thread: Split a number to list and list sum must be number
Post: RE: Split a number to list and list sum must be nu...
(Apr-28-2022, 06:47 AM)Coricoco_fr Wrote: (Apr-27-2022, 12:16 PM)Dexty Wrote: You should consider what @ibreeden has said. I tried something out though. You might want to check it out and how it w... |
|
Dexty |
General Coding Help |
5 |
2,307 |
Apr-28-2022, 09:32 AM |
|
|
Thread: Split a number to list and list sum must be number
Post: RE: Split a number to list and list sum must be nu...
(Apr-27-2022, 05:10 AM)sunny9495 Wrote: How to split a number to list and list sum must be number
Example :
x = 8
i want to split and make a list with 3 items and the sum of list must be equal to ... |
|
Dexty |
General Coding Help |
5 |
2,307 |
Apr-27-2022, 12:16 PM |
|
|
Thread: Knowing User's Connection Type in Django
Post: RE: Knowing User's Connection Type in Django
(Apr-05-2022, 03:52 PM)ndc85430 Wrote: HTTP won't have that information in the request. Why do you need it? What are you trying to achieve?Thanks for your response. I'm working in a team and we're w... |
|
Dexty |
Web Scraping & Web Development |
2 |
1,598 |
Apr-27-2022, 11:54 AM |
|
|
Thread: Knowing User's Connection Type in Django
Post: Knowing User's Connection Type in Django
Just wondering if it's possible to get an authenticated user's connection type. For example, are they connected to my Django app through a Wi-Fi (protected or open) or through a mobile data. |
|
Dexty |
Web Scraping & Web Development |
2 |
1,598 |
Apr-05-2022, 12:47 PM |
|
|
Thread: Fetching Images from DB in Django
Post: Fetching Images from DB in Django
It's a blog post and I already uploaded images to each post on the Admin page. The images aren't showing in the template, for some reason.
Project tree:
|______projectDirectory
|______media
_________... |
|
Dexty |
Web Scraping & Web Development |
2 |
1,731 |
Mar-08-2022, 04:51 AM |
|
|
Thread: POST `api` 415 (Unsupported Media Type)
Post: POST `api` 415 (Unsupported Media Type)
A little off the scope of Python but I'm trying to get things done in the frontend before integrating the Django backend.
I have tried different header objects to this simple html page from where I'm... |
|
Dexty |
Web Scraping & Web Development |
2 |
4,734 |
Jan-07-2022, 03:22 PM |
|
|
Thread: Allowing CORS in Django app with a React frontend
Post: Allowing CORS in Django app with a React frontend
I have a Django app with a React frontend but I can't make requests. I've tried with fetch and axios to post requests to an endpoint from a login form but the error persists. I''ve also installed djan... |
|
Dexty |
Web Scraping & Web Development |
0 |
3,224 |
Dec-22-2021, 11:38 PM |
|
|
Thread: Post HTML Form Data to API Endpoints
Post: Post HTML Form Data to API Endpoints
I'll like to know the suitable method for posting form data to DRF API endpoints. The idea is to post and query the API's model. A team member has already made the API and it authenticates users too. ... |
|
Dexty |
Web Scraping & Web Development |
0 |
1,413 |
Nov-11-2021, 10:51 PM |
|
|
Thread: Simple Password Checker
Post: RE: Simple Password Checker
(Sep-21-2021, 09:35 PM)deanhystad Wrote: You are forcing each letter to be uppercase, lowercase, a number and a special character. That is rather stringent. Maybe you need to process every charact... |
|
Dexty |
General Coding Help |
8 |
5,072 |
Sep-24-2021, 06:17 AM |
|
|
Thread: Simple Password Checker
Post: RE: Simple Password Checker
(Sep-21-2021, 09:35 PM)deanhystad Wrote: You are forcing each letter to be uppercase, lowercase, a number and a special character. That is rather stringent. Maybe you need to process every charact... |
|
Dexty |
General Coding Help |
8 |
5,072 |
Sep-23-2021, 09:54 PM |
|
|
Thread: Simple Password Checker
Post: Simple Password Checker
I've been trying to write a script that simply checks the strength of a password but the results aren't satisfactory. I know there are other ways to do it but I want to accomplish the task with the 'f... |
|
Dexty |
General Coding Help |
8 |
5,072 |
Sep-21-2021, 09:29 PM |
|
|
Thread: Automating Captcha form submission with Mechanize
Post: RE: Automating Captcha form submission with Mechan...
(Aug-02-2021, 09:21 PM)Yoriz Wrote: Quote:CAPTCHA technology authenticates that a real person is accessing the web content to block spammers and bots that try to automatically harvest email addresse... |
|
Dexty |
Web Scraping & Web Development |
2 |
3,316 |
Aug-03-2021, 01:02 PM |
|
|
Thread: Automating Captcha form submission with Mechanize
Post: Automating Captcha form submission with Mechanize
The idea is to automate download on o2tvseries. It's a website for film shows. We must automate the submission of a Captcha form in the process. The mechanize library helps with filling the form. Wher... |
|
Dexty |
Web Scraping & Web Development |
2 |
3,316 |
Aug-02-2021, 08:55 PM |