Karan
reportlab or wkhtml2pdf
Thanks let me check it
Anonymous
I changed the Django-allAuth template path, but it is not working. from allauth.account.views import LoginView, SignupView, PasswordResetView from django.urls import path app_name = 'accounts' class MySignupView(SignupView): template_name = 'loginRegister.html' class MyLoginView(LoginView): template_name = 'loginRegister.html' class MyPasswordResetView(PasswordResetView): template_name = 'loginRegister.html' urlpatterns = [ path('signup/', MySignupView.as_view(), name='account_signup'), path('login/', MyLoginView.as_view(), name='account_login'), path('password_reset/', MyPasswordResetView.as_view(), name='account_reset_password'), ]
Hodonou
Hi good evening, i'm trying to load some lists of images but it refuses, Someone know why? Here is my code: {% load static %} {% block content %} {% for product in products %} <img src="{{product.imagesURL}}" alt=""> <h2>{{product.title}}</h2> <h4>{{product.price}}</h4> {% endfor %} {% endblock content %}
V
Any materials to learn django?
Doragonsureiyā
Any materials to learn django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Bhargav
If I got html code from frontend side. But HTML code has both gujrati and English language paragraphs. So in django how I can convert that code into pdf and mail to it to receivers mail
Maq
hello everyone, please send help!!!) my model is not displayed in admin 4 models are registered, but only 2(BotPhrase and Achievement) are displayed in actual admin panel https://pastebin.com/5G3qnF5U https://imgur.com/a/EiTm5Xm
Akintola
Have you registered them ?
Maq
Have you registered them ?
yeah, I registered 4 of the models but only 2 are displayed, I added screenshot to the question
Akintola
Seen
Maq
Seen
is there any is_visible kind of variable?
Akintola
It's seems it written is Polska or what can't read it
Maq
is your application included in settings.py ?
yes, sure, the other 2 are displayed
Muflone
Installed apps ... Yeah
show the file and also the models
Akintola
Have you migrated your database
Maq
Have you migrated your database
I definetly changed the User model, but not the other one, I believe
Maq
show the file and also the models
https://pastebin.com/GYebBmFx settings.py https://pastebin.com/d2uurivz pannel/models.py
Maq
and yes, User model is in pannel app, don’t ask why, thats legacy
Maq
Have you migrated your database
am I supposed to do something after migration in order for this to work?
Muflone
I cannot spot the error, maybe you could try to replace each @api.register with admin.site.register(ModelName, ModelNameAdmin)
Muflone
is the user enabled to use the models?
Maq
is the user enabled to use the models?
how do I check if the user has permission to use the models?
Maq
yes
Muflone
have you changed the logged user?
Maq
have you changed the logged user?
yes, I though I was logged as superuser, thank you so much, this was such a pain in the ass
Muflone
ok, it wasn't the superuser then and your user is lacking permissions for the model then
Maq
ok, it wasn't the superuser then and your user is lacking permissions for the model then
yes, how do I set the right ones? through th db? i’m kinda new to this
Muflone
from the admin settings for the user or the group
Maq
ok, thank you very very much
Muflone
you're welcome
Maq
you're welcome
once again thank you, is there any chance u could help some more? I have trouble with getting media files the interesting part is: it is being deleted, yet downloading it from admin panel results in 404 error https://imgur.com/a/EiTm5Xm error screenshot https://pastebin.com/GYebBmFx settings.py https://pastebin.com/0KGUmb8h url.py
Kareem
I just purchased a vps server, is there a guide i can follow to deploy django app?
Anas
Kareem
Did you dockerize the project ? Add nginx , gunicorn ?
I didn't use docker Isn't nginx and gunicorn installed and configured on server?
Kareem
Do you know a tutorial for it
Kareem
Step by step guide for server setup at least
Arash
Hello , I had a question that I know may not be specific to Django, but I felt that I could ask it in the group... I uploaded the Django project to the cloud server and connected the domain and everything works fine and I wanted to add ssl to it and I used certbot (It didn't give me an error) and the changes were set in my nginx config file Now the https requests that I send give an SSL connect error https://dpaste.org/yUJbi
Anas
Do you know a tutorial for it
See realpython website you will find a good tutorial
AmirAli
How to connect a ForeignKey to multiple tables
Maxim
How to connect a ForeignKey to multiple tables
multiple tables - multiple ForeignKey fields
AmirAli
I found something but it is old https://docs.djangoproject.com/en/1.8/ref/contrib/contenttypes/#generic-relations
Maxim
I found something but it is old https://docs.djangoproject.com/en/1.8/ref/contrib/contenttypes/#generic-relations
https://docs.djangoproject.com/en/4.2/ref/contrib/contenttypes/#generic-relations
Dysprosium
Hello C:\Users\Lenovo\Desktop\django-joo>django-admin startproject dj-joo 'django-admin' is not recognized as an internal or external command, operable program or batch file.
Asqarjon
How can I download Django
Asqarjon
Please tell me
Павел
Please tell me
Pip install django
Muflone
How can I download Django
Follow the basic tutorial, you won't get far without a guide
SaidBoy
is there a tool to make our code clean in django
Mirco
is there a tool to make our code clean in django
Black formatter It will keep your python code clean and aligned with standards
Maq
Please send help) I have trouble with getting media files via admin panel the interesting part is: it is being deleted, yet downloading it from admin panel results in 404 error https://imgur.com/a/EiTm5Xm error screenshot https://pastebin.com/GYebBmFx settings.py https://pastebin.com/0KGUmb8h url.py
Dysprosium
Hi, did you do pip install django inside your environment?
No i didn't That's right now Thanks
Ms
Hi guyz . I'm using Django-filter with drf My question is how could i make query with or not and , for example if i have two field i want to make or between each of theme
Tohirjon Zaripov
Hi guys! Is there anybody integrate video streaming with python like Zoom, Jitsi meet or other?
Jennifer
hello. I have created a basic Django project where I've created html pages in templates folder in project folder. There I've created some forms that will take input data and the data will be received in views, using get method. I have successfully rendered the html pages to the view, and I tried to display the input data back on the same html page upon submission but for some reason, the get method is not working. the data is not getting received in the view, but it is visible in the url. and its not getting displayed in the html page also. pls help
Jennifer
How can I send the code? Since it's multiple files
Doragonsureiyā
How can I send the code? Since it's multiple files
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.
Jennifer
Ok one sec
Jennifer
im sorry. i used dpaste and i pasted the code there. what should i do after that.
Jennifer
https://dpaste.org/Q3K6i
Jennifer
this is my views page