Мark
Like that
Sergey
Hi. Can anybody give any help with such thing. Can I prevent RelatedObjDoesNotExists (or smth like that) with getattr(obj, 'relname', None) if relname is one2one field?
Alex
demon
Sergey
yes I can, but I think it can be done in more easier way🙂
demon
I don't think there is a built in way to do that
demon
Maybe filter and get the first value ?
Joseph
Мark
Мark
30 seconds ago
Artem
Help) Django chat((((
Netra
@Doragonsureiya_bot hi. I am working on Django restframework only.. For creating rest apis..
Doragonsureiyā
Artem
I want write chat, but not understand how make it
Alex
Artem
Yes
Alex
Django +channels +rest framework + any fronted tech of your choice
Phansivang
Hello guys know how to work accepting payment with django ?
Alex
Phansivang
Alex
yes
Matthew
How can i make my slug in post model to save in name in another model
Eduardo
Are you guys ok?
I'm a little lost on api testing.
To contextualize:
I have a simple model
class VacancyPartner(TimestampModel, models.Model):
name = models.CharField(max_length=50)
address = models.CharField(max_length=100)
partner = models.ForeignKey(Partner, related_name="partner_vacancy", on_delete=models.PROTECT)
class Meta:
db_table = "vacancy_partners"
unique_together = ('name', 'partner')
Eduardo
the question is:
What are the simplest tests I can do?
What would be the best way to think about testing in this situation?
Eduardo
this api receives the following json
{
"name":"test42",
"address":"othertest"
}
Matthew
The way my project works is that i have pictures and name to each picture which i post through django admin, when you click on any picture it takes you to a form, i want to get the name of the picture which was clicked when the form is saved
Eduardo
Maybe it's quite simple. But I never did tests. It may be interesting to have some recommendations for content and reading for this type of situation.
Rutherford
I'm trying to use a custom signup form with django_allauth. This form will have additional first_name and last_name fields.
The problem arrises when i click on signup, i get the error
django.db.utils.ProgrammingError: relation "allauth_emailaddress" does not exist
LINE 1: SELECT (1) AS "a" FROM "allauth_emailaddress" WHERE UPPER("a...
Heres my signup form.
class CustomSignupForm(SignupForm):
email = forms.EmailField(max_length=255, required=True)
first_name = forms.CharField(max_length=100, required=True)
last_name = forms.CharField(max_length=100, required=True)
def save(self, request):
user = super(CustomSignupForm, self).save(request)
user.first_name = self.cleaned_data['first_name']
user.last_name= self.cleanedD_data['last_name']
user.email = self.cleaned_data['email']
return user
^
R
Rutherford
I think you haven’t apply migration
I've run makemigrations and migrate.
makemigrations says there's nothing new and then migrate also says all changes have been applied.
Matthew
Rutherford
R
R
What was the issue
Gagan
Anyone on how to setup django user authentication with AD or centrify
AℤℐℤℬℰᏦ ☝️
Why jinja2 doesnt show data, if everything in Django.models is completely true ?
cj
No one
Hello
İ'm new in Django and İ have a question.
İf we learn ORM do we need to learn SQL query ?
cj
No one
demon
Yup
No one
OceanMan
Hello Devs!
When serializable in the place of PhoneNumberField
Can we use serializers.PhoneNumberField or serializers.CharField?
Valentin
AℤℐℤℬℰᏦ ☝️
cj
Is there anything replacement ?
why don't you just simply use DTL? why are you using jinja2?
is there any reason for that? isn't DTL enough for your work with Django?
AℤℐℤℬℰᏦ ☝️
Lucky
Please help me anyone
How to create offer management system in django
Lucky
Redeem coins management system also
Lucky
Tqs advance
Matthew
The way my project works is that i have pictures and name to each picture which i post through django admin, when you click on any picture it takes you to a form, i want to get the name of the picture which was clicked when the form is saved(please who can help me)
Vel
demon
Alex
Matthew
demon
🤨 you should share code https://dpaste.org
Emmanuel
Please does anyone here understand frappeframework
Azzani
hi guys , hopefully every is doing great
Azzani
i have published a site for online YouTube video downloader , { https://ytv.pythonanywhere.com } , everything is working Good But if i choice to download the video with high Resolution the video will be without sounds ,
here's my views
Azzani
https://dpaste.org/RDh6A
Azzani
if anyone can help me please , because this is the only problem i have , the 360 quality and the audio are good , just the high quality that one when's i downloaded it come but there's no sounds!
D
Guys, can u help me? Error on the server. Locally everything is ok. All in requirements.txt added.
Exception value:
unable to import name "LiqPay" from "liqpay" (/tmp/8da48ba6f95b6c5/antenv/lib/python3.8/site-packages/liqpay/__init__.py
RK
friends anybody can help How to Deployement Django Project ..
RK
in AWS
RK
I am using Python 3.10Version
Eng Mohammed
Goodnight everyone
Can you help me please 🙏
How to define custom system check in django
Shivam
Anyone please tell me what is the best way to learn Django and resources??
Neo
Neo
Why do you not check? WHY WHY WHY? WHY DO YOU NOT CHECK? Why do you not google? This is basic stuff. My 90 year old grandmother would be able to google this
Neo
There's no better resource than from the guys that built the damn thing
Alex