python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Instance error Django Test models.py AttributeError: 'NoneType' object has no attribute
I am performing a Django test case for models.py file the models.py file looks like
import sys
from datetime import datetime
from dateutil.relativedelta import relativedelta
from django.apps import a...
Adarsh Srivastav
Votes: 0
Answers: 0
How to import instances of a Class in Python?
class Tweeter:
def __init__(self, api_key, api_secret_key, bearer_token, access_token, access_token_secret ):
self.api_key = api_key
self.api_secret_key = api_secret_key
s...
someguy
Votes: 0
Answers: 3
Concatenate Instance attribute using class with input
I am super new to python so new to OOP and class (I am originally MATLAB user as an engineer...) so please teach me as much as possible.
Anyways I am trying to do the following.
Create a class called...
Inkyu Kim
Votes: 0
Answers: 1
How to manage instances and class instantiations therein
Let's say I have two classes.
One class User which has a lot of instances and one AccountInterface which is handling Database/File System Queries and might be accessed by every user.
Lets say, User lo...

julian bechtold
Votes: 0
Answers: 2