Skip to main content

Posts

Showing posts from January, 2019
Making a simple blog in Django So we will be starting making a simple blog in django but before this you have to read basic documentation of django(2.1). And i am using python3.5.2 , django2.1, Ubuntu 16.04. First go to https://docs.djangoproject.com/en/2.1/intro/   and create their app. If you haven't created that app please don't proceed further. We will be going to make change in their app only to create a blog app. Follow these below steps to create a simple blog. Basic Setup Create a new django project by typing django-admin startproject myblog Go into that folder and create an app by typing python3 manage.py startapp blog   Type python3 manage.py runserver and see if django is working fine. If you're good to go proceed to next step. Copy all the code you wrote while making polls app to their respective folders and files. Now start making changes First go to myblog/myblog/settings.py and change polls.apps.PollsConfig   to blog.apps.B...