Downside of using shortuuid as primary key

2016-10-26 Thread Suren Sth
I am considering to use shortuuid as the primary key for my models. Is there any downside to this? Does it severely affect db indexing? -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

Re: In Django , How to move data from one model to another model in same database & same schema ?

2015-04-06 Thread suren
If Django complains about model not being ready use following snippet to obtain it at migrate_data. Amodel = apps.get_model("an_app", "Amodel") On Monday, April 6, 2015 at 4:08:18 PM UTC+5:45, SHINTO PETER wrote: > > In Django , How to move data from one model to another model in same > database

Re: In Django , How to move data from one model to another model in same database & same schema ?

2015-04-06 Thread suren
If Django complains about model not being ready using following snippet to obtain the it at migrate_data. Amodel = apps.get_model("an_app", "Amodel") On Monday, April 6, 2015 at 4:08:18 PM UTC+5:45, SHINTO PETER wrote: > > In Django , How to move data from one model to another model in same >

Re: In Django , How to move data from one model to another model in same database & same schema ?

2015-04-06 Thread suren
First migrate the changes with $ python mange.py makemigrations app_name Create an empty migration with $ python manage.py makemigrations app_name --empty Inside the empty migration file created through above command. # -*- coding: utf-8 -*- from __future__ import unicode_literals import os fro

Why Django populates the ContentType model after all the migration has been applied?

2015-04-06 Thread suren
Why Django populates the ContentType model after all the migration has been applied? This causes problems during data migration, which contents relation to ContentType module. Is there a particular way to make successful data migration involving creation of a model and migrating data into the t

django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.

2014-12-23 Thread suren
I have following model. class CampaignTemp(models.Model): campaign_modules = Module.objects.filter(active=True) choices = ... ... # other fields I get following error when I try `python manage.py`. ... File "/home/auser/aproject/src/apps/anapp/models.py", line 35, in Campai

Swampdragon, the realtime framework for Django seems interesting. But will it scale ?

2014-11-11 Thread Suren Sth
I recently came across Swampdragon ( Visit official site ). I am curious can it be used in production sites and will it scale ? If it can be, what is the best way? -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns