How to use the MigrationAutodetector manually for dynamic models

2022-08-08 Thread Diederik van der Boor
Hi All, I'm working on an API-server project that uses dynamically generated Django models, so it can service many user-provided datasets. To ease maintenance work, we'd like to generate the SQL statements to migrate database tables to a newer version of the schema. I've managed to use the

Re: mass email app for django

2014-01-16 Thread Diederik van der Boor
Hi Sven, What you describe sounds like a Mailinglist.. Wouldn't it be possible to use Mailchimp or Aweber for this kind of service? >From Django you can use their API's. Mass-mailing has a risk of being blacklisted as server, at least make sure you send email via a whitelisted SMPT server (and

Re: What is the right location for my django translation files?

2013-10-09 Thread Diederik van der Boor
You can place a new .po file in a `locale` folder of one of your INSTALLED_APPS. This will be picked up, and can override the locale of mezzanine, if your app is placed before mezzanine in INSTALLED_APPS. Off course, run django-admin.py compilemessages in the root folder where the `locale`

Using Django RelatedField for custom join queries?

2013-09-20 Thread Diederik van der Boor
Hi all, I've asked this question on stackoverflow (http://stackoverflow.com/questions/18913661/using-django-relatedfield-for-custom-join-queries), but figured it might be better to post it here: I'm curious whether a RelatedField can be used to cause custom join queries. I would like to apply

Re: OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")

2013-01-08 Thread Diederik van der Boor
The hostname "localhost" has a special meaning for MySQL, at least on Linux it has. When you ask the mysql driver to connect to localhost, it will use the socket. To avoid this issue, better use 127.0.0.1. Also check whether the MySQL server is running on that port (netstat -a ?), whether the

Re: Postgres versus mysql? Or, is RDS worth migrating for?

2012-11-12 Thread Diederik van der Boor
Second that. If you consider moving back to MySQL, at least make they've seen the following video at: http://wekeroad.com/2012/07/19/postgresql-rising ;-) Secondly, timezones of 1.4 are painful in MySQL to convert to, and south migrations won't be able to rollback failed schema changes.

Re: Django mod-wsgi multiple instances of One Class object

2012-11-12 Thread Diederik van der Boor
In pre 1.4 projects, it was common for projects to have multiple ways to import stuff; because the project path, and the path 1 level up were both in the python path. This way, you can actually have 2 versions of the module imported, and hence your singleton breaks (depending on the route taken

Re: Model field that links to a page ID, or external URL

2012-02-14 Thread Diederik van der Boor
Op 13 feb. 2012, om 18:50 heeft Jonathan Paugh het volgende geschreven: > Each model supports a get_absolute_url(self) method, which allows you to > retrieve each object's url in whatever way you want, including pulling > values from self (i.e. the model object.). Returned urls are in serveral >

Model field that links to a page ID, or external URL

2012-02-13 Thread Diederik van der Boor
Hi, In CMS interfaces I generally encounter a problem with URL fields. In most situations, the following options need to be supported: - An URL to an external page (Django's URLField can handle that) - An URL to an internal page (e.g. Django CMS) - An URL to an other model (e.g. article) How

Re: Django Web Application Cost So Many memory

2011-03-30 Thread Diederik van der Boor
Op woensdag 30 maart 2011 17:48:38 schreef 付毅: > hi Xavier Ordoquy > So , you mean 60M per python process is in a normal status? I really > encouter this kind of website before Please note this is for the entire website, not per apache instance. There is one Django process (via mod_wsgi, or

Re: Hosting many small Django websites

2010-10-18 Thread Diederik van der Boor
all ran as the > same user, then one django project could monkey patch another one which > creates all kinds of interesting security issues. > > Brian > > On Thu, Oct 14, 2010 at 4:45 PM, Diederik van der Boor <vdb...@gmail.com>wrote: > > Hi, > > > >

Hosting many small Django websites

2010-10-14 Thread Diederik van der Boor
Hi, I'm curious about using Django for many small web sites. Does this require each site to run in a separate wsgi daemon process? If so, how is it possible to keep memory usage shared? Thanks in advance, Diederik -- You received this message because you are subscribed to the Google Groups

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Diederik van der Boor
Op maandag 27 september 2010 09:08:53 schreef MrMuffin: > Where do you put your business logic in django? In my project I`ve put > it into the models.py, but that file soon become huge and hard to > maintain. Of course I can just stuff it into whatever file I like, but > I`d like to have some