If you are receiving an error while using the "PUT" method it's probably because Django is not receiving data for all required fields. Use "blank=True" in your model's fields if you want to send partial data and still update the entry.
I keep getting "Can't bind to 'dep' since it isn't a known property of 'app-add-edit-dep' Same for 'emp'. I have to add "@Input() dep:any;" to add-edit-dep.component.ts as well as "@Input() emp:any;" to the add-edit-emp.component.ts. Why did you not have to do this?
If your department data table is not showing up on the department screen, make sure to add one line above the last tag to the file named app.component.html
This is a great tutorial if you already know fundamental of the code otherwise just no use to you copying his code. Easily trick into thinking I know how to code but not.
I had an issue where using URL wasn't working. I switched my urls.py files to from django.urls import re_path and switched my url() function calls to re_path() function calls. worked like a charm.
Thank you for making such wonderful video. I learned a lot from here. I was following your instructions but got stuck when I got an error "'TenderSerializer' object has no attribute 'is_vaid''" while testing PUT and POST methods of my API. GET and DELETE works absolutely fine. My model is different than shown in the tutorial. May I request your assistance, please? Thank you.
error founded and fixed it. I were errored in the "shared.service.ts" file. errored before in the "val". i typed it as ",val". but it must be as "+val". then corrected code as follows, deleteDepartment(val:any){ return this.http.delete(this.APIUrl + '/department/'+val); }
Delete is not working in angular application. but it works in postman. I tested this with angular 12. Please help me, I found this in Django terminal, File "F:\Workshop\DjangoAngular\myenv\lib\site-packages\django\db\models\query.py", line 435, in get raise self.model.DoesNotExist( EmployeeApp.models.Departments.DoesNotExist: Departments matching query does not exist. [28/Aug/2021 10:18:37] "DELETE /department/ HTTP/1.1" 500 76057
error found and fixed it. I were errored in the "shared.service.ts" file. errored before in the "val". i typed it as ",val". but it must be as "+val". then corrected code as follows, deleteDepartment(val:any){ return this.http.delete(this.APIUrl + '/department/'+val); }
Bro nice video! I'm getting 500 Internal Server Error on Postman due to which "Added Successfully!!" Etc like messages are not being displayed,although data is being added through get request if i check in sqlite. Please help,why can't i see messages? I have restarted the server several times but it was upto no avail.
i am getting this error... ModuleNotFoundError: No module named 'corsheaders.middleware.CorsMiddlewaredjango'; 'corsheaders.middleware' is not a package
I am looking to deploy angular app integrated with Django app to a production server. Does this video contain details about how to run Django and angular on apache server?
Hi I am getting error for django rest framework. I have installed it successfully but still getting error. from rest_framework.parser import JASONParser ModuleNotFoundError: No module named 'rest_framework.parser'
I wrote same code as u have but 2 features are not working as expected 1. Image preview after selecting it. 2. Filter option (after typing department ID in textbox doesn't show any records) If anyone can suggest me solution it would be very grateful to me And if anybody have other errors than share with me if i'll able to help than surely I will 😊
This is a great tutorial. But I am getting an error in postman saying "Object of type type is not JSON serializable" and shows the error at: - if request.method=='GET': players = Player.objects.all() player_serializer = PlayerSerializer(players, many=True) return JsonResponse(player_serializer.data,safe=False)
the project was working fine but when i close and run it the next day i got this problem Page not found (404) Request Method: GET Request URL: 127.0.0.1:8000/ Using the URLconf defined in DjangoAPI.urls, Django tried these URL patterns, in this order: admin/ ^ ^department/$ ^ ^department/([0-9]+)$ ^ ^employee/$ ^ ^employee/([0-9]+)$ ^ ^SaveFile$ ^ ^media/(?P.*)$ The empty path didn't match any of these. every thing is fine the code i run the server normaly like i did before but i got this problem
Give the complete information to your viewers otherwise they will not coming back to your channel..... you have discuss here some coding to build web app, it's okay, but you should to finish that project otherwise it may get stuck to your audience very easily.....
File "D:\DjangoAngular\myenv\Lib\site-packages\corsheaders\signals.py", line 5, in check_request_enabled = django.dispatch.Signal( ^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Signal.__init__() got an unexpected keyword argument 'providing_args' I am getting this error. Could anyone help me to find the solution?
Hi, I'm getting this error: exception in main thread in get_internal_wsgi_application. django.core.exceptions.Improperlyconfigured: WSGI application 'DjangoAPI.wsgi.application' could not be loaded. Could someone help me.
it should be in below order 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware' remove: 'whitenoise.middleware.WhiteNoiseMiddleware', WSGI_APPLICATION = 'your_project_name.wsgi.application'
00:00 - 10:05, Introduction + installing tools, dependencies, etc. + virtual environment
10:06, Create Django Project
12:46, Exploring SQLite DB File
14:20, Enable CORS
16:25, Create Django App and Models
20:50, Add Serializers
22:33, APIs for Department Screen: GET, PUT, POST & DELETE
31:48, APIs for Employee Screen: GET, PUT, POST & DELETE
35:40, API method to Upload Photo
40:08, Introduction to Angular Project
41:41, Create Angular 10 Project
45:25, Generate Components and Services
WIP
Enjoyed it. Completed it in one shot. Great work and lots of love.
Subscribed and liked it first and will watch the video over the weekend.
If you are receiving an error while using the "PUT" method it's probably because Django is not receiving data for all required fields. Use "blank=True" in your model's fields if you want to send partial data and still update the entry.
Thank you Leandro! It worked!
I keep getting "Can't bind to 'dep' since it isn't a known property of 'app-add-edit-dep' Same for 'emp'.
I have to add "@Input() dep:any;" to add-edit-dep.component.ts as well as "@Input() emp:any;" to the add-edit-emp.component.ts.
Why did you not have to do this?
Thank you bro I had the same problem your solution worked for me
Thanks bro
i guess it's kind of off topic but do anyone know a good site to stream new series online?
Because of angular 12 type safety :any
@upcollector thanks a lot for the fix.
If your department data table is not showing up on the department screen, make sure to add one line above the last tag to the file named app.component.html
It is a great video. Thank you. Hope to see you in a future work like this one.
Extremely cool video, got a lot of new even from Django!)
this channel hella underrated
Great. I'm looking this kind of video for a long time. thanks alot.
thank, i'm watched in brazil!!! thank for contents disponibilized free!!
This is a great tutorial if you already know fundamental of the code otherwise just no use to you copying his code. Easily trick into thinking I know how to code but not.
That was a nice one!
thanks i was looking for this kind of course for a days . thanks alot
I had an issue where using URL wasn't working. I switched my urls.py files to from django.urls import re_path and switched my url() function calls to re_path() function calls. worked like a charm.
This video is excellent to build an app. It will be great if you can share some tutorials to learn angularjs.
Thank you for making such wonderful video. I learned a lot from here. I was following your instructions but got stuck when I got an error "'TenderSerializer' object has no attribute 'is_vaid''" while testing PUT and POST methods of my API. GET and DELETE works absolutely fine. My model is different than shown in the tutorial. May I request your assistance, please? Thank you.
You've made a typo, it should be is_valid()
Would you plz make a video of how to send an email using django rest framework and angular?
This was awesome! Thank you very much!
It's nice video but I'm beginner to angular and web api please make videos for beginners to learn angular and web api tutorial, thank you so much.
Thank you for such a wonderful video
delete item is not working for me i have been tried for hours but dont know where i was mistaked. ols help me
same here, we might have missed something, but postman delete works, only in Angular doesn't, should be Angular issue, but cannot find the error
I also have the same trouble. Delete is not work.
error founded and fixed it. I were errored in the "shared.service.ts" file.
errored before in the "val". i typed it as ",val". but it must be as "+val".
then corrected code as follows,
deleteDepartment(val:any){
return this.http.delete(this.APIUrl + '/department/'+val);
}
hello! has anyone got this error please :No 'Access-Control-Allow-Origin' header is present on the requested resource. ?
Hello sir, I am not able to Show Employee .Suggest me something sir.
THANK YOU!
Thanks for the video, but I am stuck at the post method, It is not working on Postman (failed to add
)
Same here bro department is working. Employee is not working.
Department Data is not getting displayed. in departartment screen
have you got the solution? I'm getting same error
@@ujwalakadam2049 Add one line above the last tag to the file named app.component.html
Add one line above the last tag to the file named app.component.html
hello can you make a video with angular php and sqlite like data base
can you make a tutorial for django-rest-framework+angular+mongodb
Thanks bro! great tutorial
Delete is not working in angular application. but it works in postman. I tested this with angular 12. Please help me,
I found this in Django terminal,
File "F:\Workshop\DjangoAngular\myenv\lib\site-packages\django\db\models\query.py", line 435, in get
raise self.model.DoesNotExist(
EmployeeApp.models.Departments.DoesNotExist: Departments matching query does not exist.
[28/Aug/2021 10:18:37] "DELETE /department/ HTTP/1.1" 500 76057
error found and fixed it. I were errored in the "shared.service.ts" file.
errored before in the "val". i typed it as ",val". but it must be as "+val".
then corrected code as follows,
deleteDepartment(val:any){
return this.http.delete(this.APIUrl + '/department/'+val);
}
Bro nice video!
I'm getting 500 Internal Server Error on Postman due to which "Added Successfully!!" Etc like messages are not being displayed,although data is being added through get request if i check in sqlite. Please help,why can't i see messages?
I have restarted the server several times but it was upto no avail.
how to deploy on heroku or firebase?
How to use authenticate and Authorization
cannot import name 'url' from 'django.conf.urls' i have the problem when i run the server
is django a enterprise level framework ?
Of course..
i am getting this error...
ModuleNotFoundError: No module named 'corsheaders.middleware.CorsMiddlewaredjango'; 'corsheaders.middleware' is not a package
great! Thanks you very much.
I am looking to deploy angular app integrated with Django app to a production server. Does this video contain details about how to run Django and angular on apache server?
No
Will you be doing a tutorial on
SQL + ASP.Net Core web api + React.js?
Awesome video. respect ++
What Tool did you use to capture the Video ? and also what Editing tool did you use ? can you share with us ?
you can use obs studio, and you could use for edition, the windows 10 video editor, it is really easy to use.
Hi I am getting error for django rest framework. I have installed it successfully but still getting error.
from rest_framework.parser import JASONParser
ModuleNotFoundError: No module named 'rest_framework.parser'
You need to activate virtual environment first
@@adityayaduvanshi3813 Already activated but still getting the same error
Angular 10 is not getting installed it is coming as if changed 183 packages and audited 184 packages in 42s
22 packages are looking for funding
I wrote same code as u have but 2 features are not working as expected
1. Image preview after selecting it.
2. Filter option (after typing department ID in textbox doesn't show any records)
If anyone can suggest me solution it would be very grateful to me
And if anybody have other errors than share with me if i'll able to help than surely I will 😊
Did you find a solution? I have the same problem
Hi, in 19:50 i get this erroe, could you help me?:
TypeError: entry_points() missing 1 required positional argument: 'name'
Catalina Hernández I got error. No installed app with label EmployeeApp
Love brother
Thank you.
Can't we use pipenv for create virtual environment?
I think you can! I always use! I'll try pipenv too!
@@carlosamaral6917 thnx ❤️
super like!!!!
This is a great tutorial. But I am getting an error in postman saying "Object of type type is not JSON serializable" and
shows the error at: -
if request.method=='GET':
players = Player.objects.all()
player_serializer = PlayerSerializer(players, many=True)
return JsonResponse(player_serializer.data,safe=False)
I have the same problem :/
the project was working fine but when i close and run it the next day i got this problem
Page not found (404)
Request Method: GET
Request URL: 127.0.0.1:8000/
Using the URLconf defined in DjangoAPI.urls, Django tried these URL patterns, in this order:
admin/
^ ^department/$
^ ^department/([0-9]+)$
^ ^employee/$
^ ^employee/([0-9]+)$
^ ^SaveFile$
^ ^media/(?P.*)$
The empty path didn't match any of these.
every thing is fine the code i run the server normaly like i did before but i got this problem
Plz create a video for Mac users...
Just a tip: never create a id fiel in Django because it is created in any model in makemigrations! the Autofield is not for that!!
Plzz add autherisation and authentication in the tutorial with drf or do another video on that..plz plz
department screen data not displayed plz help me plz 1:1:05
Crispy
Hmm yes the SAD full web stack
Not able to download Django
Hello sir I am getting error. How to think to resolve that error.
Hello sir, I resolve my issues from myself.
Thanks
LOL you think people will magically know which error you are talking about :D
this is a udemy tutorial thanks
awesome
Can you show us how to deploy it on a server too?
Thank you thanks a lot
Good 👍😎
I think this tutorial needs little more polishing by adding the explanation of some terms . Since some people are new to angular like me!
Is there anyone to help me . I am getting silly error.
I have completed this. Thanks sir.
Thanks you
Give the complete information to your viewers otherwise they will not coming back to your channel..... you have discuss here some coding to build web app, it's okay, but you should to finish that project otherwise it may get stuck to your audience very easily.....
django 2.0?
bro upload video for ''''''''"couchbase json database + .net core web api + angular front end vs code"""""" do some basic crud operation
File "D:\DjangoAngular\myenv\Lib\site-packages\corsheaders\signals.py", line 5, in
check_request_enabled = django.dispatch.Signal(
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Signal.__init__() got an unexpected keyword argument 'providing_args'
I am getting this error. Could anyone help me to find the solution?
Sir give the tutorial to free host this project
Hi, I'm getting this error: exception in main thread in get_internal_wsgi_application. django.core.exceptions.Improperlyconfigured: WSGI application 'DjangoAPI.wsgi.application' could not be loaded. Could someone help me.
Can you tell me how did you resolve it ?? I am facing the same!!
it should be in below order
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware'
remove:
'whitenoise.middleware.WhiteNoiseMiddleware',
WSGI_APPLICATION = 'your_project_name.wsgi.application'
was up boys and girls
whach u daoing in this fine night
good night
31:45
1:06:06
Too many Ads, too annoying...
wonderfullll
Many thanks for this great content.