Disami
I was doing customuser which extends from.defualt and.in my.case i want to.generate a username which have a first 3 letters of firstname plus 123 i define a function to.generate and and call inside create user at the customusermanager the problem is in.my admin.panel it says username cant be empty how fix that any help
Nithin
While setuping django
>installed virtualwrapper-win
> created a env
> django-admin –version = runnned this cmd to check if it installed properly
Result
(myenvdjangocm) C:\Users\nithi>django-admin --version
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\nithi\Envs\myenvdjangocm\Scripts\django-admin.exe\__main__.py", line 4, in <module>
from django.core.management import execute_from_command_line
File "C:\Users\nithi\Envs\myenvdjangocm\Lib\site-packages\django\core\management\__init__.py", line 19, in <module>
from django.core.management.base import (
...<4 lines>...
)
File "C:\Users\nithi\Envs\myenvdjangocm\Lib\site-packages\django\core\management\base.py", line 14, in <module>
from django.core import checks
File "C:\Users\nithi\Envs\myenvdjangocm\Lib\site-packages\django\core\checks\__init__.py", line 18, in <module>
import django.core.checks.caches # NOQA isort:skip
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nithi\Envs\myenvdjangocm\Lib\site-packages\django\core\checks\caches.py", line 4, in <module>
from django.core.cache import DEFAULT_CACHE_ALIAS, caches
File "C:\Users\nithi\Envs\myenvdjangocm\Lib\site-packages\django\core\cache\__init__.py", line 67, in <module>
signals.request_finished.connect(close_caches)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "C:\Users\nithi\Envs\myenvdjangocm\Lib\site-packages\django\dispatch\dispatcher.py", line 87, in connect
if settings.configured and settings.DEBUG:
^^^^^^^^^^^^^^
File "C:\Users\nithi\Envs\myenvdjangocm\Lib\site-packages\django\conf\__init__.py", line 91, in __getattr__
val = getattr(_wrapped, name)
~~~~~^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'DEBUG'
Shaheen
I can't run collectstatic on django 5.0.7 getting this error : File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/django/core/files/storage/filesystem.py", line 116, in _save
locks.unlock(fd)
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/django/core/files/locks.py", line 127, in unlock
fcntl.flock(_fd(f), fcntl.LOCK_UN)
OSError: [Errno 38] Function not implemented