0% found this document useful (0 votes)
3 views6 pages

Django Create Project

Django projects

Uploaded by

tester
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views6 pages

Django Create Project

Django projects

Uploaded by

tester
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

7/5/26, 9:02 PM Django Create Project

 Tutorials  References  Exercises  Get Certified Sign In

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP [Link] C C++ C#

Django Create Project


❮ Previous Next ❯

My First Project
Once you have come up with a suitable name for your Django project, like mine:
my_tennis_club , navigate to where in the file system you want to store the code (in the
virtual environment), I will navigate to the myworld folder, and run this command in the
command prompt:

django-admin startproject my_tennis_club

Django creates a my_tennis_club folder on my computer, with this content:

my_tennis_club
[Link]
my_tennis_club/
__init__.py
[Link]
[Link]
[Link]
[Link]

These are all files and folders with a specific meaning, you will learn about some of them later
in this tutorial, but for now, it is more important to know that this is the location of your project,
and that you can start building applications in it.

[Link] 1/6
7/5/26, 9:02 PM Django Create Project

 Tutorials  References 
Run the Django Project
Exercises  Get Certified Sign In

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP [Link] C C++ C#
Now that you have a Django project, you can run it, and see what it looks like in a browser.

Navigate to the /my_tennis_club folder and execute this command in the command
prompt:

python [Link] runserver

Which will produce this result:

Watching for file changes with StatReloader


Performing system checks...

System check identified no issues (0 silenced).

You have 18 unapplied migration(s). Your project may not work properly
until you apply the migrations for app(s): admin, auth, contenttypes,
sessions.
Run 'python [Link] migrate' to apply them.
March 19, 2025 - 14:19:38
Django version 5.1.7, using settings 'my_tennis_club.settings'
Starting development server at [Link]
Quit the server with CTRL-BREAK.

Open a new browser window and type [Link]:8000 in the address bar.

The result:

[Link] 2/6
7/5/26, 9:02 PM Django Create Project

 Tutorials  References  Exercises  Get Certified Sign In

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP [Link] C C++ C#

REMOVE ADS

What's Next?
We have a Django project!

The next step is to make an app in your project.

You cannot have a web page created with Django without an app.

?
Exercise
What is a correct syntax for running a Django project?
[Link] 3/6
7/5/26, 9:02 PM Django Create Project

 Tutorials  References 
python [Link] startserver
Exercises  Get Certified Sign In

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP [Link] C C++ C#
python [Link] runserver

python [Link] start

Submit Answer »

❮ Previous Sign in to track progress Next ❯

 
REMOVE ADS

[Link] 4/6
7/5/26, 9:02 PM Django Create Project

 Tutorials  References  Exercises  Get Certified Sign In

HTML
 CSS
 JAVASCRIPT
PLUS
SQL PYTHON
SPACES
JAVA PHP [Link] C C++ C#

GET CERTIFIED FOR TEACHERS

BOOTCAMPS CONTACT US

Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
[Link] Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial

Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
[Link] Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
AngularJS Reference
jQuery Reference

Top Examples Get Certified


HTML Examples HTML Certificate
CSS Examples CSS Certificate
JavaScript Examples JavaScript Certificate
How To Examples Front End Certificate
SQL Examples SQL Certificate
Python Examples Python Certificate
[Link] Examples PHP Certificate
Bootstrap Examples jQuery Certificate
PHP Examples Java Certificate
Java Examples C++ Certificate

[Link] 5/6
7/5/26, 9:02 PM Django Create Project
XML Examples C# Certificate

 Tutorials  jQuery Examples


References  Exercises  XML Certificate
Get Certified Sign In

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP [Link] C C++ C#

    

FORUM ABOUT ACADEMY


W3Schools is optimized for learning and training. Examples might be simplified to improve reading and
learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full
correctness
of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and
privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by [Link].

[Link] 6/6

You might also like