Articles → DJANGO → Create An Empty Django Project

Create An Empty Django Project






Steps




  1. Open command prompt.
  2. Go to the folder where you want to create a project using cd command.
  3. Write the following command


<path>\django-admin.exe startproject myFirstSite




Picture showing the folder structure of the first django project
Click to Enlarge


Files




  1. myFirstSite – Root folder.
  2. manage.py - A command-line utility that lets you interact with this Django project
  3. Inner myFirstSite – This directory contains actual python package.
  4. myFirstSite/__init__.py - An empty file that tells Python that this directory should be considered a Python package.
  5. myFirstSite/settings.py- Settings/configuration for this Django project.
  6. myFirstSite/urls.py- The URL declarations for this Django project
  7. myFirstSite/wsgi.py- An entry-point for WSGI-compatible web servers to serve your project



Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, May 28, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250