Hi,
I found that I needed to create a new app containing FAQS page(s) to my Django project after it had already been deployed to production. This is because of my email smtp backend service I will be using. I want to be able to state in the FAQs that people should only sign up for the site if they don’t mind receiving emails about successful registration and if they want to be able to reset their passwords. However, when I did this, I could makemigrations on my new faqs app, but I could not migrate. I got the following errors:
python3 manage.py migrate faqs
/Users/mariacam/Python-Development/django-boards/django_boards/../media media root in development
Traceback (most recent call last):
File "/Users/mariacam/Python-Development/django-boards/manage.py", line 22, in <module>
main()
~~~~^^
File "/Users/mariacam/Python-Development/django-boards/manage.py", line 18, in main
execute_from_command_line(sys.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
~~~~~~~~~~~~~~~^^
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/core/management/base.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/core/management/base.py", line 459, in execute
output = self.handle(*args, **options)
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/core/management/base.py", line 107, in wrapper
res = handle_func(*args, **kwargs)
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/core/management/commands/migrate.py", line 118, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/db/migrations/executor.py", line 18, in __init__
self.loader = MigrationLoader(self.connection)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/db/migrations/loader.py", line 58, in __init__
self.build_graph()
~~~~~~~~~~~~~~~~^^
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/db/migrations/loader.py", line 235, in build_graph
self.applied_migrations = recorder.applied_migrations()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/db/migrations/recorder.py", line 89, in applied_migrations
if self.has_table():
~~~~~~~~~~~~~~^^
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/db/migrations/recorder.py", line 63, in has_table
with self.connection.cursor() as cursor:
~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/db/backends/base/base.py", line 320, in cursor
return self._cursor()
~~~~~~~~~~~~^^
File "/Users/mariacam/Python-Development/django-boards/venv/lib/python3.13/site-packages/django/db/backends/dummy/base.py", line 20, in complain
raise ImproperlyConfigured(
...<3 lines>...
)
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
I know this is not the ideal way of doing things, but what if one wanted to expand the application after it has already been deployed and has a managed PostgreSQL production database. Locally, I am using the db.sqlite3 database. Thanks!