When using Django’s built in comment package, where is the table created when the database is synced? The model doesn’t seem to be in the models.py file.
I seem to be very confused trying to implement this. I found some tutorials online but nonw of them seem to help and I can’t get anything to work.
Anyone have any tips? Can anyone explain how it works?
django.contrib.commentsis a reusable app packaged with Django. Reusable (sometimes called 3rd party, whether or not they are) apps have their own models.py, urls.py, etc. So if you’d like to look at a model from thecommentspackage, browse your Django source directory. On Ubuntu, that would be something likels /usr/lib/python2.6/django/contrib/comments.When the sync command is run, it goes through all of the apps in your
INSTALLED_APPSlist in your project’ssettings.py, and uses theirmodels.pyfiles to generate database schema.Though reusable apps can be a little confusing (especially overriding templates!) they allow for your code base to be way more modular.