GithubHelp home page GithubHelp logo

Comments (8)

psychok7 avatar psychok7 commented on June 30, 2024

@javrasya let me know if you need more information

from django-river.

psychok7 avatar psychok7 commented on June 30, 2024

After fiddling around i think i may have found the root problem and a workaround.

so basically my 0001_initial.py was generating this

    dependencies = [
        ('river', '0007_auto_20161013_1149'),
    ]

This migration does not exist in the source code (and i am not sure were is it coming from) so i changed the migration to:

    dependencies = [
        ('river', '0006_auto_20160524_0439'),
    ]

I noticed then that there was one migration left to do (the actual 0007)

root@8b7595afac0e:/code# python3 manage.py makemigrations --settings=smal.settings.local
System check identified some issues:

WARNINGS:
river.ProceedingMeta.groups: (fields.W340) null has no effect on ManyToManyField.
river.ProceedingMeta.parents: (fields.W340) null has no effect on ManyToManyField.
Migrations for 'river':
  /usr/local/lib/python3.5/dist-packages/river/migrations/0007_auto_20161013_1150.py:
    - Alter field parents on proceedingmeta
root@8b7595afac0e:/code# python3 manage.py migrate --settings=smal.settings.local
System check identified some issues:

WARNINGS:
river.ProceedingMeta.groups: (fields.W340) null has no effect on ManyToManyField.
river.ProceedingMeta.parents: (fields.W340) null has no effect on ManyToManyField.
Operations to perform:
  Apply all migrations: admin, auth, authtoken, authtools, contenttypes, djcelery, ip_geocoding, local_accommodation, qualifications, river, sessions, sites, users
Running migrations:
  Applying river.0007_auto_20161013_1150... OK
root@8b7595afac0e:/code#

Hope this helps

from django-river.

javrasya avatar javrasya commented on June 30, 2024

I think there is a problem with python 3, because here is the result with python 2.7

    dependencies = [
        ('river', '0006_auto_20160524_0439'),
    ]

I could reproduce your case with python 3. I am looking at it.

from django-river.

javrasya avatar javrasya commented on June 30, 2024

I create migrations with python 2.7 most of time. In a weird way, python2.7 could't detect a migration which is 0007 one somehow python3 can detect. I will create this migration with python3 and commit it.

from django-river.

javrasya avatar javrasya commented on June 30, 2024

@psychok7 could you please test it with master branch, it supposed to be fixed, I commited the missing migration file.

from django-river.

javrasya avatar javrasya commented on June 30, 2024

Please, do not forget to install it with --upgrade to delete previous django-river to reset migrations. Because you created 0007 in your workspace right.

from django-river.

psychok7 avatar psychok7 commented on June 30, 2024

@javrasya oh ok, i will try to test it tomorrow or monday morning and let you know

from django-river.

psychok7 avatar psychok7 commented on June 30, 2024

@javrasya i tested the latest commit against a database without django river but with data and everything is working.

from django-river.

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.