Nirav
You have to modify accordingly
Doragonsureiyā
Study
What are you talking about?
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
You have to modify accordingly
I want like stackoverflow is website for questions and answers
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'
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'
Alik
http://dpaste.org/MaE9 im using django modeltranslation and this is the code in translation.py
༆𖤍ཽ🇻 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.
༆𖤍ཽ🇻 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
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
Which password did you put the last time ?
Leave it I am adding new user with other name and different pass still same error
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
How to add log in and sign up process in django app
Anonymous
Leave it I am adding new user with other name and different pass still same error
So try to delete the migrations folder and the database file, and run python manage.py migrate again. It may help.
Anonymous
sounds like very bad advice
Not really. Sometimes I did it with my own projects, and fixed the problem. So...🤷🏽‍♂️
cj
Yes always show that the password is too common even change that password many times still shows same error
you need to read about the password protection in Django, you have to move things in settings and you'll get rid of that error, but also you'll lose some security measures for your users of you do that... you'd better use a stronger password instead
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...
cj
Look at what he says.
that's because django's password protection works for EVERY user that is gonna be added/modified ¯\_(ツ)_/¯
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
cj
How to achieve this
learn how django works, and you'll find out
Anonymous
Is django good for e commerce?
cj
Is django good for e commerce?
yes, but you'd better want to use Odoo instead
Anonymous
cj
Is odoo language or framework
use Google and find out yourself ¯\_(ツ)_/¯
Anonymous
Is it easy to understand&deploy
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ā
Hi i have an answer... Where can i learn to use django in the best way?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Bug_23¶
If on linux please check that the port your nginx web server is using is allowed in ufw.
Bug_23¶
I'm using default port 80
Can you try to check your gunicorn logs by running service gunicorn status?
Maxim
If on linux please check that the port your nginx web server is using is allowed in ufw.
error 502 clearly says that it is not a closed port nging, because 502 returns exactly nginx
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¶
error 502 clearly says that it is not a closed port nging, because 502 returns exactly nginx
True. Thanks for the insight. Looks like its a dependency problem
Bug_23¶
Your virtualenvironment require status module. Try pip install
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
Doragonsureiyā
Hi guys how to fix 'no time zone found with key utc 'error plz help me i'm beginner in django
To share code or error tracebacks, use a pasting service, like: - https://linkode.org - https://dpaste.org
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?
Anshu
Hey, is it possible to notify the client if some data Changes in server?
Or use django channels to display the changes in real time, and send the data via channel layer using signal
Alik
https://linkode.org/#HF2BWi2qClQCznrUixXg46
Alik
any help would be appreciated
Maxim
Alik
in the link
Alik
issue description?
so im getting error saying that the page was not found
Maxim
in the link
so you reduce the chance of someone clicking on the link and increase the chance of getting a warning