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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:50:33+00:00 2026-06-17T00:50:33+00:00

Have not been able to find a solution for this. models.py class Product(models.Model): prod_id

  • 0

Have not been able to find a solution for this.

models.py

class Product(models.Model):
    prod_id = models.IntegerField(primary_key = True)
    prod_name = models.CharField(max_length=128)
    prod_price = models.FloatField()
    prod_quantity = models.CharField(max_length=75)
    prod_description = models.TextField()
    prod_attributes = models.TextField()
    prod_ingredients = models.TextField()

settings.py

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'MyApp',

This is the error that’s thrown:

Creating tables …
self.fetch_command(subcommand).run_from_argv(self.argv)
File “C:\Python27\Lib\site-packages\django\core\management\base.py”, line 196, in run_from_argv
self.execute(*args, **options.dict)
File “C:\Python27\Lib\site-packages\django\core\management\base.py”, line 232, in execute
output = self.handle(*args, **options)
File “C:\Python27\Lib\site-packages\django\core\management\base.py”, line 371, in handle
return self.handle_noargs(**options)
File “C:\Python27\Lib\site-packages\django\core\management\commands\syncdb.py”, line 91, in handle_noargs
sql, references = connection.creation.sql_create_model(model, self.style, seen_models)
File “C:\Python27\Lib\site-packages\django\db\backends\creation.py”, line 82, in sql_create_model
style.SQL_TABLE(qn(opts.db_table)) + ‘ (‘]
File “C:\Python27\Lib\site-packages\django\db\backends\mysql\base.py”, line 244, in quote_name
if name.startswith(“") and name.endswith("“):
AttributeError: ‘list’ object has no attribute ‘startswith’

So the key part:
AttributeError: ‘list’ object has no attribute ‘startswith’

Anybody have any ideas as to why I’m getting this error? I’ve tried alot of different things and it just wont work even thou it creates the other tables successfully it just won’t create my model classes. I am using a mysql database.

  • 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-17T00:50:35+00:00Added an answer on June 17, 2026 at 12:50 am

    The traceback suggests that you may have used the db_table option incorrectly. It should be a string, not a list. Please check your usage, and update your question with more code if you are not sure.

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

Sidebar

Related Questions

(have searched, but not been able to find a simple solution to this one
I have searched around and have not been able to find a solution for
I have not been able to find any definitive answers to this question: Can
So this is something that I have not been able to find any documentation
I have not been able to find a solution to my problem yet. What
I've searched for this for a while but have not been able to find
I've been trying for hours to find a solution this problem but have not
I have a simple problem that I have not been able to find an
I have been using this as a reference, but not able to accomplish exactly
this is a simple question (I think), but I have not been able to

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.