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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:46:30+00:00 2026-05-26T16:46:30+00:00

I am developing a web app with django 1.2.4, but I am having a

  • 0

I am developing a web app with django 1.2.4, but I am having a problem with the Site model. I try:

from django.contrib.sites.models import Site
...
if Site._meta.installed:
    ...

I am getting the error undefined variable from import: _meta in the if statement,
any help?

  • 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-26T16:46:30+00:00Added an answer on May 26, 2026 at 4:46 pm

    Unless you’ve fiddled with the django source, there really should be any problems with the Sites._meta.installed variable. _meta.installed is assigned from within the metaclass of all models (using contribute_to_class()) so it would affect ALL models if the code were broken.

    A quick search for relevant tickets does not reveal such a problem for that version (or any other version) of django.

    Are you by any chances running django via pydev? If so, perhaps this post is relevant: How do I fix PyDev "Undefined variable from import" errors?

    That’s of course a wild speculation on my part. If you can post a Trackback of your error, we might be able to get a better insight into your problem.


    Response to comments:

    “I get the error in the IDE (apatana Studio 3)”

    Aptana uses PyDev and so will exhibit the same problem. Here’s a possible fix taken from this blog post:

    1. Open up Aptana Studio
    2. Open Window > Preferences > PyDev > Editor > Code Analysis
    3. Select the “Undefined” tab
    4. Add DoesNotExist at the end of the “Consider the following names as globals” list
    5. Apply and restart
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a web app for iOs device, but I have a problem with
we're developing a web app to cover all aspects of a printing company from
I'm developing a web app and currently using sql server 2008 for it. But,
I am developing a web app but is not satisfied with is architecture that
For developing our Django web app, I'd like to move to an autonomous system
When developing a web app, in my case a ASP.NET MVC app, but this
I am developing a web app based on django for a while. At the
I have recently switched to Django for a web app I'm developing and I
I am developing a Django app being a Web frontend to some Oracle database
I'm currently developing a web app on Django/Python, and I consider moving to ASP.NET

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.