Hello
I have an already existing app with alot of database entries.
class Foo(models.Model):
value = models.TextField(u"Value")
For this I do this:
python manage.py schemamigration myapp --initial
python manage.py migrate myapp
I change the model to such:
class Foo(models.Model):
value = models.TextField(u"Value")
liv...
I find this documentation extremely confusing:
http://south.aeracode.org/docs/customfields.html
If someone could walk me through this or at least give a full example, I would be very grateful.
...
My problem is in getting manage.py syncdb to run within a virtualenv.
It was working fine at one point, but seems to have broken sometime around when I installed South and updated pip and distribute.
Anyways, when the virtualenv is activated, I can import apps fine within the interactive interpreter. Running through mod_wsgi, the apps ...
When using syncdb the following schema is created:
CREATE TABLE "MyApp_supervisor" (
"id" integer NOT NULL PRIMARY KEY,
"supervisor_id" integer NOT NULL REFERENCES "MyApp_employee" ("id"),
"section_id" integer NOT NULL REFERENCES "MyApp_section" ("id")
);
When using migrate, it is changed to:
CREATE TABLE "MyApp_superviso...
I can't get my site running with south. I've successfully installed south, and I can 'import south' successfully.
./manage.py shell
>>> import south
>>>
However, once I add 'south' to INSTALLED_APPS, and run ./manage.py syncdb (to complete the installation), I get the following error:
There is no South database module 'south.db.d...
I'm working a small, personal Django project and I've added South (latest mercurial as of 10/9/10) to my project.
However, whenever I run "./manage.py syncdb" or "./manage.py migrate " I get about 13 pages (40 lines each) of output solely regarding 'initial_data' files not being found. I don't have any initial_data nor do I really want ...
When adding a field for easy-thumbnails to a model
easy_thumbnail = ThumbnailerImageField(
null=True, blank=True, verbose_name=_("Easy_Thumbnails"),
upload_to="easy_thumbnails",
resize_source=dict(size=(100, 100), crop="smart"),
)
When executing ./manage.py schemamigration test --auto, South produces the following migratio...
Currently I'm using an old and patched version of sorl.thumbnail, which kind of works, but I'm afraid of touching it any further. I'm looking around for a proven, working with django 1.2, south-compatible, sorl.thumbnail-like-configurable (ie. multiple thumbnails for a single image) ImageWithThumbnailsField. Any recommendations?
edit: b...
Adding South to an existing Django project. I have it installed on both the development machine and the "production" server.
I've done the following on the development machine, then: added South app to settings.py,
python manage.py syncdb
python manage.py convert_to_south myproject.myapp
then changed some models, then
python manage...
I have a Django site placed in folder site/. It's under version control. I use South for schema and data migrations for my applications. Site-specific applications are under folder site/ so they are all version-controlled along with their migrations.
I manage a virtualenv to keep third party components dry and safe. I install package...