Questions tagged [django-salesforce]

Django-Salesforce is an alternate database backend for Django framework that uses Salesforce cloud platform. It contains a compiler from Django-ORM to Salesforce SOQL.

Django-salesforce is an alternate database backend for framework that uses cloud platform. It contains a compiler from to Salesforce .

8 questions
4
votes
2 answers

How to get files from Salesforce using Python

I am using Python/Beatbox to access Salesforce cases. service = beatbox.PythonClient() # instantiate the object service.login(...) # login using your sf credentials query_result = service.query("SELECT Id, AccountId, CaseNumber FROM Case WHERE…
2
votes
1 answer

Correctly import in Django management command

Custom management command, oauth.py, needs a model from another module. When I include "from appname.authentication.models import Contact" I get "AttributeError: 'module' object has no attribute 'models'." - Im stuck on django 1.6 until I able to…
Tom
  • 981
  • 11
  • 24
2
votes
1 answer

Django model wih a ForeignKey pointing to a salesforce model

I am using django-salesforce and I would like to create a model within Django that has a ForeignKey field pointing to a SFDC model (hosted on force.com). I created a custom model on force.com, let us call it SFModel, and I can successfully work on…
Buddyshot
  • 1,614
  • 1
  • 17
  • 44
0
votes
1 answer

Salesforce foreign key field name

In our project we use Salesforce library in Django. We have class which include the raw: class SalesforceContact(models.Model): account = models.ForeignKey(SalesforceAccount, models.DO_NOTHING, db_column='AccountId', blank=True,…
D M
  • 29
  • 3
0
votes
1 answer

How to connect Salesforce database in Django? Perform API calls using Python?

How to connect Salesforce database in django? Perform API calls using Python ? DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'salesforce_db', }, 'salesforce': { 'ENGINE':…
0
votes
1 answer

Calculate weighted score from Salesforce data in Django

I'm looking to connect my website with Salesforce and have a view that shows a breakdown of a user's activities in Salesforce, then calculate an overall score based on assigned weights to each activity. I'm using Django-Salesforce to initiate the…
DH_III
  • 171
  • 2
  • 12
0
votes
2 answers

How to fetch Salesforce Attachment file content with django-salesforce?

I'm developing a Django 1.11 app serving as a UI for some Salesforce Objects using django-salesforce for the communication with Salesforce. I have to give users the option to download files from Salesforce Attachment objects related to their…
0
votes
2 answers

django-salesforce foreign key syntax

I'm using django-salesforce to get a list of Contacts (child) and the Accounts (parent) associated with them. In my models.py, what is the syntax for defining a field in the Contact class to hold the Account name? Here's my models.py: from…