mlapli's People
Forkers
tah-pitt tuleo arunpasricha sameer211095 alimye dafidakk brandonseah icebergone babaagba gel1has3 vincent95 dumodube falconalex ashishmenkudale queensaikia tusharnaagar cubebarn dharmajitbudha yigit-dev parkchongsam aimankhalid94 vaibhav1202 an4nd diegod96 isha0602 saurabhbajaj123 mefiskafka ahmad-noor sophiaken thesauravthakur ripu2 tolushawlar akhilsn hemantk123 phoenix1point618 uruakpauzochukwu aznoryusof farhanawan parvez2017 sagarsedai cipher0001 mohsinzafaruk1996 golammullick azeem110201 aniket-mishra chinmaysharmacs10 jm0216 99amruthap ajay-jay-965 codelabite harshabichandani drdrozio auliaset2769-ai mohammed0115 no-longlong litinkumar vinimiozzo t2061 ramkumarshukla bhuwan-acharya akashpilot achafi franchiseboyz ashish-narwal mohamedelhacen rohit1253 jesufemi-o aryanjain2504 vestigegroup gthadrien frstudy ryankirkland isaiahhonggitws126 riyadzaigirdar charankumarr evinai gabeochieng zhyouwen gkteco deshmukh-rutuja-21 alitosjm arpit1012 tokyo8182 carutasiub yongchangdong epaikins arafah-dhrubo developer-felix asoftrac5 goutham183 bencipher rehanaparbin02 predetor2111 sourabh-st kimhan1113 dgikonyo jakubstrawa1 zakaria-oussalem farhati2 amar1709mlapli's Issues
NameError: name 'MyAPI' is not defined
Could you help me with the error into video 17min?
Python=3.7
File "/home/luis/despliegueDjango/dj/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/luis/despliegueDjango/DjangoAPI/DjangoAPI/urls.py", line 22, in
path('api/', MyAPI.site.urls),
NameError: name 'MyAPI' is not defined
Issue while passing the post request with data with the api
I am following your videos and I have loaded the model from my windows machine by the following command:
#loading the model
mdl=joblib.load("C:/Users/umairansari/Pictures/Downloads/loan_model.pkl")
scalars=joblib.load("C:/Users/umairansari/Pictures/Downloads/Scalars.pkl")
The data I am passing for the post request:
{
"Dependents": 1,
"ApplicantIncome": 4500,
"CoapplicantIncome": 1500,
"LoanAmount": 1285,
"Loan_Amount_Term": 360,
"Credit_History": 1,
"Gender_Female": 0,
"Gender_Male": 1,
"Married_Yes": 1,
"Married_No": 0,
"Education_Graduate": 0,
"Education_Not_Graduate": 1,
"Self_Employed_No": 0,
"Self_Employed_Yes":1,
"Property_Area_Rural": 1,
"Property_Area_Semiurban": 0,
"Property_Area_Urban": 0,
}
The error I am getting is below
{
"detail": "Unsupported media type "text/plain" in request."
}
'tuple' object is not callable
I am following your video. After configuring the class approvals for models of model.py for created project 'MyAPI'
obtained following error
C:\Users\Padmini\DjangoAPI>python manage.py runserver Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 926, in _bootstrap_inner self.run() File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper fn(*args, **kwargs) File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run autoreload.raise_last_exception() File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line 76, in raise_last_exception raise _exception[1] File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\__init__.py", line 357, in execute autoreload.check_errors(django.setup)() File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper fn(*args, **kwargs) File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\apps\registry.py", line 114, in populate app_config.import_models() File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\apps\config.py", line 211, in import_models self.models_module = import_module(models_module_name) File "C:\Users\Padmini\AppData\Local\Programs\Python\Python37-32\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "C:\Users\Padmini\DjangoAPI\MyAPI\models.py", line 4, in <module> class approvals(models.Model): File "C:\Users\Padmini\DjangoAPI\MyAPI\models.py", line 7, in approvals ('Female','Female') TypeError: 'tuple' object is not callable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.