Home » Django

Django| How to create Landing Page (First Page)?

In this tutorial, we are going to learn how to create first landing page using Django framework?
Submitted by Pankaj Singh, on October 20, 2018

Step 1: Create a Sandbox, Activate it, and Install Django and Create Sample Project.

(i) Creating Sandbox

django create landing page step 1

(ii) Activating It

django create landing page step 2

(iii) Installing Django

django create landing page step 3

(iv) Creating Sample Project [landing1]

django create landing page step 4

django create landing page step 5

Step 2: Add a controller file(views.py) to manage views in admin app(landing1)

django create landing page step 6

Step 3: Add controller actions(functions) to views.py to manage requests.

django create landing page step 7

Step 4: Add new url to urls.py in admin app(landing1)

django create landing page step 8

django create landing page step 9

Step 5: Run the Server

django create landing page step 10

Step 6: Open Browser and type http://127.0.0.1:3400

django create landing page step 11







Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.