Posts

Django StartGuide

Image
Django Kick-start Content 1. Start your project. 2. Create your first view 3. Use templates 1. Start your project. Django is used to create a light weight webapps, to create a REST APIs and expose them using the HTTP ports Use the below git repo to kickstart your project git clone https://github.com/LinkedInLearning/django-esst-2894047.git checkout the branch 01-01b git checkout 01-01b git pull   Note - Assuming your local .git.config file is set up in your local system   #1 command to create a project with name "smartnotes" django-admin startproject smartnotes .   This above command will create two files manage.py and a directory with project name in the root dir.   #2 To create a server, use the below command from the root directory  python3 manage.py  runserver Note - Ignore the warnings as of now and checkout the url "http://127.0.0.1:8000/" a sever is running on localhost and port 8000   Congrats !  you have create a django sever in your local machine Later we