inchidi
Get PyCharm, Support Django.
Anonymous
django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'users.urls' what is error?
Anonymous
can i change my date format to yyyy-mm-dd now its default to mm-dd-yyy
Anonymous
can i change my date format to yyyy-mm-dd now its default to mm-dd-yyy
{{ value|date:"D d M Y" }} let's chech this https://docs.djangoproject.com/en/3.1/ref/templates/builtins/
Anonymous
i think i isnt helped
do you use this format in template?
Anonymous
yeah
Anonymous
yeah
it works for template {{ Your_value|date:"Y - M - d" }}
Samoiddin
Hi there I wanna do create nested loop in Django rest . Nested loop shows created in the django admin . But I can't create nested loop in API
Hasankazemi
hi , i am iranian , How to fix this error?Created when adding a column to a user table expected string or bytes-like object
Patience
Anyway I need help too, is anyone who have free project which has working selery library?
Ayobami
hi , i am iranian , How to fix this error?Created when adding a column to a user table expected string or bytes-like object
Delete your database and the files in migration except the _init_.py and then try again
Mirco
Anyway I need help too, is anyone who have free project which has working selery library?
it's celery not selery just follow the documentation about Django integration
Patience
Anyway I am new on it.
Patience
It is celery, I was wrong.
Mirco
I tried but couldn't work.
What it doesn't work ?
Patience
What it doesn't work ?
I want to run periodic task every hour, it doesn't run as I expected. Sometimes it give me errors, let me give you.
Patience
.... I will share you codes if continue to give me it.
Alina
Hey! Somebody know how to fix it?
Alina
gunicorn.socket: Failed with result 'service-start-limit-hit'
Enigma
?
Alina
i guess i have. i am new in web
Alina
where it should be in project?
Alina
url you mean?
Alina
gunicorn.socket - gunicorn socket Loaded: loaded (/etc/systemd/system/gunicorn.socket; enabled; vendor preset: enabled) Active: failed (Result: service-start-limit-hit) since Thu 2021-04-01 11:43:02 UTC; 49s ago
Patience
Is any group for Django jobs updates?
Anki|Important texts only
Vsc will automatically detect and activate the virtual environment for you
No it didn't I had to env_name\Scripts\activate To activate my environment 😁👍
Enigma
where it should be in project?
right in your folder that your manage.py is
Rushabh
How to write group by and distinct in Django admin queries?
Ram
Hello guys
Anki|Important texts only
Anki|Important texts only
I my case it activate automatically
Did you do any specific settings for that
Ram
I have Kali Linux, is it possible to install postgres 9.6 I have installed that but I'm not able to open that in shell
Raj
Please any one help
https://youtu.be/PCEwAvZSUpA
Doragonsureiyā
I have Kali Linux, is it possible to install postgres 9.6 I have installed that but I'm not able to open that in shell
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
190030260
i wrote a view to display a plot in a template but it is displaying "AxesSubplot(0.1275,0.11;0.77x0.77)" instead plot graph any one help me how to get image of plot
manav
Did you do any specific settings for that
Are you using external terminal or inbuilt terminal of vsc
M
lib
plz share the code snap if i can help
Mukesh
Hey can any one tell me that how can I convert queryset(result of django-filter) to pdf, I also want to keep the actual return render as usual.
Mukesh
I am using function based views and "get" request to get queryset
Chethan
Can I get weather app using Django project
Chethan
Thank you sir
Chethan
Chethan
When I may get it
manav
Inbuilt
Are you on the latest version
Richard
Through API i think
Enigma
Hey can any one tell me that how can I convert queryset(result of django-filter) to pdf, I also want to keep the actual return render as usual.
Filter the queryset Unlist the values Write in a file Convert it to pdf Save If there is no functuion or lib for it
Enigma
Hi. In my project each user has a wallet that can purchase some product if their balance is enough... so when the user tries to purchase i want to check that if he has enough balance i used a form for taking the count of the product and after that i will check it . i used "form.add_error" for raising error if the user has not enough balance but it dose not work can any one help me with that?
Enigma
forms.py : count = forms.IntegerField(widget=forms.NumberInput(attrs={'placeholder': 'Count'}))
Enigma
views.py: form.add_error('count', "You don't have enough balance to purchase")
Ram
Hello guys can anyone help me how to solve this issue django.db.utils.OperationalError: could not open extension control file "/usr/share/postgresql/11/extension/postgis.control": No such file or directory
Zey
How to set default value in choice field?
Ing. Mario Tamayo
Any tutorial or doc about implementing square api with django
Skilz
Please any tutorial on Django bitnami lightsail deployment?? I read those bitnami and aws documentation but still having issues on apache!!
Anonymous
Hi, I am new to Django, need some assistance
Devu
Hello this is django update operation in user model
Devu
def update_user(request): id = request.POST['id'] if request.method == "POST": user = User.objects.get(id=id) form = UserForm(request.POST, instance=user) if form.is_valid(): form.save() form = UserForm() return HttpResponseRedirect('/') else: user = User.objects.get(id=id) form = UserForm(request.POST, instance=user) return render(request, 'put.html', {'form': form })
Devu
Bt it gives multivalueDictKeyError at line Id = request.post['id']
Rushabh
Bt it gives multivalueDictKeyError at line Id = request.post['id']
Why u use this just use request.user to get that user. But at the end it's up to you.
Devu
Id will be taken as input
Zey
How to set default value in choice field?
Rushabh
Each user have there unique Id am I right...? And you want to update their profile...
Devu
Yes