![]() |
creating a blog, models.py is empty - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: creating a blog, models.py is empty (/thread-6226.html) |
creating a blog, models.py is empty - rickadams - Nov-11-2017 I'm creating a blog based on Antonio Mele course Packhub course - create a python blog. Wondering why ![]() What command do I use to genereate the correct models.py to continue the lessons ![]() ![]() RE: creating a blog, models.py is empty - sparkz_alot - Nov-11-2017 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. RE: creating a blog, models.py is empty - rickadams - Nov-11-2017 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 blogC:\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. RE: creating a blog, models.py is empty - snippsat - Nov-11-2017 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. |