Skip to content

Commit

Permalink
fix cloudinary settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Niclas Tanskanen committed Jul 16, 2023
1 parent 428e12c commit 719bf05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
asgiref==3.7.2
certifi==2023.5.7
charset-normalizer==3.2.0
cloudinary==1.33.0
dj-database-url==2.0.0
dj3-cloudinary-storage==0.0.6
Django==4.2.3
django-cloudinary-storage==0.3.0
djangorestframework==3.14.0
gunicorn==20.1.0
idna==3.4
Pillow==10.0.0
psycopg2-binary==2.9.6
python-dotenv==1.0.0
pytz==2023.3
requests==2.31.0
six==1.16.0
sqlparse==0.4.4
typing_extensions==4.7.1
Expand Down
14 changes: 0 additions & 14 deletions summertrails_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@
import dj_database_url
from dotenv import load_dotenv

# Cloudinary
import cloudinary
import cloudinary.uploader
import cloudinary.api


# Cloudinary settings
cloudinary.config(
cloud_name = os.environ.get("CLOUDINARY_USERNAME"),
api_key = os.environ.get("CLOUDINARY_API_KEY"),
api_secret = os.environ.get("CLOUDINARY_API_SECRET")
)

# Load environment variables from .env file
load_dotenv()
Expand Down Expand Up @@ -74,8 +62,6 @@
# My apps
'home',
'authentication',
'cloudinary',

]

MIDDLEWARE = [
Expand Down

0 comments on commit 719bf05

Please sign in to comment.