Install required software and validation
Conditional Expressions or Decision making statements
Virtual env, pip freeze, Lambda function, join method, format method and map, filter, reduce
🔗Introduction & Install django and PyCharm CE
🔗create your first project and runservers and urls and views
🔗homepage - fetch form textarea value from template to views
🔗webpage to have personal navigations
🔗webpage to input text and remove punctuation from it.
🔗adding Bootstrap to django website
🔗POST request and CSRF tokens
🔗Creating E-commerce website with apps setups
Here, We will be creating a django E-commerce project named "myEcommerceSite" with 2 apps named "shop" and "blog" within it.
Django Apps :
Follow the below steps:
Step 1: Click on File and then select New Project.
Step 2: After clicking on New Project, a pop-up window will appear. Select the location(PycharmProjects folder recommended) and name the file as myEcommerceSite
Step3: Start the project
C:\Users\Srinanda\Desktop\python\djangoCodeSource\myEcommerceSite>django-admin startproject mes
Step 4: Run the command in following format to create the app.
python manage.py startapp name_of_the_app
C:\Users\Srinanda\Desktop\python\djangoCodeSource\myEcommerceSite\mes>python manage.py startapp blog
C:\Users\Srinanda\Desktop\python\djangoCodeSource\myEcommerceSite\mes>python manage.py startapp shop
from django.urls import pathfrom . import viewsurlpatterns = [path('', views.index, name="ShopHome"),]
from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name="blogHome"),
]
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("index shop")
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("index blog")
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
path('shop/', include('shop.urls')),
path('blog/', include('blog.urls'))
]
Please find the following links for OIC hands on and relevant information:
Working... Introduction to Excel’s Database Functions Excel's Database Functions work with data ranges treated like a database table ...