Home Python C Language C ++ HTML 5 CSS Javascript Java Kotlin SQL DJango Bootstrap React.js R C# PHP ASP.Net Numpy Dart Pandas Digital Marketing

Learn Django Create Project


Step 1: Create a New Django Project

With Django installed and the virtual environment activated, you can create a new Django project:

django-admin startproject myproject

This command creates a new Django project named "myproject" in the current directory. Here's what the startproject command does:



Step 2: Start the Django Development Server

To check if your Django project is set up correctly, navigate to the newly created project directory and start the Django development server:

cd myproject python manage.py runserver

This command starts a local web server, typically on http://127.0.0.1:8000/. You can open a web browser and visit that address to see if the Django server is running. If everything is set up correctly, you should see the default Django welcome page.




Advertisement





Q3 Schools : India


Online Complier

HTML 5

Python

java

C++

C

JavaScript

Website Development

HTML

CSS

JavaScript

Python

SQL

Campus Learning

C

C#

java