Giter VIP home page Giter VIP logo

Comments (4)

jMyles avatar jMyles commented on July 18, 2024

Can you paste a complete traceback?

from what.

dpiaquadio avatar dpiaquadio commented on July 18, 2024

After typing python manage.py migrate do, this is the traceback:

/home/dominick/virtualenv/WHAT/local/lib/python2.7/site-packages/django/utils/hashcompat.py:9: DeprecationWarning: django.utils.hashcompat is deprecated; use hashlib instead
DeprecationWarning)

/home/dominick/virtualenv/WHAT/local/lib/python2.7/site-packages/django/contrib/localflavor/init.py:2: DeprecationWarning: django.contrib.localflavor is deprecated. Use the separate django-localflavor-* packages instead.
warnings.warn("django.contrib.localflavor is deprecated. Use the separate django-localflavor-* packages instead.", DeprecationWarning)

Running migrations for do:

  • Migrating forwards to 0002_auto__add_field_task_status.

    do:0001_initial
    ValueError: Cannot import the required field 'utility.models.GenericPartyForeignKey'

from what.

dpiaquadio avatar dpiaquadio commented on July 18, 2024

Should this not be importing 'what_apps.utility.models.GenericPartyForeignKey'? If so, where can I find the code to do so?

from what.

jMyles avatar jMyles commented on July 18, 2024

Gotcha. OK, my take:

  1. What is the standard practice if you have a migration that is from before a refactor, as we have here?
  2. Sure, you can change it if you want in do.migrations.0002 or whatever.
  3. We're never, ever going to rollback this migration - I'm not opposed to deleting it at this point.

from what.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.