Creating a Django project sets up the basic structure to build a web application. It prepares folders and files so you can start adding your website features.
Creating a Django project
django-admin startproject projectname
Replace projectname with your desired project name.
This command creates a folder with the project name containing necessary files.
mysite.django-admin startproject mysite
blogapp for a blog website.django-admin startproject blogapp
This command creates a new Django project named testproject. It will generate a folder testproject with files like manage.py and a subfolder testproject containing settings and URLs.
django-admin startproject testproject
Run this command in the folder where you want your project folder to be created.
Make sure you have Django installed before running this command.
After creating the project, you can run python manage.py runserver inside the project folder to start the web server.
Use django-admin startproject projectname to create a new Django project.
This sets up the basic folder and files needed to build your website.
Run the command in your terminal where you want the project folder created.