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 3432350
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:26:18+00:00 2026-05-18T07:26:18+00:00

I have a profile class: class profile(db.Model): user = db.stringProperty() # Other properties …

  • 0

I have a profile class:

class profile(db.Model):
  user = db.stringProperty()
  # Other properties ...
  access = db.ListProperty(db.keys)

class apps(db.Model):
  name = db.StringProperty()

The profile class was there for quiet some time, but we added recently access field which will store the keys of apps.
Now we are adding profile permissions on the app, access field does not get updated in the model.

This works fine totally on localhost, but when I update this on server I get this error
“‘NoneType’ object has no attribute ‘access'”
Has anybody come across same situation

Update:
Figured out that one of the object from profile class is being returned as None. Here is the code which gets profile object on localhost but None on the server

 liuser = users.User(request.POST['user']) 
 #request.POST['user'] gets user Gmail ID, which is being converted to user object
 profiles=Profile.all().filter(" user =", liuser).get()
 userprofile=profiles

 #tried below code which returns "'NoneType' object has no attribute 'access'" on server, the same gets a profile object on localhost
 if not hasattr(userprofile, "access"): 
    userprofile.access=[]

@Robert hope the formatting is fine now.

Thank You
Sai Krishna

  • 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-05-18T07:26:18+00:00Added an answer on May 18, 2026 at 7:26 am

    We were able to fix this. The problem was with users.User object which does not append @gmail.com for gmail users, but while it accepts for other domains with domain name, which was throwing None Type object

    Thank You once again for the help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Profile model: class Profile(db.Model): user = db.UserProperty(auto_current_user=True) bio = db.StringProperty() I'd
I have two models: User (email:string) Profile (name:string) class User < ActiveRecord::Base has_one :profile
I have following model: class UserProfile(models.Model): User profile model, cintains a Foreign Key, which
I have user profile model with M2M field class Account(models.Model): ... friends = models.ManyToManyField('self',
I have the following models: class UserProfile(models.Model): user = models.ForeignKey(User, unique=True, related_name='profile') starred_authors =
I have: class Profile(models.Model): user = models.OneToOneField(User) birthday = models.DateField(null=True) gender = models.CharField(max_length=140) profile_picture
I have a simple question. This is my profile: class Profile(models.Model): user = models.ForeignKey(User,
I have two models Profile and Avatar. models.py class Profile(models.Model): user = models.ForeignKey(User) profile_name
I have a profile. class UserProfile(models.Model): user = models.ForeignKey(User, related_name=%(class)s, unique=True) providers = models.ManyToManyField(ServiceProvider,
I have a model as follows class UserPrivacy(models.Model): user = models.ForeignKey(User) profile = models.SmallIntegerField(default=1,

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.