saleor / saleor-dashboard

A GraphQL-powered, single-page dashboard application for Saleor.
BSD 3-Clause "New" or "Revised" License
820 stars 1.08k forks source link

where to setup the sign in email and password?[Bug]: #4714

Open liwenz opened 6 months ago

liwenz commented 6 months ago

Description of the issue

How to setup the sign in email and password? I guess in saleor core ADMIN_EMAIL="zxxxxx@hotmail.com" ADMIN_PASS="123", which is in the saleor core. but fail

Steps to reproduce the problem

in ubuntu 22, 1: start saleor core(Debug=true SSL=false): python manage.py runserver Starting development server at http://127.0.0.1:8000/ Next.js 14.0.4

2: start storefront, (saleor) leon@leon-MacBookPro:~/storefront$ npm run dev check it works well 3: start dashboard (saleor) leon@leon-MacBookPro:~/saleor-dashboard$ npm run dev http://localhost:9000/ sign in email and password I think ADMIN_EMAIL="zxxxxx@hotmail.com" ADMIN_PASS="123", which is in the saleor core. but it's wrong where to setup the email and password?

What did you expect to happen?

I hope to know where to setup the email and password, then I could sign in the dashboard

Additional information

No response

Environment

Browser and version: …chrom OS and version: …ubuntu 22 Dashboard version: …saleor-dashboard@3.20.0-dev build-types Core version: … version = "3.20.0-a.0" March 09, 2024 - 23:31:14 Django version 3.2.25,

DustinBracy commented 6 months ago

I believe the admin superuser is needed to log into the dashboard for the first time. If you are using docker/docker compose, you can run the following (assuming your core is named api): docker compose run --rm api python3 manage.py createsuperuser

Otherwise, just run python manage.py createsuperuser and follow the prompts.

This is pulled straight from the self-hosted installation docs here: https://docs.saleor.io/docs/3.x/setup/docker-compose