• Stars
    star
    1
  • Language
    Python
  • License
    MIT License
  • Created about 2 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Django was invented by Lawrence Journal-World in 2003, Initial release to the public was in July 2005. Latest version of Django is 4.0.3 (March 2022). This repository will help you, when you will get ready.

Django-Python-Starter-Kit-for-Beginner

Django was invented by Lawrence Journal-World in 2003, Initial release to the public was in July 2005. Latest version of Django is 4.0.3 (March 2022). This repository will help you, when you will get ready.

What is Django?

Django is a Python framework that makes it easier to create web sites using Python. Django takes care of the difficult stuff so that you can concentrate on building your web applications.

How does Django Work?

Django follows the MVT design pattern (Model View Template).

  • Model - The data you want to present, usually data from a database.
  • View - A request handler that returns the relevant template and content - based on the request from the user.
  • Template - A text file (like an HTML file) containing the layout of the web page, with logic on how to display the data.

Model

In Django, the data is delivered as an Object Relational Mapping (ORM). The most common way to extract data from a database is SQL. Django, with ORM, makes it easier to communicate with the database, without having to write complex SQL statements.

The models are usually located in a file called models.py.

View

A view is a function or method that takes http requests as arguments, imports the relevant model(s), and finds out what data to send to the template, and returns the final result.

The views are usually located in a file called views.py.

Template

Templates are often .html files, with HTML code describing the layout of a web page, but it can also be in other file formats to present other results, but we will concentrate on .html files. Django uses standard HTML to describe the layout, but uses Django tags to add logic:

<p>My name is {{ firstname }}.</p>

The templates of an application is located in a folder named templates.

URLs

Django also provides a way to navigate around the different pages in a website. When a user requests a URL, Django decides which view it will send it to.

This is done in a file called urls.py.

Django Requires Python

To check if your system has Python installed, run this command in the command prompt:

PS C:\Users\Jmrashed> python --version
PS C:\Users\Jmrashed> Python 3.10.6

If you find that you do not have Python installed on your computer, then you can download it for free from the following website: https://www.python.org

Django Requires PIP (package manager)

To install Django, you must use a package manager like PIP, which is included in Python from version 3.4.To check if your system has PIP installed, run this command in the command prompt:

PS C:\Users\Jmrashed> pip --version
pip 22.2.2 from C:\Users\Jmrashed\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)

If you do not have PIP installed, you can download and install it from this page: https://pypi.org/project/pip

Django Virtual Environment

It is suggested to have a dedicated virtual environment for each Django project, and one way to manage a virtual environment is venv, which is included in Python.

py -m venv myproject

This will set up a virtual environment, and create a folder named "myproject" with subfolders and files, like this:

myproject
  Include
  Lib
  Scripts
  pyvenv.cfg

Then you have to activate the environment, by typing this command: myproject\Scripts\activate.bat

Install Django

Finally, we can install Django. Django is installed using pip, with this command:

(myproject) C:\Users\Jmrashed> py -m pip install Django

Check Django Version

You can check if Django is installed by asking for its version number like this:

(myproject) C:\Users\Jmrashed>django-admin --version If Django is installed, you will get a result with the version number: 4.0.3

More Repositories

1

zkteco

ZKTeco Package For Laravel. This package provides seamless integration with ZKTeco devices within Laravel applications, enabling communication with attendance devices such as fingerprint, face recognition, or RFID using UDP protocol.https://packagist.org/packages/jmrashed/zkteco
PHP
10
star
2

adibaicon

adibaIcon -Custome Icon Library
CSS
3
star
3

blood-donation-web-application-with-real-time-location-sharing

HTML
2
star
4

go-starter-kit

The Go Starter Kit is a foundational project for building a portfolio website using Go, structured to promote clean code and scalability. It employs the Gin web framework for routing and Viper for configuration management.
HTML
2
star
5

ecommerce

The E-commerce Toolkit for Laravel is a modular package providing essential features for building e-commerce websites. This package includes functionalities for managing product catalogs, carts, checkout systems, payment gateway integrations, and order management.
PHP
2
star
6

two-factor-auth

Laravel 2FA Authentication Package
PHP
2
star
7

phpmyadmin

phpmyadmin
PHP
2
star
8

laravel-automation-package

laravel-automation-package
PHP
1
star
9

laravel-installer

A complete web installer for Laravel applications, making the setup process simple and user-friendly.
PHP
1
star
10

rashed-games-javacript

Rashed's Game using HTML, CSS, and JavaScript
JavaScript
1
star
11

developing-restful-apis-with-python-and-flask

Developing RESTful APIs with Python and Flask
Python
1
star
12

face-detection-using-opencv

Face Detection using OpenCV
Python
1
star
13

ResponsiveLoginForm

JavaScript
1
star
14

jmrashed

About Md Rasheduzzaman
HTML
1
star
15

Webcam-capture-using-Html5-getUserMedia

Webcam capture using Html5 getUserMedia
JavaScript
1
star
16

desktop-application-using-phpnative-for-zkteco

desktop-application-using-phpnative-for-zkteco
PHP
1
star
17

News-Flutter-UI-Kit

News Flutter UI Kit
Dart
1
star
18

dart-practice-problem-solutions

Welcome to the Dart Practice Problem Solutions repository! This is a dedicated space for daily practice to learn Dart deeply. Our goal is to solve at least one problem each day for 100 days, continuously improving our Dart skills.
Dart
1
star
19

login-ui-react-native-app

This is a React Native application for implementing a login and signup UI/UX.
JavaScript
1
star
20

geolocation

The geolocation package will provide user location
PHP
1
star
21

Email-List-Cleaning-Tool-Using-PHP

Email List Cleaning Tool Using PHP
PHP
1
star
22

hospital-management-system

The Hospital Management System is a comprehensive software solution designed to facilitate efficient management and operations within a hospital or healthcare facility.
PHP
1
star
23

google-maps-polyline-draw

Draw polyline on google map using latitude and longitude coordinates
JavaScript
1
star
24

university-management-system-php

The University Management System is a web-based application developed using PHP. It provides a comprehensive solution for managing various aspects of a university, including student management, course management, faculty management, and administrative tasks.
PHP
1
star
25

Install-Redis-on-Windows

Install Redis on Windows
1
star
26

break-weakness-with-angular

break-weakness-with-angular
HTML
1
star
27

express-openapi-generator

express-openapi-generator
EJS
1
star