Post tagged: django

Configuring Django to use a MySQL-Server via SSL

Currently, I'm using Django to develop some internally used applications. For one of them, I had to use a SSL connection to access a MySQL database. As development environment, I'm using Fedora 17, of course.

During that process, I ran into two bugs:

  • MySQL 5.5 doesn't export HAVE_OPENSSL …

Splitting up django models

  1. Create models folder unter myapp

  2. Delete models.py under myapp

  3. Add

    class Meta:
        app_label='myapp'
    

    to each model

  4. Add for each model something like

    from myModelFile import myModel
    

    to models/__init__.py