
- 37
- 375 923
Code Environment
South Africa
เข้าร่วมเมื่อ 18 ธ.ค. 2019
Welcome to Code Environment Channel where we are planning to cover the following topics:
Web Development [Python, JavaScript] ----- [Django, React] ---- [HTML, CSS] ----- [Bootstrap, MaterialUI]
Mobile Applications [ JavaScript, Swift, Python] ----- [React-Native , Django REST Framework, XCode]
Embedded Linux [Python, JavaScript] ---- [Raspberry Pi , NVIDIA Jetson Nano]
Web Development [Python, JavaScript] ----- [Django, React] ---- [HTML, CSS] ----- [Bootstrap, MaterialUI]
Mobile Applications [ JavaScript, Swift, Python] ----- [React-Native , Django REST Framework, XCode]
Embedded Linux [Python, JavaScript] ---- [Raspberry Pi , NVIDIA Jetson Nano]
Deploy Python API Online, Deploy Django REST Framework To Heroku.
Welcome to a new tutorial.
How to deploy Django project / API to Heroku.
Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud.
In this tutorial you will learn how to setup and configure your Django REST Framework API to be deployed and hosted on Heroku platform.
🎧 Music : th-cam.com/video/AYE8WJVF15I/w-d-xo.html
Music Channel : @tuningthecode
Deploy Django API To Heroku Source Code / Repository:
github.com/CodeEnvironment/django-rest-framework-deploy-heroku
Django REST Framework Sires Source Code:
github.com/CodeEnvironment/django-rest-framework-code
Django REST Framework Series :
m.th-cam.com/play/PLmDLs7JbXWNjr5vyJhfGu69sowgIUl8z5.html
How to deploy Django project / API to Heroku.
Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud.
In this tutorial you will learn how to setup and configure your Django REST Framework API to be deployed and hosted on Heroku platform.
🎧 Music : th-cam.com/video/AYE8WJVF15I/w-d-xo.html
Music Channel : @tuningthecode
Deploy Django API To Heroku Source Code / Repository:
github.com/CodeEnvironment/django-rest-framework-deploy-heroku
Django REST Framework Sires Source Code:
github.com/CodeEnvironment/django-rest-framework-code
Django REST Framework Series :
m.th-cam.com/play/PLmDLs7JbXWNjr5vyJhfGu69sowgIUl8z5.html
มุมมอง: 2 610
วีดีโอ
Django Rest Framework API / Deploy Django API To AWS Elastic Beanstalk PART #4.
มุมมอง 1.8K2 ปีที่แล้ว
In this series, we deploy a Django web application to Amazon Web Services. We start by: 1- Setup a Python Virtualenv,. 2- Configure Django project for Elastic Beanstalk. 3- Deploy the API. 4- Update the project and redeploy. 5- Create a superuser, and set up static files. 🎧 Music : th-cam.com/video/AYE8WJVF15I/w-d-xo.html Music Channel : @tuningthecode AWS DOCs: docs.aws.amazon.com/elasticbeans...
Django Rest Framework API / Deploy Django API To AWS Elastic Beanstalk PART #3.
มุมมอง 6K2 ปีที่แล้ว
In this series, we deploy a Django web application to Amazon Web Services. We start by: 1- Setup a Python Virtualenv,. 2- Configure Django project for Elastic Beanstalk. 3- Deploy the API. 4- Update the project and redeploy. 5- Create a superuser, and set up static files. 🎧 Music : th-cam.com/video/AYE8WJVF15I/w-d-xo.html Music Channel : @tuningthecode AWS DOCs: docs.aws.amazon.com/elasticbeans...
Django Rest Framework API / Deploy Django API To AWS Elastic Beanstalk PART #2.
มุมมอง 4.2K2 ปีที่แล้ว
In this series, we deploy a Django web application to Amazon Web Services. We start by: 1- Setup a Python Virtualenv,. 2- Configure Django project for Elastic Beanstalk. 3- Deploy the API. 4- Update the project and redeploy. 5- Create a superuser, and set up static files. AWS DOCs: docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html Source Code: github.com/CodeEnviro...
Django Rest Framework API / Deploy Django API To AWS Elastic Beanstalk PART #1.
มุมมอง 6K2 ปีที่แล้ว
In this series, we deploy a Django web application to Amazon Web Services. We start by: 1- Setup a Python Virtualenv,. 2- Configure Django project for Elastic Beanstalk. 3- Deploy the API. 4- Update the project and redeploy. 5- Create a superuser, and set up static files. 🎧 Music : th-cam.com/video/AYE8WJVF15I/w-d-xo.html Music Channel : @tuningthecode AWS DOCs: docs.aws.amazon.com/elasticbeans...
How To Test Your REST API Using VSCode and NOT Postman.
มุมมอง 2.4K3 ปีที่แล้ว
In this tutorial you will learn how to test your API inside VSCode without the need to use Postman. Source Code: github.com/CodeEnvironment/django-rest-framework-code Scheduler Documentation: apscheduler.readthedocs.io/en/stable/userguide.html#installing-apscheduler How to use THREADING to improve API performance: th-cam.com/video/3gz7mzveAUw/w-d-xo.html ModelViewSet and Routers With Serializer...
Django Rest Framework API #31 / Improve API Response Using Pagination
มุมมอง 9K3 ปีที่แล้ว
improve the cohesion and discoverability of our API, by instead using pagination. 🎧 Music : th-cam.com/video/AYE8WJVF15I/w-d-xo.html Music Channel : @tuningthecode Source Code: github.com/CodeEnvironment/django-rest-framework-code Improve API Response Using Hyperlinks: th-cam.com/video/1MKnL8WhaYw/w-d-xo.html How to use THREADING to improve API performance: th-cam.com/video/3gz7mzveAUw/w-d-xo.h...
Django Rest Framework API #30 / Improve API Response Using Hyperlinks
มุมมอง 2K3 ปีที่แล้ว
improve the cohesion and discoverability of our API, by instead using hyperlinking. Source Code: github.com/CodeEnvironment/django-rest-framework-code Improve API Response Using Pagination: th-cam.com/video/ZgmF6AX3U7E/w-d-xo.html How to use THREADING to improve API performance: th-cam.com/video/3gz7mzveAUw/w-d-xo.html ModelViewSet and Routers With Serializer: th-cam.com/video/c-icuNefSUo/w-d-x...
Django Rest Framework API #29 / represent relationships using Serializer StringRelatedField.
มุมมอง 4.1K3 ปีที่แล้ว
Welcome to a new tutorial where you will learn: How to use StringRelatedField inside the serializer to represent the target of the relationship using the method ( str ). 🎧 Music : th-cam.com/video/AYE8WJVF15I/w-d-xo.html Music Channel : @tuningthecode Source Code: github.com/CodeEnvironment/django-rest-framework-code Serializers , Model Serializer: th-cam.com/video/byKUx9CcfXI/w-d-xo.html Model...
Django Rest Framework API #28 / Django API Permissions Using Throttling.
มุมมอง 4.4K3 ปีที่แล้ว
Welcome to a new tutorial where you will learn: - What is Throttling and why would we use it. - How to use throttle to control the rate of request to Django API. - How to control the rate of request for Authenticated and Unauthenticated users. - How to configure throttling for different parts of Django API and control the rate of requests for each application separately. - How to use Cache to p...
Django Rest Framework API #27 / How To Schedule a Task | Function To Improve API Performance.
มุมมอง 20K3 ปีที่แล้ว
In this tutorial you will learn: - How to Schedule a function / job in Django REST API. - How to execute a function using Scheduler in a specific interval. - How to optimize API performance using Scheduler. - How to use requests to get data from external API. 🎧 Music : th-cam.com/video/AYE8WJVF15I/w-d-xo.html Music Channel : @tuningthecode Source Code: github.com/CodeEnvironment/django-rest-fra...
Django Rest Framework API #26 / How To Use THREADING To Improve API Performance.
มุมมอง 9K3 ปีที่แล้ว
In this video you will learn: - How To Use THREADING To Improve API Performance. - How To send an email using Multithreading. - How To Send an email using Gmail SMTP server. - How To Configure settings.py of the API project to be allow email sending. - Using send_mail from django.core.mail to send an email Please if you have any questions, leave it in the comment below and I will be happy to he...
Django Rest Framework API #3 / How To Install Django Rest Framework. 🎙UPDATE
มุมมอง 1.7K3 ปีที่แล้ว
How to install Django Rest-framework and do the necessary configurations in django project settings.py file. Django REST framework is a powerful and flexible toolkit for building Web APIs. Source code: github.com/CodeEnvironment/django-rest-framework-code Django Rest Framework API #1/ Start a Django REST API Project. th-cam.com/video/iIqMEflK-HM/w-d-xo.html Django Rest Framework API #4/ Django ...
Django Rest Framework API #4/ Django Rest Auth Installation, Registration and Login. 🎙UPDATE
มุมมอง 7K3 ปีที่แล้ว
Django Rest Framework with Django Rest Auth implementation. Since the introduction of django-rest-framework, Django apps have been able to serve up app-level REST API endpoints. As a result, we saw a lot of instances where developers implemented their own REST registration API endpoints here and there, snippets, and so on. We aim to solve this demand by providing django-rest-auth, a set of REST...
Django Rest Framework API #25 / How To Add Extra Fields To a Serializer Using SerializerMethodField
มุมมอง 16K3 ปีที่แล้ว
In this video you will learn: How to add extra fields to the API response using "SerializerMethodField". How to declare a SerializerMethodField variable inside ModelSerializer class and use it to add an extra field to the serializer fields. Define a private method inside the serializer class that will process some data and return the desired value of the extra field. 🎧 Music : th-cam.com/video/...
Django Rest Framework API #2 / Django Admin Panel. - updated-
มุมมอง 8K4 ปีที่แล้ว
Django Rest Framework API #2 / Django Admin Panel. - updated-
Django Rest Framework API #24 / PARTIAL UPDATE | PATCH Action | Method for ModelViewSet and ApiView
มุมมอง 14K4 ปีที่แล้ว
Django Rest Framework API #24 / PARTIAL UPDATE | PATCH Action | Method for ModelViewSet and ApiView
Django Rest Framework API #23 / Override UPDATE | PUT Action | Method for ModelViewSet and ApiView.
มุมมอง 16K4 ปีที่แล้ว
Django Rest Framework API #23 / Override UPDATE | PUT Action | Method for ModelViewSet and ApiView.
Django Rest Framework API #22 / Many To Many Relationship , Nested Data
มุมมอง 27K4 ปีที่แล้ว
Django Rest Framework API #22 / Many To Many Relationship , Nested Data
Django Rest Framework API #21 / Building Custom User Model
มุมมอง 15K4 ปีที่แล้ว
Django Rest Framework API #21 / Building Custom User Model
Django Rest Framework API #20 / JWT, JSON Web Token Authentication with Django Rest Framework
มุมมอง 5K4 ปีที่แล้ว
Django Rest Framework API #20 / JWT, JSON Web Token Authentication with Django Rest Framework
Django Rest Framework API #19 / One To One Relationship, Nested Data
มุมมอง 8K4 ปีที่แล้ว
Django Rest Framework API #19 / One To One Relationship, Nested Data
Django Rest Framework API #18 APIView GET Object By ID, URL Parameters .
มุมมอง 16K4 ปีที่แล้ว
Django Rest Framework API #18 APIView GET Object By ID, URL Parameters .
Django Rest Framework API #17 APIView GET & POST Request and Response.
มุมมอง 27K4 ปีที่แล้ว
Django Rest Framework API #17 APIView GET & POST Request and Response.
Django Rest Framework API #16 / Many To One Relationship, Nested Data
มุมมอง 21K4 ปีที่แล้ว
Django Rest Framework API #16 / Many To One Relationship, Nested Data
Django Rest Framework API #1/ Start a Django REST API Project.
มุมมอง 19K4 ปีที่แล้ว
Django Rest Framework API #1/ Start a Django REST API Project.
Django Rest Framework API #15 / Override Delete Action (destroy method) DELETE Request.
มุมมอง 7K4 ปีที่แล้ว
Django Rest Framework API #15 / Override Delete Action (destroy method) DELETE Request.
Django Rest Framework API #14 / Override Create Action | CREATE Method ModelViewSet.
มุมมอง 13K4 ปีที่แล้ว
Django Rest Framework API #14 / Override Create Action | CREATE Method ModelViewSet.
Django Rest Framework API #13 / Search in GET ,Model Filtering With 2 Parameters Or More.
มุมมอง 7K4 ปีที่แล้ว
Django Rest Framework API #13 / Search in GET ,Model Filtering With 2 Parameters Or More.
Django Rest Framework API #12 / Search | Filtering Data Inside ModelViewset.
มุมมอง 11K4 ปีที่แล้ว
Django Rest Framework API #12 / Search | Filtering Data Inside ModelViewset.
It saved my life bro, well done, Great Job
Something wrong is going on here. Why wouldn't we use query params for it? You approach is far from good RESTful practices. Also using django-filter is a good way to go.
Query parameters is definitely a better approach.
I see you're pretty fast on comments but the last videos are 2 years ago. Wondering why not posting anymore.
I try to provide as much support as I can however I’ve been busy with many projects and couldn’t find the time to create content. But will get back on it as soon as I am able to ✌🏻
Just want to point that your examples with using retrieve method are fine just for quick examples but using it for something except retrieving object data is not a normal RESTful behaviour. Not sure if you mentioned it in the video so leaving this here in the comment :)
When I ran eb init, it asked me for my AWS Access Key ID and Secret Access Key. Could you explain where to find these credentials? Thanks!
how can we get source of code
Please check the description for the GitHub link.
ı got "django.db.utils.OperationalError: no such table: auth_user" error when i did heroku run python manage.py createsuperuser how can i fix that problem?
Make sure you run makemigrations then migrate
Great content! Do you have any tips on how to solve the psycopg2 problem? My app uses it and i'm struggling with it. Thanks
Use psycopg2-binary
Thank you very much helped alot❤
Thank you for this wonderful series it is beginner friendly 🎊🔥👍
how do you add and remove modules to and from students that already exist????
Oh I see it is in the NEXT tutorial. Watching that one next. Thanks for this.
Well explained and, thank you
You started your explanation from a very top-level, displayed code even before explaining what you wanted to achieve. smh
Awesome tutorial. Thank You so much for this video.
i need use controller and service used django framework api
really appreciate this video about multi threading and a real world example . Is there more about this topic that u have ?
Thanks Chetty!, unfortunately I haven’t released other content regarding this topic.
in my channel I present Django & Python educational videos
thank you very much
Wow that's cool
Very useful video
what if the function you want to schedule expects a request parameter
can you send us an requirement.txt because we are in version 4 and some packages makes conflict?
Please check the GitHub repository for the requirements file
Hi sir. I have a issue here. For me it is getting displayed as car_plan = null whereas in your case the corresponding id is rendered. How to solve this?
raise ImportError("allauth needs to be added to INSTALLED_APPS.") ImportError: allauth needs to be added to INSTALLED_APPS. i got this error how to solve it i am stucked here i searched in stackoverflow i didnt find anywhere
Excellent explanation. It helped me a lot with a project I'm currently working on.
manyToMany relation is symetrical. What if you also want to display the list of students in a modul record ?
You can add M-M field in its model
diesel will be 740d not 740i
Initially, the scheduler runs twice?
zombie thread?
Hi, I have a problem. It just doesn't work for me for whatever reason. The pagination doesn't show, and it's exactly the way it was before despite me adding pagination. I checked a few times and i copied it correctly from the there is no error. id don't understand why
Django-rest-auth has been deprecated. Any good alternatives?
Yes there is: use dj-rest-auth , its a newer fork of the project
Great tutorial tks. And if there are more than one car plan per car ? how can i setup the models ?
Great video!, is it the same as Celery?.
No it’s different.
@@codeenvironment and why you are choosing the threading, not the celery?
thanks bro its very helpfull for me
it's save my day
Can we apply AND logic in these rest filters? For example I want to filter based on two Params. Let's say I want to filter cars based on a condition that it has to start with text "Ford" and must have engine greater than 550 HP. basically, I would do ?a=Ford&engine>550HP. But it gives me OR results instead of AND. It gives me ford plus any brand car that has engine value more than 550. How can I make my query strictly follow AND logic and not OR is my main question. Hope I have put it correctly.
Yes you can use the AND logic. First from django.db.models import Q Then inside your filter use filter(Q(condition) & Q(condition))
thank you for this video, very useful
What should I do if I make any changes to my project? Rewrite the "deploy" command?
Yes exactly, you save the changes and deploy again.
Thank you) Please tell me if it works with the latest versions (Django 4.1+, Python 3.11+), and is it necessary to create a new virtual environment, and is it okay to use in Paycharm?
Currently AWS Elasticbeanstalk doesn’t support Python 4 , you need to choose Python 3.7 or 3.8, and whatever version of django that works for you. You do have to make sure your environment has the same version of Python and other libraries you wanna use for production to avoid errors and run problems
I have a question Sir, so when using the modelviewset; we are not required to write our own get, post, update and delete functions? Does it just work like magic?
Yes cause the built in methods of the ModelViewset will handle that however you can override these methods if you need more control and I demonstrated that in both #14, #15 videos on my channel, you can check them out.
@@codeenvironment Okay i am checking
well played sir well played
Thank you U saved me ☺
how to delete this car_plan relation object?
if I want to filter using car brand or car model but not both, how can I do it ?
Very convenient, thank you very much
Instead of a try: except: if "plan_name" in ...: is always better and faster.
Thanks Matthew
What we have to pass in the url path to retrieve data
thank so much for every thing , you have a nice method to explain DRF. can you do an example about Multiple User types with roles and permission like (admin, manager, editor ,publisher, reader)🙂
Thank you Mahfoud 🙂, I’m glad I could help. And I’ll definitely consider your request.
I need help
Hi. How to return only one latest added track.
Hi Lucas, you can use .last() or .latest() in your query to achieve that.
we can do this in much more simple way def create(self, request, *args, **kwargs): serializer = serializers.BrandSerializer(data=request.data) if serializer.is_valid(): serializer.save() return Response(serializer.data) Hope this helps. Thanks for tutorials