Skip to content

Commit

Permalink
installed celery
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmalshahabudeen committed May 4, 2023
1 parent 04787a0 commit ad1d196
Show file tree
Hide file tree
Showing 65 changed files with 154 additions and 2 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ sqlparse = "==0.4.4"
tzdata = "==2023.3"
uritemplate = "==4.1.1"
urllib3 = "==1.26.15"
celery = "*"

[dev-packages]
autopep8 = "*"
Expand Down
86 changes: 85 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added core/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added core/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added core/signals/__pycache__/handlers.cpython-310.pyc
Binary file not shown.
Binary file added likes/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added likes/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added likes/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added likes/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added playground/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added playground/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added playground/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added playground/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added playground/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added playground/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added store/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added store/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added store/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added store/__pycache__/filters.cpython-310.pyc
Binary file not shown.
Binary file added store/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added store/__pycache__/pagination.cpython-310.pyc
Binary file not shown.
Binary file added store/__pycache__/permissions.cpython-310.pyc
Binary file not shown.
Binary file added store/__pycache__/serializers.cpython-310.pyc
Binary file not shown.
Binary file added store/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added store/__pycache__/validators.cpython-310.pyc
Binary file not shown.
Binary file added store/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added store/signals/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added store/signals/__pycache__/handlers.cpython-310.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions storefront/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .celery import celery
Binary file added storefront/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added storefront/__pycache__/celery.cpython-310.pyc
Binary file not shown.
Binary file added storefront/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added storefront/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added storefront/__pycache__/wsgi.cpython-310.pyc
Binary file not shown.
11 changes: 11 additions & 0 deletions storefront/celery.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'storefront.settings')
# we are setting the environmetal variable(DJANGO_SETTINGS_MODULE) to this settings (storefront.settings)

celery = Celery('storefront')
celery.config_from_object('django.conf:settings', namespace='CELERY')
# new sttings added to connect to redis
celery.autodiscover_tasks()
# tasks in task folder, by calling this will run the tasks
4 changes: 3 additions & 1 deletion storefront/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,6 @@

ADMINS = [
('adminguy', 'admin@adminguymail.com')
]
]

CELERY_BROKER_URL = 'redis://localhost:6379/1'
Binary file added tags/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added tags/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added tags/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added tags/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added tags/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
53 changes: 53 additions & 0 deletions wsl_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
amqp==5.1.1
asgiref==3.6.0
async-timeout==4.0.2
autopep8==2.0.2
billiard==3.6.4.0
celery==5.2.7
certifi==2022.12.7
cffi==1.15.1
charset-normalizer==3.1.0
click==8.1.3
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
coreapi==2.3.3
coreschema==0.0.4
cryptography==40.0.2
defusedxml==0.7.1
Django==4.2
django-cors-headers==3.14.0
django-debug-toolbar==4.0.0
django-filter==23.2
django-templated-mail==1.1.1
djangorestframework==3.14.0
djangorestframework-simplejwt==5.2.2
djoser==2.2.0
drf-nested-routers==0.93.4
idna==3.4
itypes==1.2.0
Jinja2==3.1.2
kombu==5.2.4
MarkupSafe==2.1.2
mysqlclient==2.1.1
oauthlib==3.2.2
Pillow==9.5.0
prompt-toolkit==3.0.38
pycodestyle==2.10.0
pycparser==2.21
PyJWT==2.6.0
python3-openid==3.2.0
pytz==2023.3
redis==4.5.4
requests==2.29.0
requests-oauthlib==1.3.1
six==1.16.0
social-auth-app-django==5.2.0
social-auth-core==4.4.2
sqlparse==0.4.4
tomli==2.0.1
tzdata==2023.3
uritemplate==4.1.1
urllib3==1.26.15
vine==5.0.0
wcwidth==0.2.6

0 comments on commit ad1d196

Please sign in to comment.