Questions tagged [django-evolution]

Django Evolution is an extension to Django that allows you to track changes in your models over time, and to update the database to reflect those changes.

Django Evolution provides support for updating database table structure based on model changes.

The following is a list of the model changes is working:

  • Adding new simple fields (e.g., a new CharField).
  • Adding new ManyToMany Fields.
  • Deletion of fields.
  • Deletion of models.
  • Deletion of entire applications.
  • Renaming of a field.
13 questions
35
votes
1 answer

Currently using Django "Evolution", is "South" better and worth switching?

I'm currently using Django evolutions to manage my product's database evolutions. It's not perfect but I've learned to live with its flaws. For instance, I always have to copy my production database to test before moving out a new schema because…
MikeN
  • 45,039
  • 49
  • 151
  • 227
2
votes
1 answer

Django Evolution: How do I add a new field at a specific position?

Is there a way to tell Django Evolution to add a new field to a database table at a specific position, similar to the AFTER statement of (My)SQL? I have a table with some columns and I want to add new_column after column1. Using SQL directly I would…
friederbluemle
  • 33,549
  • 14
  • 108
  • 109
2
votes
2 answers

Error when adding a ManyToManyField in Django

Ok, so I posted a question recently regarding an error when adding a ManyToManyField The Models are the ones below class MagicType(models.Model): name = models.CharField(max_length=155) parent = models.ForeignKey('self', null=True,…
RadiantHex
  • 24,907
  • 47
  • 148
  • 244
1
vote
2 answers

Applying django evolution to multiple databases with reference to a base database

I have a django model which i would call as base model. I have created a project which dynamically creates new databases. Now, i found that i have to make a change to a table schema in the base table. How do i update this change to all the created…
kirans_6891
  • 121
  • 9
1
vote
2 answers

django-evolution error

I'm trying to use django-evolution to modify some models from an existing project. Now when I go a syncdb it says that I need to do a 'evolve'. When I try to run: python manage.py evolve --hint --execute I am shown this error in the terminal, but…
TheLifeOfSteve
  • 3,208
  • 6
  • 37
  • 53
1
vote
1 answer

how to remove django evolution from admin?

How to unregister django-evolution from admin? admin.site.unregister( something )
frnhr
  • 12,354
  • 9
  • 63
  • 90
1
vote
2 answers

extension like django-evolution

I am in search for a extension that is similar to django_-volution. The requirement is to alter the database, whitout deleting the wohle data. I don't know, but for me, this is something so ordinary - doesn't django have a built-in function like…
amannn
  • 45
  • 5
1
vote
1 answer

Right way to create custom pgsql types in django

What is the right way to create custom pgsql types for django application so that each time database is created with syncdb, all custom types are created prior to creating any tables (so that tables can use this type)? I also use django-evolution,…
0
votes
0 answers

Django Evolution error: 'ConnectionRouter' object has no attribute 'allow_syncdb'

I've searched for the solution on internet and here and didn't find one. It seems like something needs to be changed or added, or maybe I just did something wrong. I recently started a new project with Django and although I know a little bit of web…
0
votes
1 answer

How do I uninstall Django Evolution?

I installed it in my dev project. I would like to remove it and any trace of it in my database and my django app, not to mention my python install. I found it didn't quite do what I needed, but that's another topic, and I'm moving to South. Can I…
Rhubarb
  • 3,893
  • 6
  • 41
  • 55
0
votes
4 answers

Django manage.py can't find an INSTALLED_APP even though the module is in the path

When I run python manage.py shell I get an error about the last app I've added to INSTALLED_APPS, namely django-evolution, saying it's an undefined module. This is despite the fact that I've added the path to django-evolution to the system path. In…
Rhubarb
  • 3,893
  • 6
  • 41
  • 55
0
votes
1 answer

django-evolution doesn't work with django.contrib.gis.db.backends.postgis

I can't run "./manage.py evolve --hint --execute" for my GeoDjango project. It exits with error: File "/home/viktor/.virtualenvs/senv/lib/python2.6/site-packages/django_evolution-0.6.7-py2.6.egg/django_evolution/db/__init__.py", line 18, in …
duke_nukem
  • 647
  • 2
  • 9
  • 16
0
votes
2 answers

How to add the django-evolution dir to my Python Path - Ubuntu

I want to install Django-Evolution, but their documention is scarce on how to do it. My main stumbling point (I am still learning stuff in Linux) is the following line: Check out the Django Evolution sources, and put the checkout directory into…
Lynn
  • 559
  • 1
  • 6
  • 22