Nirav
You have to modify accordingly
Doragonsureiyā
Study
What are you talking about?
Shubham
File "C:\Users\Shubham Savarn\AppData\Local\Programs\Python\Python310\lib\xml\etree\ElementInclude.py", line 136, in _include
if e.tag == XINCLUDE_INCLUDE:
AttributeError: 'str' object has no attribute 'tag'
Shubham
getting this error
Shubham
how to resolve it
Shubham
from xml.etree.ElementInclude import include
from django.contrib import admin
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('home.urls')),
]
Shubham
project urls
Shubham
from django.contrib import admin
from django.urls import path
from home import views
urlpatterns = [
path("",views.index, name='home')
]
Shubham
app urls
yusof
Hey guys
I've django package and i want to write test for it.
But i can't run package itself and run test.
What im doing now is that i installed package on project and run test from project.
I know its wrong but don't know what to do.
Alik
File "/home/asus/PycharmProjects/djangoProject1/venv/lib/python3.8/site-packages/django/db/models/options.py", line 610, in get_field
raise FieldDoesNotExist("%s has no field named '%s'" % (self.object_name, field_name))
django.core.exceptions.FieldDoesNotExist: Category has no field named 'n'
Alik
Sherzod
Hello! Can you guys help me with this?
Sherzod
File "C:\Users\GCT\Desktop\apiproject\env\lib\site-packages\django\db\models\sql\query.py", line 1268, in build_filter
arg, value = filter_expr
ValueError: too many values to unpack (expected 2)
[22/Jan/2022 17:55:33] "GET /api/ HTTP/1.1" 500 123342
Sherzod
I cant make an apiview
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
Alik
File "/home/asus/PycharmProjects/djangoProject1/venv/lib/python3.8/site-packages/django/db/models/options.py", line 610, in get_field
raise FieldDoesNotExist("%s has no field named '%s'" % (self.object_name, field_name))
django.core.exceptions.FieldDoesNotExist: Category has no field named 'n'
Anonymous
Alik
http://dpaste.org/MaE9 im using django modeltranslation and this is the code in translation.py
Alik
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
I am unable to add user in django panel.
Anyone 🙏 can help
Doragonsureiyā
Your question is not related to Django.
If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Anonymous
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
Did you get any error message ?
Yes always show that the password is too common even change that password many times still shows same error
Anonymous
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
How to add log in and sign up process in django app
Maxim
cj
Anonymous
cj
I do
so... why are you giving that nonsense and bad advice? to delete mitigations and database? really? for just that single thing that can be worked around moving just 1 line of code in settings file?
go read this: https://docs.djangoproject.com/en/4.0/topics/auth/passwords/
Anonymous
I wanted to ask him to try a password which is stronger. But...
Anonymous
cj
Look at what he says.
that's because django's password protection works for EVERY user that is gonna be added/modified
¯\_(ツ)_/¯
cj
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
Anonymous
Anonymous
Is django good for e commerce?
Anonymous
Anonymous
Is it easy to understand&deploy
Anonymous
Andr3WasNot
Hi i have an answer...
Where can i learn to use django in the best way?
Anurag
Hello everyone , I am working on a project in which I have to make user authentication and ....a blog app which is a small part of the main project ....I am asked to make APIs using django rest framework so that it can be accessed by the frontend developer ....where should I start ??
Doragonsureiyā
Bug_23¶
If on linux please check that the port your nginx web server is using is allowed in ufw.
Groot
Groot
Can you try to check your gunicorn logs by running service gunicorn status?
[2022-01-22 18:17:23 +0000] [32667] [INFO] Starting gunicorn 20.1.0
[2022-01-22 18:17:23 +0000] [32667] [INFO] Listening at: http://127.0.0.1:8000 (32667)
[2022-01-22 18:17:23 +0000] [32667] [INFO] Using worker: sync
[2022-01-22 18:17:23 +0000] [32668] [INFO] Booting worker with pid: 32668
[2022-01-22 18:17:23 +0000] [32668] [ERROR] Exception in worker process
...
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'status'
[2022-01-22 18:17:23 +0000] [32668] [INFO] Worker exiting (pid: 32668)
[2022-01-22 18:17:23 +0000] [32667] [INFO] Shutting down: Master
[2022-01-22 18:17:23 +0000] [32667] [INFO] Reason: Worker failed to boot.
Bug_23¶
Bug_23¶
Bug_23¶
Your virtualenvironment require status module. Try pip install
Andr3WasNot
Bug_23¶
Yes pipenv install status
Jainish
I am making a job portal in django
Any ideas to discuss ?
Mayu
Email thru OTP and verification use
Mayu
how to code successful
Эндейл
Hi guys how to fix 'no time zone found with key utc 'error plz help me i'm beginner in django
GG
Paste code
Kene
Hi guys,
I'm working on a requisition system using Django, and I want to implement a feature that allows the admin to set up rules. Instead of having to add a new feature for the tiniest of works, I want the admin to just add that as a rule, something similar to what Gmail does with filters.
Basically a statement, condition, and action kinda pair.
For example:
FOR statement (all users, userId is less than, username starts with, etc.) WHERE condition (userID is equal to, date is less than, username starts with, etc.) PERFORM an action (delete user, assign user to new group, etc.)
I am struggling with the logic for saving and retrieving this. Seeing that the statement, condition, and action pair will always change, how do I store these rules to DB and test against the rules while retrieving?
Thanks
pavan
hii guys,i have a text area I'd in template and i want to add data with that id into an excel sheet column.how can i get it?
ShuvamTheBeast
Hey, is it possible to notify the client if some data Changes in server?
Hasan
Alik
https://linkode.org/#HF2BWi2qClQCznrUixXg46
Alik
any help would be appreciated
Maxim
Alik
in the link
Maxim
in the link
so you reduce the chance of someone clicking on the link and increase the chance of getting a warning
Alik