![]() Add project dependencies using SemVer notation.Run poetry init to setup pyproject.toml.Generate model visualizations with graphviz.Show how to setup e2e tests with Cypress.Setup Vue in NGINX (web-sockets for hot reloading, index.html, etc).Setup Django Channels (settings, routers, consumers, async tests).Add NGINX Dockerfile for local development.Add Vue as standalone SPA (show how API calls will not work without CORS).Add a GraphQL endpoint to backend/urls.py.Add a schema.py to the backend/backend directory.Add schema.py in the blog app directory.TODO: replace Exceptions with GraphqlExceptions.Create a directory for the OpenAPI Schema.Add dependencies for OpenAPI to base.txt.Add the following file to the top-level templates directory.Add OpenAPI/SwaggerUI URL path in backend/urls.py.Add REST Framework URLs under the if settings.DEBUG block in backend/urls.py. ![]() Add restframework to INSTALLED_APPS in base settings module.Add Django REST Framework to base.txt dependencies.Refactor QuerySet and Manager for Post model.Add a DeletePostView for deleting posts.Add a PostCreateView for creating posts using CBV.Add a template for the PostDetailView in blog/post_detail in the blog app templates directory.Add CBV DetailView for viewing a single post.Add a urlpatterns with a path that uses the PostList CBV.Add a generic ListView to the class_based_views file.Create a file in the blog app called class_based_views.py.Add bitbucket-pipelines.yml for BitBucket pipelines.github/workflows/lint.yml for GitHub Action that lints Python code Add prefetch_related("created_by") to post list query to reduce DB queries.Run makemigrations and migrate for PostLike.Implement through Model for ManyToMany field for Post likes.Setup a view to handle the like-post endpoint that returns a JsonResponse.Setup an endpoint that will handle our axios call.Add a method to the PostLike component that will make an API call using axios.Add Vue component definition and template.Create a template called post_likes.html.Add an example of how to setup a Vue component in Django template.Set LOGIN_REDIRECT_URL and LOGIN_REDIRECT_URL in base settings module.Create the login view in apps/accounts/views.Create urls.py in the accounts app with a login path.Use Django messaging framework to update user on post creation success.Add wildcard to ALLOWED_HOSTS in development settings module.Change the ordering of posts in the Post model.Set up head for Post detail page for SEO.Link to detail views from the list view.Create a template called post.html in templates.Write a management command that generates fake data.Add a new folder in the backend directory called templates and add base.html.Create a templates directory in the blog app and add posts.html.Create a simple function-based view for viewing all posts.Include the URLs you just created in the main URLs file.Create a URL pattern that will list all of the blog posts.Setup a factory.py file in the blog app with a PostFactory.Add model factories for micro blog post.Register the Post model to the Django admin.Create a new Django app for our microblogging demo application.Build a Model that we can use to demonstrate CRUD and other concepts.Setup mailhog for testing email locally.Setup celery beat, settings, periodics tasks.Decide if you need CELERY_TASKS_ALWAYS_EAGER to be set to True.Run the celery command to start a worker.Install celery in backend/backend/_init_.py.Add a middleware to handle RequestLog creation.Add redis to docker-compose file for celery broker.Add a Dockerfile for our Django application.Improve the readability of the command by using docker-compose.Another approach to running postgres on our machine and an introduction to docker: run postgres in a docker container.Configure our Django application to use our local postgres service. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |