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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:55:35+00:00 2026-05-25T19:55:35+00:00

I built an app using Django 1.3 and am now attempting to deploy to

  • 0

I built an app using Django 1.3 and am now attempting to deploy to ubuntu 10.10 on linode using postgresql. I am using nginx on the front end and for static media and sending app requests to the app served with apache/mod_wsgi. Everything works fine on my local dev machine which is also Ubuntu 10.10 and I can install the app on my web server however when I try to access the home page I get the following error: ‘str’ object has no attribute ‘_default_manager’

According to the error messages it appears that it is having trouble with a modelform where I subclassed a field, changing it from a FK field to a URLField and performing the validation manually. This is the form that throwing the error:

class TopicResourceForm(ModelForm):
    resource = URLField(label='Resource URL')
    class Meta:
        model = TopicResource
        fields = ('title', 'rtype', 'note')

And these are the models.

class TopicResource(models.Model):
    added = models.DateTimeField(auto_now_add=True)
    updated = models.DateTimeField(auto_now=True)
    title = models.CharField(max_length=140, blank=True)
    note = models.TextField(blank=True)
    resource = models.ForeignKey('aresource.Resource')
    rtype = models.ForeignKey('aresource.ResourceType', verbose_name="Resource Type", blank=True, null=True)
    topic = models.ForeignKey('mystudy.Topic')

    def __unicode__(self):
        return '%s on %s' % (self.resource, self.topic)

    def get_absolute_url(self):
        return '/topics/%s/%s/%s' % (self.topic.slug, self.resource.id,
        self.id)



class Resource(models.Model):
    added = models.DateTimeField(auto_now_add=True)
    updated = models.DateTimeField(auto_now=True)
    url = models.URLField(unique=True)
    rtype = models.ForeignKey(ResourceType, verbose_name="Resource Type", blank=True, null=True)

    def __unicode__(self):
        return '%s' % self.url

    def get_absolute_url(self):
        return '/resources/%s' % self.id

Any help would be appreciated, thanks.

  • 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-25T19:55:36+00:00Added an answer on May 25, 2026 at 7:55 pm

    It appears that your problem is similar to the one in this question Getting the "str" has no property "_default_manager" on a Django app just on startup . The answer to the question leads to a discussion with various suggested fixes. Hope that helps.

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

Sidebar

Related Questions

I am using Django 1.3 with built-in static app. My static folder structure is
I have an NSIS installer script that I'm using to deploy a py2exe-built app
I have built an app using Qt creator for symbiyan mobile; now, I am
I've built app using wmp.dll which is Windows System File in my XP machine.
I've built my app using a plist. But with the data there is a
We recently built a web app using Prototype, making a fair amount of use
So, I have this desktop app built using WPF and C#. It's basically an
Using Django templates in Google App Engine (on Python), is it possible to compare
We have a web based application in production built using django. It is deployed
I am developing an application on the Google App Engine using Python (and Django,

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.