Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8978917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:43:15+00:00 2026-06-15T19:43:15+00:00

I am new to Python and playing around with Django. In my model I

  • 0

I am new to Python and playing around with Django. In my model I am trying to incorporate a field in my ‘Product’ model to have a Cloudinary image field.

I have added this to my settings.py:

# Cloudinary settings
CLOUDINARY = {
  'cloud_name': '[my_cloud_name]',  
  'api_key': '[my_api_key]',  
  'api_secret': '[my_api_secret]',  
}

Here is my models.py:

from django.db import models

    class Product (models.Model):
        name=models.CharField(max_length=200)
        image=cloudinary.models.CloudinaryField('image')
        description=models.TextField()

I have tried to import various things (import cloudinary, import cloudinaryField etc.

Not sure how to get my model to work. So far I have received the following errors through my various attempts:

  1. ‘module’ object has no attribute ‘models’
  2. cannot import name CloudinaryField
  3. name ‘cloudinary’ is not defined

Can anyone help me out here? The documentation for Cloudinary is sparse, but I have read through it and hoping I did not miss a key step.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:43:16+00:00Added an answer on June 15, 2026 at 7:43 pm

    I was able to solve this by adding the following to my models.py

    import cloudinary
    from cloudinary.models import CloudinaryField
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Django and Python in general. However, I have been playing around
I have long programming background, but am new to Python, and am playing around
Pretty new to Python and have been playing around with lists and the sort
I am new to python and have been playing around with it for a
I'm still new to python, and been stuck playing around with this for a
New to Python, have a simple, situational question: Trying to use BeautifulSoup to parse
Very new to python and can't understand why this isn't working. I have a
I'm brand new to Google App Engine and have just been playing around with
I started playing with the new graph api with the python sdk. I'm trying
I recently starting playing around with the new features of Python 3.1 and porting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.