Heroku error "! Authentication failure" - django

I have deployed a django app on heroku and it is working fine. But I want to run the command "python manage.py makemigrations" but it is giving me authentication error.
I am using command: "heroku run python manage.py makemigrations"
I have used my credentials correctly as I am able to use "git push heroku master".
Terminal output:
$ heroku run python manage.py makemigrations
Running `python manage.py makemigrations` attached to terminal... up, run.3514
! Authentication error

Related

Heroku Application Error while Deploying Django application

enter image description here
Please help me with this error
It may be due to your static files.
Try the following:
heroku config:set DISABLE_COLLECTSTATIC=1
git push heroku main
heroku run python manage.py migrate
heroku run 'bower install --config.interactive=false;grunt
prep;python
manage.py collectstatic --noinput'
heroku config:unset DISABLE_COLLECTSTATIC
heroku run python manage.py collectstatic
Hope this helps.
I can also see the console says: could not find module 'whitenoise'. Have you set your requirements.txt properly?

"Error: Couldn't find that app. › › Error ID: not_found." when running heroku commands in console

Heroku sees my app in the list of apps, but I can't access it with any commands. I constantly getting the error "Couldn't find that app". I tried all these:
heroku run python manage.py migrate --app app-generator
heroku run python manage.py migrate
heroku run python manage.py createsuperuser --app app-generator
Although when I try to run commands for 'heroku apps' in my console, says I have one app called my-api. I followed other similar questions and tried the git remote commands beforehand but still failed. Example:
heroku apps
heroku git:remote -app app-generator
If it's another user's heroku project. Then you need to use "... -a name" where name should be name of the team, not the name of the app. Login to heroku and find the team name from the dropdown.And run commands again.

Error while running the django server in eclipse

Type 'manage.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
[django]
check
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
makemigrations
migrate
runserver
sendtestemail
shell
showmigrations
sqlflush
sqlmigrate
sqlsequencereset
squashmigrations
startapp
startproject
test
testserver
Note that only Django core commands are listed as settings are not properly configured (error: The SECRET_KEY setting must not be empty.).
You need to include the “runserver” flag in what ever setting determines to run manage.py to actually start the server.
E.g
python manage.py runserver
Or to run on a specific port.
python manage.py runserver 1234

Heroku - When I run 'heroku run python manage.py migrate' I get an error

When I try to migrate my project to heroku by running the above error, I get the following:
C:\Users\{MyUser}\Desktop\My Site\mysite>heroku run python manage.py migrate
Running python manage.py migrate on ? {project name}... !
! Cannot run one-off process at this time. Please try again later.
C:\Users\{MyUser}\Desktop\My Site\mysite>heroku run python manage.py makemigrations
Running python manage.py makemigrations on ? {project name}... !
! Cannot run one-off process at this time. Please try again later.
I have tried 'makemigrations' as well.
Is this an error? On my end or Heroku's?

Deploying Django app to Heroku via CircleCI: How to migrate database?

How can I run python manage.py makemigrations and python manage.py migrate automatically when deploying a Django app to Heroku via CircleCI. It seems all commands run local to CircleCI, but not on the deployed application in production.
Is there a way?
python manage.py makemigrations should be running locally, and you may commit the migration files along with the code.
Regaridng the migrations, open your Procfile and add this line: release: python manage.py migrate.
This will tell Heroku to migrate before deploying a new version of your code.