R V Bandgar
Vaibhav
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 %}
Eternity
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 ?
Akintola
Seen
Maq
Seen
is there any is_visible kind of variable?
Muflone
Akintola
It's seems it written is Polska or what can't read it
Akintola
Maq
Akintola
Have you migrated your database
Maq
Maq
and yes, User model is in pannel app, don’t ask why, thats legacy
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
Maq
Muflone
Maq
yes
Maq
Muflone
have you changed the logged user?
Muflone
ok, it wasn't the superuser then and your user is lacking permissions for the model then
Maq
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
Anas
Charly
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
AmirAli
How to connect a ForeignKey to multiple tables
Doragonsureiyā
Maxim
AmirAli
I found something but it is old
https://docs.djangoproject.com/en/1.8/ref/contrib/contenttypes/#generic-relations
AmirAli
Maxim
AmirAli
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.
Muflone
Kumar Shreyansh
Asqarjon
How can I download Django
Asqarjon
Please tell me
SaidBoy
is there a tool to make our code clean in django
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
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
Charly
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.
Charly
Jennifer
Ok one sec
Faraz
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