Posts

How to add FREE SSL certificate on your AWS Lightsail instance

Image
 Step 1: Open terminal on your instance   Step 2:  After opening terminal follow this below steps: sudo /opt/bitnami/bncert-tool Domain list []: game.example.com The following domains were not included:  www.game.example.com . Do you want to add them? [Y/n]: n Enable HTTP to HTTPS redirection [Y/n]: y Confirm the final changes Changes to perform The following changes will be performed to your Bitnami installation: 1. Stop web server 2. Configure web server to use a free Let's Encrypt certificate for the domains: game.example.com 3. Configure a cron job to automatically renew the certificate each month 4. Configure web server name to: game.example.com 5. Enable HTTP to HTTPS redirection (example: redirect http://game.example.com to https://game.example.com) 6. Start web server once all changes have been performed              Do you agree to these changes? [Y/n]: Y         6. Create a free HTTPS certifi...

Student Registration System Php-MongoDB Project

Image
Technologies Used : Frontend:  Html, CSS, JS, Bootstrap Backend : Php, MongoDB Database Software Requirement :  Xampp, MongoDB   Installation Guide Steps: 1) Download Xampp Web Server Version 7.4.16 from this link :>  https://www.apachefriends.org/download.html 2)Download MongoDB Community Version from this link :>  https://www.mongodb.com/try/download/community 3)After Downloading this two software install this software 4)After installing download    "php_ mongodb.dll "  file from this link :>  https://bit.ly/3g3G91w  and paste the downloaded  file in  " C:xampp/php/ext/ folder " 5)after pasting the file go to in "  C:\xampp\php  " folder and open "  php.ini file "  and search the name "  extension=mysqli "  and add this line  " extension=php_ mongodb.dll  "  after " extension=mysqli "    and save that file and restart your xampp server 6)after restarting server c...

Police Verification System Php-Mongodb Project

Image
  Technologies Used : Frontend:  Html, CSS, JS, Bootstrap Backend : Php, MongoDB Database Software Requirement :  Xampp, MongoDB   Installation Guide Steps: 1) Download Xampp Web Server Version 7.4.16 from this link :>  https://www.apachefriends.org/download.html 2)Download MongoDB Community Version from this link :>  https://www.mongodb.com/try/download/community 3)After Downloading this two software install xampp & mongodb software in your system 4)After installing download    "php_ mongodb.dll "  file from this link :>  https://bit.ly/3g3G91w  and paste the downloaded  file in  " C:xampp/php/ext/ folder " 5)after pasting the file go to in "  C:\xampp\php  " folder and open "  php.ini file "  and search the name "  extension=mysqli "  and add this line  " extension=php_ mongodb.dll  "  after " extension=mysqli "    and save that file and restart your xam...

Todo List App Php-Mongodb Project

Image
  Technologies Used : Frontend:  Html, CSS, JS, Bootstrap Backend : Php, MongoDB Database Software Requirement :  Xampp, MongoDB   Installation Guide Steps: 1) Download Xampp Web Server Version 7.4.16 from this link :>  https://www.apachefriends.org/download.html 2)Download MongoDB Community Version from this link :>  https://www.mongodb.com/try/download/community 3)After Downloading this two software install xampp & mongodb software in your system 4)After installing download    "php_ mongodb.dll "  file from this link :>  https://bit.ly/3g3G91w  and paste the downloaded  file in  " C:xampp/php/ext/ folder " 5)after pasting the file go to in "  C:\xampp\php  " folder and open "  php.ini file "  and search the name "  extension=mysqli "  and add this line  " extension=php_ mongodb.dll  "  after " extension=mysqli "    and save that file and restart your xam...

Covid19 Php-MongoDB Project

Image
Technologies Used : Frontend: Html, CSS, JS, Bootstrap Backend : Php, MongoDB Database Software Requirement : Xampp, MongoDB   Installation Guide Steps: 1) Download Xampp Web Server Version 7.4.16 from this link :>  https://www.apachefriends.org/download.html 2)Download MongoDB Community Version from this link :>  https://www.mongodb.com/try/download/community 3)After Downloading this two software install this software 4)After installing download    "php_ mongodb.dll "  file from this link :>  https://bit.ly/3g3G91w  and paste the downloaded  file in " C:xampp/php/ext/ folder " 5)after pasting the file go to in "  C:\xampp\php  " folder and open "  php.ini file "  and search the name " extension=mysqli " and add this line  " extension=php_ mongodb.dll  "  after " extension=mysqli "    and save that file and restart your xampp server 6)after restarting server copy unzip covid19 project ...

Aggregate Function In Django ✅

 aggregate() - It is a terminal clause for a queryset that, when invoked, return dictionary name-value pair. Required Module: django.db.models import Avg, Min, Max, Sum, Count Open views.py file and write this code e.g. def home(request):               stud_data=Student.objects.all();                average=stud_data.aggregate(average('marks'))               total=stud_data.aggregate(Sum('marks'))               minimum=stud_data.aggregate(Min('marks'))             maximum=stud_data.aggregate(Max('marks'))             totalCount=stud_data.aggregate(Count('marks'))  context { 'students':stud_data,'average':average,'total':total,'minimum':minimum,'maximum':maximum,'totalCount':totalCount }

QuerySet API Methods that do not return new QuerySets in Django ✅

data= User.objects.all() <Queryset [<User: sandy sandy@gmail.com 123456789>, <User: rakesh rakesh@gmail.com 8888888888>, <User: Prasad prasad@gmail.com 7478747874>]> get() - It returns one single object. If there is no result match it will raise DoesNotExist exception. If more than one item matches the get() query. It will raise MultipleObjects exception. Example - Student.objects.get(pk=1) Here pk is the primary key first() - It returns the first object(row) matched by queryset. or None if there is no matching object. If the queryset has no ordering defined, then query set automatically  order by the primary key. Example - Student.objects.first() last() -  It returns the last object(row) matched by queryset. or None if there is no matching object. If the queryset has no ordering defined, then query set automatically  order by the primary key. Example - Student.objects.last() latest() - It returns the latest object in table based on the giv...