Skip to content

Commit

Permalink
fix(deps): Pillow not found
Browse files Browse the repository at this point in the history
  • Loading branch information
50-Course committed May 28, 2024
1 parent f41f7ae commit 5202e20
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions backend/paycheck_core/requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ djangorestframework-simplejwt>=5.3.1
httpx==0.27.0
django-extensions>=3.2.0
django-phone-field>=1.8.1
Pillow==10.3.0
24 changes: 13 additions & 11 deletions backend/paycheck_core/requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=backend/paycheck/requirements/base.txt backend/paycheck/requirements/base.in
# pip-compile --output-file=backend/paycheck_core/requirements/base.txt backend/paycheck_core/requirements/base.in
#
anyio==4.3.0
anyio==4.4.0
# via httpx
asgiref==3.8.1
# via
Expand All @@ -20,36 +20,36 @@ certifi==2024.2.2
# httpx
django==5.0.6
# via
# -r backend/paycheck/requirements/base.in
# -r backend/paycheck_core/requirements/base.in
# django-cors-headers
# django-extensions
# django-phone-field
# djangorestframework
# djangorestframework-simplejwt
# drf-spectacular
django-cors-headers==4.3.1
# via -r backend/paycheck/requirements/base.in
# via -r backend/paycheck_core/requirements/base.in
django-extensions==3.2.3
# via -r backend/paycheck/requirements/base.in
# via -r backend/paycheck_core/requirements/base.in
django-phone-field==1.8.1
# via -r backend/paycheck/requirements/base.in
# via -r backend/paycheck_core/requirements/base.in
djangorestframework==3.15.1
# via
# -r backend/paycheck/requirements/base.in
# -r backend/paycheck_core/requirements/base.in
# djangorestframework-simplejwt
# drf-spectacular
djangorestframework-simplejwt==5.3.1
# via -r backend/paycheck/requirements/base.in
# via -r backend/paycheck_core/requirements/base.in
drf-spectacular==0.27.1
# via -r backend/paycheck/requirements/base.in
# via -r backend/paycheck_core/requirements/base.in
exceptiongroup==1.2.1
# via anyio
h11==0.14.0
# via httpcore
httpcore==1.0.5
# via httpx
httpx==0.27.0
# via -r backend/paycheck/requirements/base.in
# via -r backend/paycheck_core/requirements/base.in
idna==3.7
# via
# anyio
Expand All @@ -60,6 +60,8 @@ jsonschema==4.22.0
# via drf-spectacular
jsonschema-specifications==2023.12.1
# via jsonschema
pillow==10.3.0
# via -r backend/paycheck_core/requirements/base.in
pyjwt==2.8.0
# via djangorestframework-simplejwt
pyyaml==6.0.1
Expand All @@ -78,7 +80,7 @@ sniffio==1.3.1
# httpx
sqlparse==0.5.0
# via django
typing-extensions==4.11.0
typing-extensions==4.12.0
# via
# anyio
# asgiref
Expand Down
4 changes: 2 additions & 2 deletions backend/paycheck_core/src/paycheck/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class BaseUser(AbstractUser):

is_customer = models.BooleanField(default=False)

REQUIRED_FIELDS = ["email", "first_name", "last_name"]
REQUIRED_FIELDS = ["first_name", "last_name"]
USERNAME_FIELD = "email"

class Meta:
Expand Down Expand Up @@ -211,6 +211,7 @@ class VerificationStatus(models.TextChoices):
Address,
on_delete=models.SET_NULL,
help_text="Designates the address of the user",
null=True,
)
verification_status = models.CharField(
_("verification status"),
Expand Down Expand Up @@ -294,7 +295,6 @@ def __str__(self):


class Admin(BaseUser):

class Meta:
proxy = True

Expand Down
4 changes: 1 addition & 3 deletions backend/paycheck_core/src/paycheck/manage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""

import os
import sys
from pprint import pprint
Expand All @@ -15,9 +16,6 @@ def main():
if src_root not in sys.path:
sys.path.append(src_root)

print(f"DJANGO_SETTINGS_MODULE: {os.environ.get('DJANGO_SETTINGS_MODULE')}")
print(f"sys.path: {sys.path}")

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.base")

try:
Expand Down

0 comments on commit 5202e20

Please sign in to comment.