Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I encountered some problems logging in to the page:http://127.0.0.1:8000/accounts/login/ #26

Closed
xiaoyingjiejie opened this issue Feb 4, 2024 · 6 comments

Comments

@xiaoyingjiejie
Copy link

What's my id number and keyword?
DB_NAME=student grade
DB_USER=
DB_PASSWORD=
DB_HOST=localhost
DB_PORT=5432
USER_EMAIL=
USER_PASSWORD=
DEBUG=True
SECRET_KEY=

@RazaSaleem
Copy link

For this xiaoyingjiejie
you need to install the PostgreSQL Database then there it will ask for the initial username and user password, in which you will create DB with any name you want and DB_USER and DB_PASSWORD, after having that database you have to create a superuser for yourself self to login

python manage.py createsuperuser

after this command in your terminal, it will as you the username and password those will be your user ID and password for signing in.

@adilmohak
Copy link
Owner

Thank you @RazaSaleem
@xiaoyingjiejie let us know if you need further help.

@xiaoyingjiejie
Copy link
Author

对于这个 xiaoyingjiejie, 你需要安装 PostgreSQL 数据库,然后它会要求输入初始用户名和用户密码,在其中你将使用你想要的任何名称以及 DB_USER 和 DB_PASSWORD 创建数据库,在拥有该数据库之后,你必须为其创建一个超级用户自己自行登录

python manage.py createsuperuser

在终端中执行此命令后,它将作为您的用户名和密码,这些将是您用于登录的用户 ID 和密码。

Thank you very much! I got it. If the writer can write this step into the readme, it will avoid the problems that arise for beginners like me.

@xiaoyingjiejie
Copy link
Author

谢谢@RazaSaleem @xiaoyingjiejie如果您需要进一步的帮助,请告诉我们。

Honestly, this program is very useful for me as an English teacher. And I am very interested in python. There is another question:
6班期中期末考试成绩.xlsx
副本6班期中期末考试成绩.csv

How do I add student names and grades in bulk, via Python or PostgreSQL, or via Django Web? Could
you please help me?

@adilmohak
Copy link
Owner

Bulk insertion is currently not supported.

@adilmohak
Copy link
Owner

Bulk insertion by means using a CSV/excel file to create multiple students? And also using CSV/excel to submit their results/scores?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants