Integrating Acra with DjangoProject

This tutorial shows a typical process for integrating Acra into a Python web app. More specifically - an app running on Django framework. It is based on the popular example many Django users start their development journey with - djangoproject.com repository.

# members/models.py...importacrawriter.django...classIndividualMember(models.Model):email=acrawriter.django.EmailField(unique=True)contact_email=acrawriter.django.EmailField()billing_email=acrawriter.django.EmailField(blank=True,help_text='If different from contact email.',)...

Step 6. Run migrations

python manage.py makemigrations
python manage.py migrate

Update database connection settings

Now your app should connect to local AcraConnector. Run AcraConnector on the same port as before and change db_host/trac_db_host in your conf/secrets.conf to 127.0.0.1