> <
https://feincms-django-cms.readthedocs.org/en/latest/page.html> and run
> the migration:
>
> |
> python manage.py makemigrations myapp
> |
>
> I get the following message:
> |
> Nochanges detected inapp 'myapp'
> ImportError:Nomodulenamed 'myapp.migrate'
> |
>
> looking at the forum there were alternative syntaxes such as:
>
> |
> Migration_MODULES={
> 'page':'myapp.page_migrations',
> }
> |
>
> but it leads to the initial situation of the "No changes detected" message.
>
> To clarify, my manage.py file is located in the same folder as the myapp
> application.
>
> Many thanks in advance for your support.
When using makemigrations and migrate, you need to specify the page (or
medialibrary) app.
By default, this will attempt to create a migration where you have
FeinCMS installed. When using FeinCMS, I set the MIGRATION_MODULES
setting to store the migrations somewhere more useful (as you mention
above).
So, specify MIGRATION_MODULES (and remember to create the necessary
__init__.py files in the entire hierarchy), and then run:
python manage.py makemigrations page
python manage.py migrate page