Open source softwares - Django

Back to Course

Lesson Description

Lession - #972 Django-Create Project

My First Project

Whenever you have come up with a reasonable name for your Django project, similar to mine: myworld, explore to where in the file system you need to store the code (in the virtual climate>
, and run this command in the command prompt:

django-admin startproject myworld
Django makes a myworld folder on my PC, with this content:

Run the Django Project

Since you have a Django project, you can run it, and see what it resembles in a browser.

Explore to the/myworld folder and execute this command in the command prompt:
py manage.py 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 manage.py migrate' to apply them. December 02, 2021 - 13:14:51 Django version 3.2.9, using settings 'myworld.settings' Starting development server at Quit the server with CTRL-BREAK.