Re: A lot of Problems with Migrating (conceptual)

2017-08-18 Thread James Schneider
On Aug 17, 2017 10:10 AM, "Alexander Joseph" wrote: I'm pretty new to django and I've been having problems with makemigrations/migrate and I wonder if Im doing things right. I'm using MySQL backend and after reading in the documentation a little it sounds like Postgresql might make migrating mor

Re: A lot of Problems with Migrating (conceptual)

2017-08-18 Thread James Bennett
On Thu, Aug 17, 2017 at 1:03 PM, Antonis Christofides < anto...@djangodeployment.com> wrote: > Second, just to make things clear, the word "migration" has two meanings. > The original meaning of migration is to switch to another software system > (e.g. migrate from MySQL to PostgreSQL, or migrate

Re: Best way to structure a django project with multiple levels of sub apps?

2017-08-18 Thread James Schneider
On Aug 17, 2017 2:26 PM, "Alexander Joseph" wrote: I'm bullding a larger django project and I'm starting to implement cookiecutter django after reading through "2 Scoops of Django" but still have some questions on structuring a project. I've setup my project, we'll call it 'business_proj'. In b

Re: Row based permissions: In DB or App? ... farewell pain

2017-08-18 Thread guettli
Am Donnerstag, 17. August 2017 16:09:42 UTC+2 schrieb Vijay Khemlani: > > How can we propose faster alternatives if we don't know how fast must it > be? > > Of course it is up to you in the end, but if you are seriously considering > exotic options such as using stored procedures at least I wou

Re: Best way to structure a django project with multiple levels of sub apps?

2017-08-18 Thread James Schneider
Once again, I accidently sent this email. Not a fan of the sensitivity of the screen on my new phone. Continued below. I think if you better define an app vs. a model, you'll find that you need only a few apps. IMHO, an app should represent a logical segment of your project, broad enough that a m

Re: A lot of Problems with Migrating (conceptual)

2017-08-18 Thread Jim Illback
Here’s a “problem” with migrations that I’ve had. It only occurs on a first time installation (like a first-time upload to Heroku, for example). In forms.py, I have a field dependent upon a column in another table (Category): category = forms.TypedChoiceField(required=False, choices=[(categor

Re: A lot of Problems with Migrating (conceptual)

2017-08-18 Thread knbk
There are various reasons why you should never execute queries at startup. One you've seen: it makes it impossible to migrate a new database. Other reasons include that the choices are cached and are only renewed when the server restarts, and that when running tests, the query is executed before

Re: A lot of Problems with Migrating (conceptual)

2017-08-18 Thread Jim Illback
Excellent - thanks much. On Aug 18, 2017, at 4:02 PM, knbk mailto:marten.k...@gmail.com>> wrote: There are various reasons why you should never execute queries at startup. One you've seen: it makes it impossible to migrate a new database. Other reasons include that the choices are cached and a