adilmohak / django-lms

A learning management system using django web framework. Course add and drop, grade and assessment result management, online quiz, report generator, student and lecturers management, dashboard, and so much more...
MIT License
474 stars 197 forks source link

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

Closed xiaoyingjiejie closed 2 months ago

xiaoyingjiejie commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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

xiaoyingjiejie commented 5 months ago

对于这个 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 commented 5 months ago

谢谢@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 commented 5 months ago

Bulk insertion is currently not supported.

adilmohak commented 5 months ago

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