Should you run into a missing distutils error altho it is installed simply run the command below
sudo apt-get install python3.8-distutils
#Otherwise install the various dependencies with pip as shown below
pip install mysqlclient
Create the specific models and setting up the admin site for the blog //I changed something
- Share the stories to other users
- Allow Commenting on the stories
- Add a story tag functionality
- Use the tags to create a recommendation system
- Create a post feed
- Add a search feature
A Django Application is often used to interact with the framework and provide specific functionalities.
An Example is a Website with multiple Functionalities such as :
- A Blog
- Wiki
- Forum
It can also be used by other projects
´´´shell python manage.py sqlmigrate blog_app 0001 ´´´
NB: Open the Default Shell For Our Django Applications
python manage.py shell
>>> from django.contrib.auth.models import User
>>> from blog_app.models import Post
>>> user = User.objects.get(username='phx')
>>> post = Post('title'='Post from the Terminal', slug='terminal-post', body='hello from term')
>>> post.save()
-
Template Tags control the rendering of the template -> {% tag %}
-
Template Variables get replaced with values when the template is rendered -> {{ variable }}
-
Template filters allow you to modify variables for display -> {{ variable|filter }}