fafadiatech / django-ft-news-site

This is a re-usable News Site Application for use in Django projects
1 stars 1 forks source link

I Suppose Database error. #1

Open ShashanksjJain opened 4 years ago

ShashanksjJain commented 4 years ago

raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: Specifying a namespace in include() without providing an app_name is not supported. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead.


This error has occurred at a migration time.

sudo-talon commented 3 years ago

at the pint of migration Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/home/fred/projects/army_env/lib/python3.8/site-packages/django/core/management/init.py", line 363, in execute_from_command_line utility.execute() File "/home/fred/projects/army_env/lib/python3.8/site-packages/django/core/management/init.py", line 337, in execute django.setup() File "/home/fred/projects/army_env/lib/python3.8/site-packages/django/init.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/home/fred/projects/army_env/lib/python3.8/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/home/fred/projects/army_env/lib/python3.8/site-packages/django/apps/config.py", line 94, in create module = import_module(entry) File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 783, in exec_module File "", line 219, in _call_with_frames_removed File "/home/fred/projects/army_env/lib/python3.8/site-packages/django/contrib/admin/init.py", line 4, in from django.contrib.admin.filters import ( File "/home/fred/projects/army_env/lib/python3.8/site-packages/django/contrib/admin/filters.py", line 10, in from django.contrib.admin.options import IncorrectLookupParameters File "/home/fred/projects/army_env/lib/python3.8/site-packages/django/contrib/admin/options.py", line 12, in from django.contrib.admin import helpers, widgets File "/home/fred/projects/army_env/lib/python3.8/site-packages/django/contrib/admin/widgets.py", line 151 '%s=%s' % (k, v) for k, v in params.items(), ^ SyntaxError: Generator expression must be parenthesized