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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:24:28+00:00 2026-06-07T20:24:28+00:00

I am using django to create a blog. It is installed inside a virtual

  • 0

I am using django to create a blog. It is installed inside a virtual environment and django-tagging has been installed. I’m doing DB migrations with south and everything seems to work ok with my migrations, but it seems the tagging tables are not being created, so when I go to add a blog post via the admin I get the famous postgresql error:

Exception Type: DatabaseError at /admin/bppsite/blogpost/add/
Exception Value: relation "tagging_tag" does not exist
LINE 1: ...ECT "tagging_tag"."id", "tagging_tag"."name" FROM "tagging_t...

Here is relevant parts of my models.py:

from south.modelsinspector import add_introspection_rules
add_introspection_rules([], ["^tagging\.fields\.TagField"])

from tagging.models import Tag
from tagging.fields import TagField

class BlogPost(models.Model):
    title = models.CharField(max_length = 255)
    text = models.TextField()
    author = models.ForeignKey(User)
    created = models.DateTimeField(auto_now_add = True)
    modified = models.DateTimeField(auto_now = True)
    status = models.CharField(max_length = 10, choices=POST_STATUS_CHOICES,     default='DRAFT')
    slug = models.SlugField(max_length = 255, blank=True)
    category = models.ManyToManyField(Category)
    tags = TagField()

    def __unicode__(self):
        return self.title

    class Meta:
        ordering = ["-created"]

    def save(self):
        if not self.id:
            self.slug = slugify(self.title)
        super(BlogPost, self).save()

    def set_tags(self, tags):
        Tag.objects.update_tags(self, tags)

    def get_tags(self, tags):
        return Tag.objects.get_for_object(self)

and, installed apps from settings.py:

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # Uncomment the next line to enable the admin:
    'django.contrib.admin',
    # Uncomment the next line to enable admin documentation:
    # 'django.contrib.admindocs',
    'south',
    'tinymce',
    'tagging',
    'bppsite',
)

I have tried moving the ordering of the apps around in INSTALLED_APPS (thinking the tagging might need to come before my app) but it doesn’t seem to make any difference.

I know it’s going to be something simple but can’t figure it out.

thanks
Aaron

  • 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-07T20:24:30+00:00Added an answer on June 7, 2026 at 8:24 pm

    OK. I can’t believe how simple it was, the answer was right there in front of my face. However, if anyone else happens to be in the same position, hopefully they will stumble across this question which I will now self-answer.

    The issue is nothing to do with django-tagging. It is to do with the fact that south will only migrate what I tell it to migrate! As awesome as south is (I will never use a django project without it now that I’ve found it) – it doesn’t migrate the third party apps. I had assumed south would look into my settings.py and work out which installed apps needed to be synced with the database and just pick them up, as if I were just running syncdb as normal.
    This is not what south does, so each third party app installed needs to be migrated on its own to ensure it exists in the database.
    So, all I had to do to get the tables into my database:

    ./manage.py schemamigration tagging --initial
    ./manage.py migrate tagging
    

    I’m sure there is a way to lump all of the migrations together but I’m ok doing them one by one for my small scale stuff for now – happy for someone to elaborate on this answer and reveal the best way to migrate all apps at the same time with a single command – is it possible?

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

Sidebar

Related Questions

I am using Django's generic views to create a blog site. The templates I
I want to create a new business application using the Django framework. Any suggestions
I created a database for a site i'm doing using Django as the admin
I using Django tagging project. That is was very stable project. Working on django
I'm using django to create a application download site. I try to write a
I'm using Django to create registration/payment application for a limited number of products. I
I'm using Django to create a site that provides a separate web UI for
This is killing me! I'm using django-filebrowser, and I want to create a gallery
I'm using django templates to create an e-mail. I do something like this: msg_html
I'm using django-taggit to create an app that stores not only to-do items but

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.