Migrating to MySQL confusing step

OhSeeGee

New Member
Jan 15, 2022
20
1
3
Wishing I was in Jamaica
I have just done a clean install of Django-PBX + FreeSWITCH onto Debian12. I'm at the point of migrating to MySQL, and I have modified the settings.py file as follows:

'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'djangopbx',
'USER': 'myun',
'PASSWORD': 'mypw',
'HOST': 'localhost',
'PORT': '3306'
},
'freeswitch': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'freeswitch',
}

as I want Django-PBX to use MySQL, and FreeSWITCH to use SQLite. But when performing the
python manage.py makemigrations
command I get error/warning "no changes detected". So I'm guessing nothing was performed. Do I continue or have I gone off track? I am following these StackOverflow instructions
 
Make sure all instances of uWSGI are stopped.

You need python manage.py migrate not makemigrations.

Once this is done you will need to manually perform all of the steps that the installer does after the DB creation.
 
Terrific - the migrate command finished succesfully.

The instructions I was following ended after this command, and the django-pbx installer had already completed succesfully before I started the migration. At what point (in the docs) should I continue manually?
 
I think we should modify the installer script so it pauses after cloning the repository to allow for the database settings to be manually changes before continuing.
I will have a look at this.

To answer your question you should carry on from line 1088 in the install script.

Another workaround for you would be to set "install_postgresql_local" to "no" in the configuration area of the install script, then PostgreSQL will not get installed and you will be prompted to manually edit the settings.py file before the installer continues.
 
The install script seemed like it had a lot left to do (from line 1088 onwards), set I just set install_postgresql_local to no, removed postgresql packages, and reran the installer. All went well except one issue...installing the default dialplan generated errors (wrong number of parameters).

Can I just re-run that one step somehow?
 
The install script seemed like it had a lot left to do (from line 1088 onwards), set I just set install_postgresql_local to no, removed postgresql packages, and reran the installer. All went well except one issue...installing the default dialplan generated errors (wrong number of parameters).

Can I just re-run that one step somehow?
As I say this is uncharted territory, can you show me one of the errors?