Yes - I copied the migrations directory into my project.

I haven't experienced any issues when updating, yet...

On Mon, 11 Nov 2024 at 15:12, Hugo <hugoferrer...@gmail.com> 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/3bf7930b-a0db-4b95-9cc4-47a22edec76bn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-oscar/3bf7930b-a0db-4b95-9cc4-47a22edec76bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
*Aaron Ja**ck*
Prblm Ltd
Upcoming Annual Leave: 20/05/2024 - 28/05/2024
Let's team up and make better websites: https://calendly.com/prblm/team-up

-- 
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/CADspEwnB_pwm9Zoo6O7tY21z4Jx%3DQ%3D9REG%3DgMVAH7XJ5PKFt%2Bw%40mail.gmail.com.

Reply via email to