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

  • Home
  • SEARCH
  • 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 8459765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:25:09+00:00 2026-06-10T13:25:09+00:00

I have Django 1.4.1 and Python 2.7 installed from ports on Mac OS X

  • 0

I have Django 1.4.1 and Python 2.7 installed from ports on Mac OS X 10.7. When I try to run manage.py runserver 8000, I’m getting an error:

Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x10bb840d0>>
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/django/core/management/commands/runserver.py", line 91, in inner_run
    self.validate(display_num_errors=True)
  File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 266, in validate
    num_errors = get_validation_errors(s, app)
  File "/Library/Python/2.7/site-packages/django/core/management/validation.py", line 30, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/Library/Python/2.7/site-packages/django/db/models/loading.py", line 158, in get_app_errors
    self._populate()
  File "/Library/Python/2.7/site-packages/django/db/models/loading.py", line 64, in _populate
    self.load_app(app_name, True)
  File "/Library/Python/2.7/site-packages/django/db/models/loading.py", line 88, in load_app
    models = import_module('.models', app_name)
  File "/Library/Python/2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/Users/rankor777/PycharmProjects/PyCart/PyCartApp/models.py", line 40, in <module>
    class Photo(models.Model):
  File "/Users/rankor777/PycharmProjects/PyCart/PyCartApp/models.py", line 41, in Photo
    title = models.Model(max_length=128)
  File "/Library/Python/2.7/site-packages/django/db/models/base.py", line 289, in __init__
    if args_len > len(self._meta.fields):
AttributeError: 'Model' object has no attribute '_meta'

What’s this, and how to fix it?

  • 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-06-10T13:25:11+00:00Added an answer on June 10, 2026 at 1:25 pm

    I don’t know why you think this has something to do with MacPorts. The traceback shows the error, which is in line 41 of PyCartApp/models.py: you’ve put models.Model(max_length=128) where I presume you meant to put models.CharField(max_length=128).

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

Sidebar

Related Questions

I am running Mac OS X 10.5.8. I have installed Python 2.6 from the
I have django-registration installed. I just updated my Python installation from 2.5 to 2.7.
I have an application that uses Django 1.3 installed in python's site-packages. I want
I have installed django-registration with pip, version 0.7. Then with urls.py from core.forms import
I came from PHP, Python and Django are new to me. I have a
I have python 2.6.1 installed with django 1.3 and PyDev 2.0. I am able
I have MYSQL & MYSQLdb installed with Python 2.6 & Django 1.2.3. I can
I have a problem with python module import. I installed django (this can be
I have django+python+apache2+mod_python installed hosted and working on ubuntu server/ linode VPS. php5 is
I have downloaded the Python 2.7.2 Windows x86 32-bit MSI from python.org and installed

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.