Closed endalkh closed 6 months ago
Hi @endalkh. I fetched this branch to my local and tried to start the server but got the following error:
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/Users/dogukanteber/Documents/django/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/Users/dogukanteber/Documents/django/django/core/management/commands/runserver.py", line 125, in inner_run
autoreload.raise_last_exception()
File "/Users/dogukanteber/Documents/django/django/utils/autoreload.py", line 87, in raise_last_exception
raise _exception[1]
File "/Users/dogukanteber/Documents/django/django/core/management/__init__.py", line 394, in execute
autoreload.check_errors(django.setup)()
File "/Users/dogukanteber/Documents/django/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/Users/dogukanteber/Documents/django/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/dogukanteber/Documents/django/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dogukanteber/Documents/django/django/apps/config.py", line 193, in create
import_module(entry)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'django_htmx'
Traceback (most recent call last):
File "/Users/dogukanteber/Documents/django/django/template/utils.py", line 69, in __getitem__
return self._engines[alias]
~~~~~~~~~~~~~^^^^^^^
KeyError: 'backend'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/dogukanteber/Documents/platform/manage.py", line 24, in <module>
main()
File "/Users/dogukanteber/Documents/platform/manage.py", line 20, in main
execute_from_command_line(sys.argv)
File "/Users/dogukanteber/Documents/django/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/Users/dogukanteber/Documents/django/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/dogukanteber/Documents/django/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/Users/dogukanteber/Documents/django/django/core/management/commands/runserver.py", line 74, in execute
super().execute(*args, **options)
File "/Users/dogukanteber/Documents/django/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dogukanteber/Documents/django/django/core/management/commands/runserver.py", line 111, in handle
self.run(**options)
File "/Users/dogukanteber/Documents/django/django/core/management/commands/runserver.py", line 118, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "/Users/dogukanteber/Documents/django/django/utils/autoreload.py", line 671, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "/Users/dogukanteber/Documents/django/django/utils/autoreload.py", line 660, in start_django
reloader.run(django_main_thread)
File "/Users/dogukanteber/Documents/django/django/utils/autoreload.py", line 343, in run
autoreload_started.send(sender=self)
File "/Users/dogukanteber/Documents/django/django/dispatch/dispatcher.py", line 189, in send
response = receiver(signal=self, sender=sender, **named)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dogukanteber/Documents/django/django/template/autoreload.py", line 50, in watch_for_template_changes
for directory in get_template_directories():
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dogukanteber/Documents/django/django/template/autoreload.py", line 16, in get_template_directories
for backend in engines.all():
^^^^^^^^^^^^^
File "/Users/dogukanteber/Documents/django/django/template/utils.py", line 94, in all
return [self[alias] for alias in self]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dogukanteber/Documents/django/django/template/utils.py", line 94, in <listcomp>
return [self[alias] for alias in self]
~~~~^^^^^^^
File "/Users/dogukanteber/Documents/django/django/template/utils.py", line 85, in __getitem__
engine = engine_cls(params)
^^^^^^^^^^^^^^^^^^
File "/Users/dogukanteber/Documents/platform/env/lib/python3.11/site-packages/django_jinja/backend.py", line 174, in __init__
environment_cls = import_string(environment_clspath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dogukanteber/Documents/django/django/utils/module_loading.py", line 30, in import_string
return cached_import(module_path, class_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dogukanteber/Documents/django/django/utils/module_loading.py", line 15, in cached_import
module = import_module(module_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/dogukanteber/Documents/platform/openunited/jinja2.py", line 5, in <module>
from product_management.filters import display_role
File "/Users/dogukanteber/Documents/platform/product_management/filters.py", line 3, in <module>
from security.models import ProductRoleAssignment
File "/Users/dogukanteber/Documents/platform/security/models.py", line 2, in <module>
from django.contrib.auth.models import AbstractUser
File "/Users/dogukanteber/Documents/django/django/contrib/auth/models.py", line 7, in <module>
from django.contrib.contenttypes.models import ContentType
File "/Users/dogukanteber/Documents/django/django/contrib/contenttypes/models.py", line 139, in <module>
class ContentType(models.Model):
File "/Users/dogukanteber/Documents/django/django/db/models/base.py", line 134, in __new__
raise RuntimeError(
RuntimeError: Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Do you experience the same error? Also, can you fix the merge conflict?
Thanks!
backend
Hey @dogukanteber, you forgot to install the requirements, can you please install the requirements inside the requirements.txt? Let me know if you get any issues.
I can’t see the tailwindcss classes I put earlier. I am on my phone. Am I missing something?
I can’t see the tailwindcss classes I put earlier. I am on my phone. Am I missing something?
Alright, mb.
https://www.awesomescreenshot.com/video/26289599?key=4eb7c6fffcf6dff4712e5001ec657dcc