@@AjirogheneSunny All features you mentioned are there, Grade and Assessment results are empty by default and populated automatically once lecturers submit students' scores. For the "profile page catches error" consider creating a new issue on GitHub with a full log
Hi Why do I keep getting this ? I keep getting this error (venv) C:\Users\Charith\Desktop\New lms\django-lms>python manage.py makemigrations Traceback (most recent call last): File "C:\Users\Charith\Desktop\New lms\django-lms\manage.py", line 24, in main() File "C:\Users\Charith\Desktop\New lms\django-lms\manage.py", line 18, in main execute_from_command_line(sys.argv) File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line utility.execute() File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\management\__init__.py", line 436, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\management\base.py", line 412, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\management\base.py", line 453, in execute self.check() File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\management\base.py", line 485, in check all_issues = checks.run_checks( ^^^^^^^^^^^^^^^^^^ File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\checks egistry.py", line 88, in run_checks new_errors = check(app_configs=app_configs, databases=databases) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\checks\model_checks.py", line 18, in check_all_models models = apps.get_models() ^^^^^^^^^^^^^^^^^ File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\apps egistry.py", line 181, in get_models self.check_models_ready() File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\apps egistry.py", line 143, in check_models_ready raise AppRegistryNotReady("Models aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
please i try make migration..... PS C:\Users\Hp\django-lms> python manage.py migrate Traceback (most recent call last): File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection self.connect() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 225, in connect self.connection = self.get_new_connection(conn_params) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 203, in get_new_connection connection = Database.connect(**conn_params) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\psycopg2\__init__.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.OperationalError: invalid integer value "[YOUR_POSTGRES_PORT default is 5432]" for connection option "port" The above exception was the direct cause of the following exception: Traceback (most recent call last): File "manage.py", line 21, in main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line utility.execute() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\__init__.py", line 440, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 414, in run_from_argv self.execute(*args, **cmd_options) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 460, in execute output = self.handle(*args, **options) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 98, in wrapped res = handle_func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\commands\migrate.py", line 91, in handle self.check(databases=[database]) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 487, in check all_issues = checks.run_checks( File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\checks egistry.py", line 88, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\checks\model_checks.py", line 36, in check_all_models errors.extend(model.check(**kwargs)) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\models\base.py", line 1461, in check *cls._check_indexes(databases), File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\models\base.py", line 1864, in _check_indexes connection.features.supports_covering_indexes File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\functional.py", line 49, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\features.py", line 84, in is_postgresql_11 return self.connection.pg_version >= 110000 File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\functional.py", line 49, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 354, in pg_version with self.temporary_connection(): File "C:\Program Files\Python38\lib\contextlib.py", line 113, in __enter__ return next(self.gen) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 639, in temporary_connection with self.cursor() as cursor: File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 284, in cursor return self._cursor() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 260, in _cursor self.ensure_connection() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection self.connect() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection self.connect() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 225, in connect self.connection = self.get_new_connection(conn_params) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 203, in get_new_connection connection = Database.connect(**conn_params) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\psycopg2\__init__.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) django.db.utils.OperationalError: invalid integer value "[YOUR_POSTGRES_PORT default is 5432]" for connection option "port" PS C:\Users\Hp\django-lms>
hey, i am having trouble setting up this project locally, can you please guide! not able to clone it also downloading zip gives access denied error! Thankyou
i tried to follow the setup process but then I am having this error File "C:\Users\Last Level\Desktop\lastlevelLMS\venv\django-lms-main\manage.py", line 5, in import environ File "C:\Users\Last Level\Desktop\lastlevelLMS\venv\Lib\site-packages\environ.py", line 114 raise ValueError, "No frame marked with %s." % fname ^ SyntaxError: invalid syntax
Hello! whenver i try to run the server it produces the same error.. do you know how to fix it? django.db.utils.OperationalError: connection to server at "localhost" (::1), port 5432 failed: FATAL: database "django_sms_data" does not exist
Hey Arianne, you need to create a PostgreSQL database called "django_sms_data" There are several videos on how to install and create a PostgreSQL database
Hi there, I left DB_PORT blank as I want to use the default Postgresql port number, but consider adding it in DB_PORT if your PostgreSQL server port number has changed.
Nice work! I love all the features included in this project. Please boss, I am finding it difficult installing the packages as in "pip install -r requirements.txt" some of the packages will install but when it reaches pillow, and decouple it catches errors
Glad you liked the project, please provide me the full log when trying to install Pillow. Perhaps create a new issue on GitHub so that other folks can also help you. Are u on Windows OS?
I followed the setup exactly how it was suggested, but I ended up getting stuck on the "Pillow" package & django.core.management with these error: File "C:\Users\-\eLMS-SWE\manage.py", line 11, in main from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django' I checked for some quick solutions and they pointed to "not having django installed" etc, but I do have it & have also upgraded it to match the version of my python. I'm just stuck right now and can't manage to run this sadly. I'd love to hear back from you, this project is insane and has some really cool implementations that I wanna check out!
There are a few things you can check: Check your Python environment: Make sure you are running the correct Python environment where Django was installed. Check if Django is installed: Double-check if Django is actually installed by running `pip freeze | grep django` in the terminal or command prompt. If Django is installed, you should see a list of Django packages and their version numbers. Check your virtual environment: If you are using a virtual environment, make sure it is activated and that you have installed Django within the virtual environment. If you have tried all these steps and are still having trouble, try reinstalling Django or creating a new virtual environment to isolate your Python environment.
after i write : python manage.py runserver this errror is coming: File "C:\Users\Administrator\django-lms\manage.py", line 5, in import environ ModuleNotFoundError: No module named 'environ' Plese posper a solution
what does this mean............. what do i do....... it happened at the end of entering "pip install -r requirements.txt". :45: RuntimeWarning: Pillow 9.3.0 does not support Python 3.12 and does not provide prebuilt Windows binaries. We do not recommend building from source on Windows. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for Pillow Failed to build Pillow ERROR: Could not build wheels for Pillow, which is required to install pyproject.toml-based projects
PS C:\Users\Hp\django-lms> python manage.py migrate Traceback (most recent call last): File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection self.connect() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 225, in connect self.connection = self.get_new_connection(conn_params) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 203, in get_new_connection connection = Database.connect(**conn_params) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\psycopg2\__init__.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.OperationalError: invalid integer value "[YOUR_POSTGRES_PORT default is 5432]" for connection option "port" The above exception was the direct cause of the following exception: Traceback (most recent call last): File "manage.py", line 21, in main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line utility.execute() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\__init__.py", line 440, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 414, in run_from_argv self.execute(*args, **cmd_options) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 460, in execute output = self.handle(*args, **options) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 98, in wrapped res = handle_func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\commands\migrate.py", line 91, in handle self.check(databases=[database]) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 487, in check all_issues = checks.run_checks( File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\checks egistry.py", line 88, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\checks\model_checks.py", line 36, in check_all_models errors.extend(model.check(**kwargs)) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\models\base.py", line 1461, in check *cls._check_indexes(databases), File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\models\base.py", line 1864, in _check_indexes connection.features.supports_covering_indexes File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\functional.py", line 49, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\features.py", line 84, in is_postgresql_11 return self.connection.pg_version >= 110000 File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\functional.py", line 49, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 354, in pg_version with self.temporary_connection(): File "C:\Program Files\Python38\lib\contextlib.py", line 113, in __enter__ return next(self.gen) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 639, in temporary_connection with self.cursor() as cursor: File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 284, in cursor return self._cursor() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 260, in _cursor self.ensure_connection() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection self.connect() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection self.connect() File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 225, in connect self.connection = self.get_new_connection(conn_params) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner return func(*args, **kwargs) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 203, in get_new_connection connection = Database.connect(**conn_params) File "c:\Users\Hp\django-lms\.venv\lib\site-packages\psycopg2\__init__.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) django.db.utils.OperationalError: invalid integer value "[YOUR_POSTGRES_PORT default is 5432]" for connection option "port" PS C:\Users\Hp\django-lms> ............what do i do...
@@adilmohak I want to make a project for my "database management system" course .It is actually a learning management system where have features like user management, instructors can share resources, give assignments, study material coursewise in a virtual classroom ,can create a quiz test by timing, any instructors can create competittive programming contests like problem solving and students can get a particular ratings for the contest ,there will also be a code editor to submit the solutions, instructors can track every students progress by rating and after some rating in a range they get a badge, there will be a ranking leaderboard for the contest participants, students can ask any question to the instructors in the comment box. How can i be able to implement this project?Could you give me a little bit hint to add this kinds of contest in my project?
the dependencies cannot download successfully Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [21 lines of output] running egg_info writing psycopg2_binary.egg-info\PKG-INFO writing dependency_links to psycopg2_binary.egg-info\dependency_links.txt writing top-level names to psycopg2_binary.egg-info\top_level.txt Error: pg_config executable not found. pg_config is required to build psycopg2 from source. Please add the directory containing pg_config to the $PATH or specify the full executable path with the option: python setup.py build_ext --pg-config /path/to/pg_config build ... or with the pg_config option in 'setup.cfg'. If you prefer to avoid building psycopg2 from source, please install the PyPI 'psycopg2-binary' package instead. For further information please check the 'doc/src/install.rst' file (also at ). [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. (venv) PS C:\Users\ANKAN\Desktop\django-lms-main>
Thanks for your work. I'm wondering is that still working? I couldn't find the related views when I go /dashboard/ url. I don't know how to create those graphs
I followed the setup exactly how it was suggested, but I ended up getting stuck on: python manage.py makemigrations Traceback (most recent call last): File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\environ\environ.py", line 403, in get_value value = self.ENVIRON[var_name] File "C:\Users\WASHINGTON GUY\AppData\Local\Programs\Python\Python310\lib\os.py", line 680, in __getitem__ raise KeyError(key) from None KeyError: 'DB_NAME' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Learning_Management_System\manage.py", line 23, in main() File "C:\Learning_Management_System\manage.py", line 17, in main execute_from_command_line(sys.argv) File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line utility.execute() File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\management\__init__.py", line 440, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\management\base.py", line 402, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\management\base.py", line 443, in execute self.check() File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\management\base.py", line 475, in check all_issues = checks.run_checks( File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\checks egistry.py", line 88, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\checks\templates.py", line 55, in check_for_template_tags_with_the_same_name for conf in settings.TEMPLATES: File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Learning_Management_System\SMS\settings.py", line 120, in 'NAME': env('DB_NAME'), File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\environ\environ.py", line 197, in __call__ return self.get_value( File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\environ\environ.py", line 407, in get_value raise ImproperlyConfigured(error_msg) from exc django.core.exceptions.ImproperlyConfigured: Set the DB_NAME environment variable
Hey Mohamed, Here are some things you can check: 1. Make sure that the .env file is in the same directory as your manage.py file. 2. Make sure that the variable name in your .env file matches the variable name in your Django settings file. 3. Make sure that the variable values in your .env file are properly formatted. For example, if your database name contains spaces or special characters, you may need to enclose it in quotes or escape the special characters. If none of them works, just ignore environment variables (.env file) and directly configure to your settings.py file
@@arianneyoon7374 Yes, you have to create a PostgreSQL db, the db name can be any name but the db name and the variable DB_NAME value must be the same.
Give that thumbs-up a click
Hi @Adil Mohak can you please mentor me on this project.
@Adil Mohak some features are missing, Grade Result, Assessment result, Add and Drop course and profile page catches error
@@AjirogheneSunny All features you mentioned are there, Grade and Assessment results are empty by default and populated automatically once lecturers submit students' scores. For the "profile page catches error" consider creating a new issue on GitHub with a full log
@@adilmohak hey bro hope you are doing well can i get your social media there are a few things i wanna talk about?
hello adilmohak app,course managment and sms and some other contents are not found
Amazing project to advance your django skill
Thank you and happy coding :)
nice
keep doing it
Thanks a lot
This is wonderful, nice work
Thank you a lot
MashaAllah Allah Barik very nice work am impressed... am a newbie mentor me...
I can't add a student or lecturer it shows error database connected I can create super user can some one help
@adilmohak Can you please guide , how to create database in postgresql and connect it with the project?
GOD BLESS YOUR KIND THOUGHTS 🔥
Hi
Why do I keep getting this ?
I keep getting this error
(venv) C:\Users\Charith\Desktop\New lms\django-lms>python manage.py makemigrations
Traceback (most recent call last):
File "C:\Users\Charith\Desktop\New lms\django-lms\manage.py", line 24, in
main()
File "C:\Users\Charith\Desktop\New lms\django-lms\manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line
utility.execute()
File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\management\__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\management\base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\management\base.py", line 453, in execute
self.check()
File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\management\base.py", line 485, in check
all_issues = checks.run_checks(
^^^^^^^^^^^^^^^^^^
File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\checks
egistry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\core\checks\model_checks.py", line 18, in check_all_models
models = apps.get_models()
^^^^^^^^^^^^^^^^^
File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\apps
egistry.py", line 181, in get_models
self.check_models_ready()
File "C:\Users\Charith\Desktop\New lms\django-lms\venv\Lib\site-packages\django\apps
egistry.py", line 143, in check_models_ready
raise AppRegistryNotReady("Models aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
Nice work. I'm actually finding it difficult to set it up
Good job! I tried it. Keep doing!
if you need any help of a university teacher with the choice of functionality for the system - I am at your service
Can you explain how to create database in postgresql for this project
please i try make migration.....
PS C:\Users\Hp\django-lms> python manage.py migrate
Traceback (most recent call last):
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection
self.connect()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 225, in connect
self.connection = self.get_new_connection(conn_params)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 203, in get_new_connection
connection = Database.connect(**conn_params)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\psycopg2\__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: invalid integer value "[YOUR_POSTGRES_PORT default is 5432]" for connection option "port"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line
utility.execute()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\__init__.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 414, in run_from_argv
self.execute(*args, **cmd_options)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 460, in execute
output = self.handle(*args, **options)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 98, in wrapped
res = handle_func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\commands\migrate.py", line 91, in handle
self.check(databases=[database])
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 487, in check
all_issues = checks.run_checks(
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\checks
egistry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\checks\model_checks.py", line 36, in check_all_models
errors.extend(model.check(**kwargs))
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\models\base.py", line 1461, in check
*cls._check_indexes(databases),
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\models\base.py", line 1864, in _check_indexes
connection.features.supports_covering_indexes
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\functional.py", line 49, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\features.py", line 84, in is_postgresql_11
return self.connection.pg_version >= 110000
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\functional.py", line 49, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 354, in pg_version
with self.temporary_connection():
File "C:\Program Files\Python38\lib\contextlib.py", line 113, in __enter__
return next(self.gen)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 639, in temporary_connection
with self.cursor() as cursor:
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 284, in cursor
return self._cursor()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 260, in _cursor
self.ensure_connection()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection
self.connect()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection
self.connect()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 225, in connect
self.connection = self.get_new_connection(conn_params)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 203, in get_new_connection
connection = Database.connect(**conn_params)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\psycopg2\__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: invalid integer value "[YOUR_POSTGRES_PORT default is 5432]" for connection option "port"
PS C:\Users\Hp\django-lms>
Hii bro ,how can I login as student and lecture ???
Where is the credentials for that , don't have any option in the frontend to sign in new student ?
Was getting an 405 error for logout. I was able to fix it for frontend on my system but not sure how to fix admin login.
I am not getting autogenerated email for student and lectures . Which all files I need to update to get message for my smtp?
It's so amazing! Could you please offer me some instruction to interpret the codes?
hey, i am having trouble setting up this project locally, can you please guide! not able to clone it also downloading zip gives access denied error! Thankyou
When I added student and lecturer, I don't see any accounts werre sent to my gmail
i tried to follow the setup process but then I am having this error
File "C:\Users\Last Level\Desktop\lastlevelLMS\venv\django-lms-main\manage.py", line 5, in
import environ
File "C:\Users\Last Level\Desktop\lastlevelLMS\venv\Lib\site-packages\environ.py", line 114
raise ValueError, "No frame marked with %s." % fname
^
SyntaxError: invalid syntax
Hi Adil, good work, a suggestion to improve it - you can add payment related functions for each course before they enroll.
Hello! whenver i try to run the server it produces the same error.. do you know how to fix it?
django.db.utils.OperationalError: connection to server at "localhost" (::1), port 5432 failed: FATAL: database "django_sms_data" does not exist
Hey Arianne, you need to create a PostgreSQL database called "django_sms_data"
There are several videos on how to install and create a PostgreSQL database
Hi, can I ask you how to create account for student and lecturer? Thank you and wish you all the best!
Hello, styling is not working for me even after doing hard refresh. Should I include % static somewhere? Please help
The below is the error log:
[08/Jan/2024 10:08:47] "GET /favicon.ico HTTP/1.1" 404 6158
[08/Jan/2024 10:10:26] "GET /static/css/font-face.css HTTP/1.1" 404 1911
[08/Jan/2024 10:10:26] "GET /static/css/bootstrap.css HTTP/1.1" 404 1911
[08/Jan/2024 10:10:26] "GET /static/css/style.css HTTP/1.1" 404 1899
[08/Jan/2024 10:32:48] "GET /accounts/login/?next=/ HTTP/1.1" 200 2756
[08/Jan/2024 10:32:48] "GET /static/css/font-face.css HTTP/1.1" 404 1911
[08/Jan/2024 10:32:48] "GET /static/js/jquery-3.3.1.min.js HTTP/1.1" 404 1926
[08/Jan/2024 10:32:48] "GET /static/css/style.css HTTP/1.1" 200 23734
[08/Jan/2024 10:32:48] "GET /static/css/bootstrap.css HTTP/1.1" 404 1911
[08/Jan/2024 10:32:48] "GET /static/fonts/rubik-v14-latin/rubik-v14-latin-300.woff2 HTTP/1.1" 200 15864
[08/Jan/2024 10:32:48] "GET /static/css/style.min.css.map HTTP/1.1" 200 11168
[08/Jan/2024 10:33:32] "GET /accounts/login/?next=/ HTTP/1.1" 200 2756
[08/Jan/2024 10:33:32] "GET /static/css/font-face.css HTTP/1.1" 404 1911
[08/Jan/2024 10:33:32] "GET /static/css/bootstrap.css HTTP/1.1" 404 1911
[08/Jan/2024 10:33:32] "GET /static/js/jquery-3.3.1.min.js HTTP/1.1" 404 1926
Hi, this has been resolved now, try to pull the latest update. Also if you set DEBUG=False you should also run `python manage.py collectstatic`
how did you get the terminal
in visual
I have tried make migration but showing create database pls suggest me how to do make migration and migrate
what is the DB_PORT in .env?
Hi there, I left DB_PORT blank as I want to use the default Postgresql port number, but consider adding it in DB_PORT if your PostgreSQL server port number has changed.
EMAIL_HOST_USER = env('USER_EMAIL')
^^^^^^^^^^^^^^^^^
what should be added here?
No celery moudle name please help fix
Nice work! I love all the features included in this project. Please boss, I am finding it difficult installing the packages as in "pip install -r requirements.txt" some of the packages will install but when it reaches pillow, and decouple it catches errors
Glad you liked the project, please provide me the full log when trying to install Pillow. Perhaps create a new issue on GitHub so that other folks can also help you. Are u on Windows OS?
I followed the setup exactly how it was suggested, but I ended up getting stuck on the "Pillow" package & django.core.management with these error:
File "C:\Users\-\eLMS-SWE\manage.py", line 11, in main from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django'
I checked for some quick solutions and they pointed to "not having django installed" etc, but I do have it & have also upgraded it to match the version of my python. I'm just stuck right now and can't manage to run this sadly.
I'd love to hear back from you, this project is insane and has some really cool implementations that I wanna check out!
There are a few things you can check:
Check your Python environment: Make sure you are running the correct Python environment where Django was installed.
Check if Django is installed: Double-check if Django is actually installed by running `pip freeze | grep django` in the terminal or command prompt. If Django is installed, you should see a list of Django packages and their version numbers.
Check your virtual environment: If you are using a virtual environment, make sure it is activated and that you have installed Django within the virtual environment.
If you have tried all these steps and are still having trouble, try reinstalling Django or creating a new virtual environment to isolate your Python environment.
I run it but how can i link it to a real data base
please i need a guide I'm having problem running it
Sir db name not found you never showed your env finished
after i write : python manage.py runserver
this errror is coming:
File "C:\Users\Administrator\django-lms\manage.py", line 5, in
import environ
ModuleNotFoundError: No module named 'environ'
Plese posper a solution
simply run `pip install -r requirements.txt`
Student & lecturer can not be added. Dashboard page is not working. it says "SMTP" error.
I’m facing the same error too
Can anybody help me
It’s urgent and important for me
what does this mean............. what do i do....... it happened at the end of entering "pip install -r requirements.txt".
:45: RuntimeWarning: Pillow 9.3.0 does not support Python 3.12 and
does not provide prebuilt Windows binaries. We do not recommend building from source on Windows.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for Pillow
Failed to build Pillow
ERROR: Could not build wheels for Pillow, which is required to install pyproject.toml-based projects
Hello, please create a new issue on GitHub
Probably your python version is not compatible with the Pillow, the project requires Python-3.8 and above
OK downloaded 3.8 I'll check and let you know
@@adilmohak sir db name not found when run makemigration
PS C:\Users\Hp\django-lms> python manage.py migrate
Traceback (most recent call last):
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection
self.connect()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 225, in connect
self.connection = self.get_new_connection(conn_params)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 203, in get_new_connection
connection = Database.connect(**conn_params)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\psycopg2\__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: invalid integer value "[YOUR_POSTGRES_PORT default is 5432]" for connection option "port"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line
utility.execute()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\__init__.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 414, in run_from_argv
self.execute(*args, **cmd_options)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 460, in execute
output = self.handle(*args, **options)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 98, in wrapped
res = handle_func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\commands\migrate.py", line 91, in handle
self.check(databases=[database])
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\management\base.py", line 487, in check
all_issues = checks.run_checks(
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\checks
egistry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\core\checks\model_checks.py", line 36, in check_all_models
errors.extend(model.check(**kwargs))
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\models\base.py", line 1461, in check
*cls._check_indexes(databases),
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\models\base.py", line 1864, in _check_indexes
connection.features.supports_covering_indexes
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\functional.py", line 49, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\features.py", line 84, in is_postgresql_11
return self.connection.pg_version >= 110000
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\functional.py", line 49, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 354, in pg_version
with self.temporary_connection():
File "C:\Program Files\Python38\lib\contextlib.py", line 113, in __enter__
return next(self.gen)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 639, in temporary_connection
with self.cursor() as cursor:
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 284, in cursor
return self._cursor()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 260, in _cursor
self.ensure_connection()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection
self.connect()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 244, in ensure_connection
self.connect()
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\base\base.py", line 225, in connect
self.connection = self.get_new_connection(conn_params)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\django\db\backends\postgresql\base.py", line 203, in get_new_connection
connection = Database.connect(**conn_params)
File "c:\Users\Hp\django-lms\.venv\lib\site-packages\psycopg2\__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: invalid integer value "[YOUR_POSTGRES_PORT default is 5432]" for connection option "port"
PS C:\Users\Hp\django-lms> ............what do i do...
Db port is blank??
How to create database in postgresql can you explain?
Can i add a "problem solving contest" feature in that kinds of project? How?
Hey, can you clarify your question for me please
@@adilmohak I want to make a project for my "database management system" course .It is actually a learning management system where have features like user management, instructors can share resources, give assignments, study material coursewise in a virtual classroom ,can create a quiz test by timing, any instructors can create competittive programming contests like problem solving and students can get a particular ratings for the contest ,there will also be a code editor to submit the solutions, instructors can track every students progress by rating and after some rating in a range they get a badge, there will be a ranking leaderboard for the contest participants, students can ask any question to the instructors in the comment box. How can i be able to implement this project?Could you give me a little bit hint to add this kinds of contest in my project?
How can i login with user???
how to instal git
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 103: invalid continuation byte
Hi, create an issue on the GitHub repo with full traceback
When i run pip install -r requirements.txt command I'm getting many errors
Consider creating an issue with the errors
would you please tell me how to setup the secret key in .env file
On a Python shell run this code
from django.core.management import utils
print(utils.get_random_secret_key())
does this project include database
Hello dear, the styling is not working for me please why?
Try hard refresh and If the error persists, check the console to see if Django is returning a 404 error for static files such as styles.css.
what is ID number and password for Sign in please
Hey! The students and lectures, I'm not able to create them! Can you fix it!
Hey, can you please provide me the error log? It would be helpful for me to help you.
hey , i am getting the same error , is it solved for you now? help me out pls
Can you share your ER model of the project ??
hiibroh
Helo sir, please your make integration LTI tools, on lms.
Thanks
Hello Sir, thanks so much for your good video ..
what is the password for the students and staff please
which python version use the project?
Python 3.8+
why does it not work on command prompt?
Hi, could you elaborate more on that please, what is not working on command prompt?
i messaged you on gmail
@@adilmohakreply please!
Hello sir how can we know the password of database
everything is deprecated, better you update it
makemigration is not done
Can we run in windows ?
Of course, you can run it on Windows, I also used Windows when building the project.
the dependencies cannot download successfully
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
running egg_info
writing psycopg2_binary.egg-info\PKG-INFO
writing dependency_links to psycopg2_binary.egg-info\dependency_links.txt
writing top-level names to psycopg2_binary.egg-info\top_level.txt
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
(venv) PS C:\Users\ANKAN\Desktop\django-lms-main>
Hello Adil. Can I use and develop this project for free?
Thanks for your work. I'm wondering is that still working? I couldn't find the related views when I go /dashboard/ url. I don't know how to create those graphs
Hi, the project is still working fine, please check your browser console if there is any error on the dashboard page
@@adilmohak hi i have this error help please UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 103: invalid continuation byte
Please create an issue on the GitHub repo, that way other folks may also help you.
heart
can i get you on teamview?
Send me DM on Telegram @adilmohak
How to set Student & Lecturers password ?
The id and password of students and lecturers are generated automatically and sent to their email address, we don't set id and password manually
@@adilmohak I am not getting autogenerated email . Which all files I need to update to get message for my smtp?
@@adilmohak hello sir ,please provide me a solution for this ...many peoples are facing the same issue now
wait are you habesha
awo habesha negn😆🤫
I followed the setup exactly how it was suggested, but I ended up getting stuck on: python manage.py makemigrations
Traceback (most recent call last):
File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\environ\environ.py", line 403, in get_value
value = self.ENVIRON[var_name]
File "C:\Users\WASHINGTON GUY\AppData\Local\Programs\Python\Python310\lib\os.py", line 680, in __getitem__
raise KeyError(key) from None
KeyError: 'DB_NAME'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Learning_Management_System\manage.py", line 23, in
main()
File "C:\Learning_Management_System\manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line
utility.execute()
File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\management\__init__.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\management\base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\management\base.py", line 443, in execute
self.check()
File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\management\base.py", line 475, in check
all_issues = checks.run_checks(
File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\checks
egistry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\django\core\checks\templates.py", line 55, in check_for_template_tags_with_the_same_name
for conf in settings.TEMPLATES:
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Learning_Management_System\SMS\settings.py", line 120, in
'NAME': env('DB_NAME'),
File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\environ\environ.py", line 197, in __call__
return self.get_value(
File "C:\Users\WASHINGTON GUY\PycharmProjects\pythonProject\venv\lib\site-packages\environ\environ.py", line 407, in get_value
raise ImproperlyConfigured(error_msg) from exc
django.core.exceptions.ImproperlyConfigured: Set the DB_NAME environment variable
Hey Mohamed,
Here are some things you can check:
1. Make sure that the .env file is in the same directory as your manage.py file.
2. Make sure that the variable name in your .env file matches the variable name in your Django settings file.
3. Make sure that the variable values in your .env file are properly formatted. For example, if your database name contains spaces or special characters, you may need to enclose it in quotes or escape the special characters.
If none of them works, just ignore environment variables (.env file) and directly configure to your settings.py file
@@adilmohak Thanks very much, I made a mistake by creating the .env file in the app (SMS) directory.
@@adilmohak do we have to nake our own db? because DB_NAME=django_sms_data is an error
@@arianneyoon7374 Yes, you have to create a PostgreSQL db, the db name can be any name but the db name and the variable DB_NAME value must be the same.
@@adilmohak how to create a database in postgresql
hi brother, can i have your social media accounts pls?
Hi there, you can find my contacts on the GitHub link github.com/adilmohak/django-lms
@@adilmohak ok jazakallahu khairan, i'll contact you soon in sha Allah
@@adilmohak and by the way, i run your code, but the static files does not work, i dont know why