Important commands for Set up the Environment in VSCode
Running Celery in Two Terminals (WSL + VENV)
Terminal 1 – Celery Worker
celery: starts Celery-A app:celery_app:-
appis the Python file or package where your Flask app lives -
celery_appis the Celery instance inside that file
worker: starts the worker, which runs the background tasks-l INFO: sets log level to INFO so you can see what's happeningbeat: runs the scheduler that triggers tasks on a schedule (e.g., every hour, daily, etc.)celery_app.config_from_object(app.config["CELERY"])
In your Flask app, you probably have some Celery config like this:
app.config["CELERY"] is a dictionary of settings (like broker URL, result backend, etc.)Python – The core programming language used to build the backend logic of the application.
-
Flask – A lightweight web framework in Python used to create web routes, handle user requests, and manage the server-side of the application.
-
HTML – Used to structure the content of web pages, forming the base layout of the frontend.
-
Bootstrap – A frontend CSS framework used to style HTML components, make the layout responsive, and provide a clean user interface.
-
Flask-RESTful==0.3.9 – An extension for Flask that helps build RESTful APIs quickly and cleanly, making it easy to interact with external clients or services.
-
Flask-SQLAlchemy==3.0.2 – A Flask extension that integrates SQLAlchemy with Flask, allowing easy interaction with the SQLite database through Python objects.
-
Jinja2==3.1.2 – The templating engine used by Flask to inject dynamic content (like user data or campaign info) into HTML pages.
-
SQLAlchemy==1.4.45 – The Object Relational Mapper (ORM) used to define models and manage database operations using Python code instead of raw SQL.
-
Werkzeug==2.2.2 – A WSGI utility library used internally by Flask, and also helps in securely handling things like password hashing and file uploads.
No comments:
Post a Comment