Giter VIP home page Giter VIP logo

course4_proj's Introduction

course4_proj

OMDB project in Course 4 of Advanced Django specialization

A repository containing all the assignments completed from

Advanced Django: Mastering Django and Django Rest Framework Specialization:
https://www.coursera.org/specializations/codio-advanced-django-and-django-rest-framework
4. Advanced Django: External APIs and Task Queuing
https://www.coursera.org/learn/codio-advanced-django-external-apis-task-queuing?specialization=codio-advanced-django-and-django-rest-framework


WHAT YOU NEED TO RUN THE PROJECT

The Open Movie Database is a free REST web service that can be queried to get information about movies. You’ll need an API key. One can be obtained free from https://www.omdbapi.com/apikey.aspx.

You will have to set an environment variable as follows (in the command line):
export DJANGO_OMDB_KEY=your_omdb_api_key
OR prepend it to the command like so:
DJANGO_OMDB_KEY=your_omdb_api_key python manage.py ...

Custom django commands to run queries:

Populate movie data in our local database

  • python manage.py movie_search movie_titel_here

Updating movie details

  • python manage.py movie_fill tt1853728
  • python manage.py movie_fill movie_id_omdb

You will also need a GitHub access token, which can be obtained here:
https://github.com/settings/tokens/new

Starting celery worker:
celery -A course4_proj worker -l DEBUG

Starting Celery beat tasks that have been scheduled by calling the add_periodic_task():
celery -A course4_proj beat -l INFO

Starting Celery beat to read the schedule from the Django database (or a different schedule store):
celery -A course4_proj beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler


ABOUT

The site is a platform where users can discuss movies. It focuses on designing models based on OMDb data. Users can comment on or read about movies. When searching for a movie, the site prioritizes its local database, only querying OMDb if necessary. Basic movie data is stored locally, and detailed data is fetched as needed. If a movie's details change, it's updated in real-time. Here's how it works: users search for a movie, the site checks its database, fetches from OMDb if needed, and displays results. If more detail is needed, it fetches it from the API.


What you'll learn (4. Advanced Django: External APIs and Task Queuing) :

  • Connecting to external APIs
  • Implement task queuing (Schedule tasks with Celery and Redis)
  • Leverage various Django skills to create portfolio-quality projects
  • Get and parse content from an API with the Requests library
  • Use the OMDb API to fetch information about movies
  • Generate a GitHub access token and integrate it with Django to query GitHub
  • Implementig Celery - task queue, register celery task for asynchronous tasks
  • Signals, asynchronous signals, custom signals
  • Create a periodic task with Celery
  • Celery Beat - Schedule tasks that run on an interval or on a specified date/time

The modules in this course cover connecting to external APIs, task queuing, and pulling together the topics across the specialization in capstone projects.

--

Skills:

  • Django (Web Framework)
  • Python Programming

course4_proj's People

Contributors

artursniegowski avatar pfe1223 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.