Python Forum

Full Version: creating a blog, models.py is empty
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm creating a blog based on Antonio Mele course Packhub course - create a python blog. Wondering why Huh the models.py file is empty instead off Mele version ?
What command do I use to genereate the correct models.py to continue the lessons Smile

[Image: Vej3lm.jpg]
Please do not post images, rather post your code, output and errors in their entirety between their respective tags. Refer to the BBCode section of the Help Doc.

Also specify what OS you are using and what version of Python.
Here is the request info:
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32

i start with to generate the startfiles to build a blog
python manage.py startapp blog
C:\Windows\System32\mysite\blog>ls
__init__.py admin.py migrations models.py tests.py views.py

opening file models.py
from django.db import models is 

# Create your models here.
It should be empty,you have to fill in database setup for the blog in models.py.
They course do of course have a part for what should be in models.py.