Setting up a Django project
To create a new Django project, we need to use the django-admin command-line utility. We can create a new project using the following command:
django-admin startproject projectname
This will create a new directory called projectname which contains the basic structure of a Django project. We can run the project using the following command:
python manage.py runserver
This will start a development server on our local machine which we can use to test our application.
No comments:
Post a Comment