Skip to content

Commit

Permalink
update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikiejoe committed Oct 29, 2024
1 parent 853c06d commit f986cb8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
7 changes: 1 addition & 6 deletions cms/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from pathlib import Path
import cloudinary_storage
import cloudinary.uploader
import cloudinary.api
import os
from decouple import config
import sys
Expand Down Expand Up @@ -84,7 +81,7 @@
},
]

WSGI_APPLICATION = "cms.wsgi.application"
WSGI_APPLICATION = "cms.wsgi.app"


# Database
Expand Down Expand Up @@ -144,8 +141,6 @@

STATIC_URL = "/static/"
STATIC_ROOT = os.path.join(BASE_DIR, "static")
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = "/media"

# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
Expand Down
2 changes: 1 addition & 1 deletion cms/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'cms.settings')

application = get_wsgi_application()
app = get_wsgi_application()
2 changes: 1 addition & 1 deletion core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ProjectAdmin(admin.ModelAdmin):


class PhotoAdmin(admin.ModelAdmin):
# list_display = ("image", "project")
list_display = ("image", "project")
search_fields = ("project",)
list_filter = ("project",)

Expand Down
5 changes: 1 addition & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
africastalking==1.2.7
asgiref==3.8.1
certifi==2023.11.17
cffi==1.16.0
Expand All @@ -16,9 +15,7 @@ Django==5.1.1
django-allauth==0.58.2
django-cloudinary-storage==0.3.0
django-cors-headers==4.3.1
django-rest-swagger==2.2.0
djangorestframework==3.15.2
drf-yasg==1.21.7
flake8==7.1.1
gunicorn==22.0.0
idna==3.6
Expand All @@ -31,13 +28,13 @@ oauthlib==3.2.2
openapi-codec==1.3.2
packaging==23.2
pillow==10.3.0
psycopg2==2.9.9
psycopg2-binary==2.9.9
pycodestyle==2.12.1
pycparser==2.21
pyflakes==3.2.0
PyJWT==2.8.0
python-decouple==3.8
python-dotenv==1.0.1
python3-openid==3.2.0
pytz==2023.3.post1
PyYAML==6.0.1
Expand Down
15 changes: 15 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"builds": [
{
"src": "cms/wsgi.py",
"use": "@vercel/python"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "cms/wsgi.py"
}
]
}

0 comments on commit f986cb8

Please sign in to comment.