BCS Create Django Application


Return to the project location in terminal and issue the following command.
[codesyntax lang=”python”]

django-admin startapp blog

[/codesyntax]
In the terminal application change directories to current application sub directory.
Modify models.py to define the tables in question.
All the associated field descriptions can be reviewed by clicking here.
After the tables have been defined use the following command to make migrations.
b[codesyntax lang=”bash”]

python3 manage.py makemigrations blog

[/codesyntax]
The following depicts the output from the command.

We should apply all migrations to the database by issuing the following command.  Return to the project root and issue the following command.
[codesyntax lang=”bash”]

python3 manage.py migrate

[/codesyntax]
The result of the following command is as follows.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Leave a Reply

Your email address will not be published. Required fields are marked *