If you make migrations for the first time since deleting your previous migrations, it doesn’t need to migrate anything new. This is normal. Run your server now and it should be fine…otherwise you can completely reset the database.
If you want to reset the database and recreate the auth_user table like what you would do when you set up your project at the very beginning, then either do: python manage.py flush to reset the database entirely, or delete the db.sqlite3 file and it will re-generate itself again. If you do this, you will need to make the superuser again with python manage.py createsuperuser
when I did migrate, there is no migrations to apply
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions, sms_setting
Running migrations:
No migrations to apply.
after the make folder by migrations
my migrate command is not working
i did this all also flush database delete migrations folder but still not working
plz tell me solution plz
If you are having an issue with which you are seeking assistance, I would suggest you open a new topic for it.
When you do so, please include all the relevant information.
Identify
the versions of Django and Python you are using
the database engine is being used
the commands you have issued to do this
all tracebacks and error messages you may have received
a brief description of your project’s directory structure
the INSTALLED_APPS section of your settings.py
Also, please do not post images of any of this information. Copy / paste it into the body of your post, surrounded between lines of three backtick - ` characters. (This means you’ll have a line of ```, then the code, error message, traceback, command line and output, etc, then another line of ```.)
python manage.py migrate
Traceback (most recent call last):
File “C:\Users\Emmanuel_coder\Desktop\hms\manage.py”, line 22, in
main()
File “C:\Users\Emmanuel_coder\Desktop\hms\manage.py”, line 18, in main
execute_from_command_line(sys.argv)
File “C:\Users\Emmanuel_coder\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\core\management_init_.py”, line 442, in execute_from_command_line
utility.execute()
File “C:\Users\Emmanuel_coder\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\core\management_init_.py”, line 416, in execute
django.setup()
File “C:\Users\Emmanuel_coder\AppData\Local\Programs\Python\Python312\Lib\site-packages\django_init_.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “C:\Users\Emmanuel_coder\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\apps\registry.py”, line 91, in populate
app_config = AppConfig.create(entry)
^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Emmanuel_coder\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\apps\config.py”, line 193, in create
import_module(entry)
File “C:\Users\Emmanuel_coder\AppData\Local\Programs\Python\Python312\Lib\importlib_init_.py”, line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1387, in _gcd_import
File “”, line 1360, in _find_and_load
File “”, line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘import_export’
If you are having an issue with which you are seeking assistance, I would suggest you open a new topic for it.
When you do so, please include all the information posted above.
Also, when you’re posting code here, enclose it between lines of three backtick - ` characters. This means you’ll have a line of ```, then the code, then another line of ```. (This forces the forum software to keep your code properly formatted.)