Yes - I copied the migrations directory into my project. I haven't experienced any issues when updating, yet...
On Monday, November 11, 2024 at 3:12:15 PM UTC Hugo wrote: > Hi, > I'm new with oscar, and have some experience with django. > I want a marketplace, so the products are tied for each of the vendors. > In INSTALLED_APPS I added: > 'marketplace.apps.MarketplaceConfig', > 'marketplace.catalogue.apps.CatalogueConfig', > 'marketplace.dashboard.catalogue.apps.CatalogueDashboardConfig', > and the new model is: > """ > from django.db import models > from oscar.apps.catalogue.abstract_models import AbstractProduct > from django.contrib.auth.models import User > > > class Product(AbstractProduct): > vendor = models.ForeignKey(User, on_delete=models.CASCADE, > related_name='new-product') > > class Meta: > verbose_name = 'New product' > verbose_name_plural = 'New products' > > > from oscar.apps.catalogue.models import * # noqa > > """ > I don't know why do I have this error with the migrations: > """ > django.db.migrations.exceptions.NodeNotFoundError: Migration > analytics.0002_auto_20140827_1705 dependencies reference nonexistent parent > node ('catalogue', '0001_initial') > """ > > I read something strange in the documentation, in: > https://docs.oscarcommerce.com/en/latest/howto/how_to_customise_models.html > said that: "The recommended way to handle migrations is to copy the > migrations directory from oscar/apps/catalogue into your new catalogue > app." > so, must I create an app/marketplace/catalogue/migrations and copy all the > migrations?, and what happends when oscar updates, isn't there any problems > with this copy? > -- https://github.com/django-oscar/django-oscar http://django-oscar.readthedocs.org/en/latest/ --- You received this message because you are subscribed to the Google Groups "django-oscar" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar+unsubscr...@googlegroups.com. To view this discussion, visit https://groups.google.com/d/msgid/django-oscar/4c36ce38-5bc2-4de5-9fe9-113b514f719dn%40googlegroups.com.