DEV Community

Dr. Azad Rasul
Dr. Azad Rasul

Posted on

2- Django: Creating a project

From the command line, cd into a directory where you’d like to store your code, for example, "Desktop"

cd desktop
Enter fullscreen mode Exit fullscreen mode

Then run the following command to create a project named "PollProject":

django-admin startproject PollProject
Enter fullscreen mode Exit fullscreen mode

Change directory to created project:

cd PollProject
Enter fullscreen mode Exit fullscreen mode

To verify your Django project works, we run the following commands:

py manage.py runserver
Enter fullscreen mode Exit fullscreen mode

Then, visit "http://127.0.0.1:8000/" with your web browser.
If it work well, you’ll see a “Congratulations!” page:

Image description

Top comments (0)