From 04226615849b7ff64979bf35e50a178cddf8bcb7 Mon Sep 17 00:00:00 2001 From: shrivatsahosabettu Date: Tue, 6 Feb 2018 14:45:44 +0530 Subject: [PATCH] django-admin Added the django-admin commands --- backend/django.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/backend/django.py b/backend/django.py index 3676b5c..464a1a1 100644 --- a/backend/django.py +++ b/backend/django.py @@ -36,3 +36,20 @@ # Use underscores in URL pattern names rather than dashes. + + +# ***************************************************************************** +# Django to begin django-admin +# ***************************************************************************** +# Note: When working with single Django Project its easy to use manage.py instead of django-admin +# These two options can be intechangeble +django-admin startproject # To create Project Directory structure + # https://docs.djangoproject.com/en/2.0/ref/django-admin/#startproject +django-admin startapp # To create Django Application Name + # https://docs.djangoproject.com/en/2.0/ref/django-admin/#startapp +django-admin migrate # To Synchronize the database state with your current state project models and migrations + # https://docs.djangoproject.com/en/2.0/ref/django-admin/#migrate +django-admin makemigrations # To create new migrations to the database based on the changes detected in the models + # https://docs.djangoproject.com/en/2.0/ref/django-admin/#makemigrations +django-admin runserver # To start the development webserver at 127.0.0.1 with the port 8000 + # https://docs.djangoproject.com/en/2.0/ref/django-admin/#runserver