CCYI GLOBAL ACADEMY
Shop beginner-friendly tech courses, practical training tutorials, data tools, web development content, automation, and digital skills courses from Palace Tech Hub.
Shop beginner-friendly tech courses, practical training tutorials, data tools, web development content, automation, and digital skills courses from Palace Tech Hub.
Pay by Bank Transfer
Bank Name: UNITED BANK FOR AFRICA
Account Name: CCYI GLOBAL ENTERPRISE
Account Number: 1017417XXX
After payment, click “Confirm Payment on WhatsApp” below and send your proof of payment.
Total: ₦0
Django is a high-level Python web framework used to build websites and web applications quickly.
👉 In simple terms:
Django = a tool that helps you build powerful websites using Python
Django is:
With Django, you can build:
Django follows a structure called MVT (Model, View, Template)
First install Python, then:
pip install django
Check version:
django-admin --version
django-admin startproject myproject
cd myproject
python manage.py runserver
👉 Open browser:http://127.0.0.1:8000
manage.py → controls the projectsettings.py → project settingsurls.py → links pagesviews.py → logicmodels.py → databasepython manage.py startapp myapp
👉 Django projects are made of apps
from django.http import HttpResponse
def home(request):
return HttpResponse("Hello, Django!")
from django.urls import path
from . import views
urlpatterns = [
path('', views.home),
]
👉 This connects URL to your function.
<h1>Welcome to My Site</h1>
<p>This is a Django page.</p>
👉 Django uses HTML for frontend.
One of Django’s strongest features:
python manage.py createsuperuser
👉 You get a ready-made admin dashboard to:
| Technology | Role |
|---|---|
| HTML | Structure |
| CSS | Design |
| JavaScript | Interaction |
| Python | Logic |
| Django | Full web framework |
Students can use Django to:
Students can make money by:
👉 Django helps you:
👉 “If Python is the engine, Django is the vehicle that drives your web ideas into real-world applications.”
Flask is a Python web framework used to build websites and web applications.
👉 In simple terms:
Flask = a tool that helps you create websites using Python
Flask is:
A web framework is a tool that:
👉 Without Flask, building a web app from scratch is difficult.
👉 Flow:
Download from: python.org
Open terminal and run:
pip install flask
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
return "Hello, Flask!"
if __name__ == '__main__':
app.run(debug=True)
👉 Run this and open:
http://127.0.0.1:5000
Flask(__name__) → Creates the app@app.route('/') → Defines the homepagedef home() → Function for the pagereturn → What is shown in browser@app.route('/about')
def about():
return "This is the about page"
👉 Visit:
/ → Home/about → About pageFlask uses HTML files to display pages.
project/
│
├── app.py
└── templates/
└── index.html
<h1>Welcome to my website</h1>
from flask import render_template
@app.route('/')
def home():
return render_template('index.html')
@app.route('/user/<name>')
def user(name):
return f"Hello {name}"
👉 Visit:/user/Daniel → Output: Hello Daniel
from flask import request
@app.route('/submit', methods=['POST'])
def submit():
name = request.form['name']
return f"Hello {name}"
| Feature | Flask | Django |
|---|---|---|
| Complexity | Simple | More complex |
| Flexibility | High | Structured |
| Best for | Beginners, small apps | Large applications |
Students can use Flask to:
👉 Build:
👉 Full stack view:
👉 Flask helps you:
👉 “Flask is the bridge that connects Python to the web.”
Hobby (Free) Plan You can have up to 200 projects (websites/apps) under one account. Each project can have its own: Production deploy...