ngdream
i have deployed my website on heroku
ngdream
its a social network but a got an error 500 when i cry to post something but strangely it works well in local
ngdream
this is my post's model
ngdream
plz help me
ngdream
its a social network but a got an error 500 when i cry to post something but strangely it works well in local
its weird but i only got this error when i have added this line : f=self.image.read(100) (when i have cried to read in file in my model )
ngdream
help me plz 🥲
Maxim
any can work
https://t.me/django/196548
ngdream
http://dpaste.org/R8S7
NAMIKAZE
Can someone share his/her code with email URL confirmation?
https://django-allauth.readthedocs.io/en/latest/installation.html
Брат
https://django-allauth.readthedocs.io/en/latest/installation.html
I've already done that, thx for your help anyway
Брат
I really appreciate that\
Брат
https://django-allauth.readthedocs.io/en/latest/installation.html
Oh man, I've just read the docs of allauth and Im literally stunned! Thank you so much, it is better than my code I wrote!!! Thank you one more time
SN
I need a help in my project How could I get current user in models.py and set it as field default value
SN
Login user
Maxim
Login user
default value for what?
Priya
Any one here who integrated social media account such as instagram twitter spotify ??
Harshiv
Hello everyone, can anyone tell me that how to link class id="#name" with url.py to give the direct path to that class id
Harshiv
??
Priya
Any one here who integrated social media account such as instagram twitter spotify ??
Here is my doubt: I have a link which Facebook is provided and also I have mention redirect url in this link as well as Facebook developers account . When I hit the link then one instagram login page comes up and ask me to allow the permission to access user details. After all the procedure I get the access token ,user id and username of the Instagram user . but in request.user I get the anonymous user so I don't know how to save this information in database .bcoz I don't have user object.
who am i
Can anybody help me in django
Doragonsureiyā
Can anybody help me in django
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
SN
default value for what?
I will explain briefly I have a model name job And it has a field job_no, In that I want to set the default value as year + short name + no For example:- 22SM_109
pavan
I have to give action in template(suppose template contains name id address) to make update in submitted details, backend script is implemented how can i connect with views and html in url
Mohd Zaid
how to convert html to pdf with css and js ? weasyprint module does not convert js
Guru
Can any one help how add custom sms gateway OTP integration
Gaurav
How to rerun celery task if i got an error from an api request For e.g I want to do a post request to an api I want to call that api until it gets succedd in positive request How can i configure celery to do so
SN
Hi Can anyone please help Django admin save_as not working when work with django-nested-inline
M
Hello i have problem with make migrations it keeps take migrations from an old project whats the problem pls
W
Hi guys, gm. Ive just realized that on my ongoing project I have this metrics due to github statistics: HTML 35.9% JavaScript 28.9% Python 24.8% CSS 10.4%
W
So far, I want to know if Im over using JS in the proyect
W
For example, I am validating some things in js and not in the backend. Do I have to validate in the backend and not in frontend? Whats yuor thoughs?
Paul
how can someone tell without looking at the project, over-using is subjective to everyone, what if your project requires this exact amount of usage of javascript that is only for you to decide
W
how can someone tell without looking at the project, over-using is subjective to everyone, what if your project requires this exact amount of usage of javascript that is only for you to decide
Hi paul, i understand your point. Im asking in a general way, For example, process like validating some inputs in a form, Is it better to perform the process in the backend or via js? Wich is faster, safest? Is it bad practice to validate them twice ( in the BE and in the FE as well) ?
MoonZack
Hi everyone, I am finding it difficult pip installing channels_redis on Windows
SuperN00b
Hi everyone, I am finding it difficult pip installing channels_redis on Windows
Better go linux or mac, windows sucks since it always mising something when installing libs with pip
MoonZack
Better go linux or mac, windows sucks since it always mising something when installing libs with pip
Thanks for the reply but I don't use Linux or Mac at the moment, just wanna know if there's any work around
Sam
Hi everyone, I am finding it difficult pip installing channels_redis on Windows
You can try installing it on a fresh virtual environment or changing the version of either channels_redis or python preferably downgrade to a lower version
Брат
Hi guys! Can anyone explain usage of CoreAPI in simple words? I couldn't understand the docs.
Kuntal
FieldError at /post/create/ Cannot resolve keyword 'user' into field. Choices are: DOB, basetable, city, coins, country, customuser_ptr, customuser_ptr_id, date_joined, email, first_name, foodpost, gender, groups, id, is_active, is_staff, is_superuser, last_login, last_name, logentry, password, phone_number, pin, profile_photo, state, user_permissions
Kuntal
i got this error
Kuntal
how to solve
(⌐■-■)
No user column present in ur table.
(⌐■-■)
U need to create a user field in models
(⌐■-■)
DOB, basetable, city, coins, country, customuser_ptr, customuser_ptr_id, date_joined, email, first_name, foodpost, gender, groups, id, is_active, is_staff, is_superuser, last_login, last_name, logentry, password, phone_number, pin, profile_photo, state, user_permissions These are the columns in ur table
Kuntal
i was created custom user model
Kuntal
in createpost model user with ForeignKey like that user = models.ForeignKey(Donner, on_delete=models.CASCADE)
Kuntal
help of custom user i created donner
Nwosu
Hi Guys, Good evening. please can anybody direct me to a resource for generating pdf file from a html file in django
Ankit Anand
Any can help me how to send data using loggers in log file
Ankit Anand
Data means var
Ankit Anand
Yes
Ankit Anand
How to implement logger to send sam data in logger file not cmd
Sourav
how can I pass data from views.py to models.py? can anyone help me ? it's urgent.
Doragonsureiyā
how can I pass data from views.py to models.py? can anyone help me ? it's urgent.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Rahul
how can I pass data from views.py to models.py? can anyone help me ? it's urgent.
What data do u need to pass. Please elaborate your query. Ideally views.py should only contain the logical part of the service.
Avvi Rapper
Hi all....I have created a model form which has a field to upload image. I want to save image named as <userid+filename>. How can I get the user id of the current user
Avvi Rapper
https://gist.github.com/KKhushhalR2405/089453f397397e1d24cccb59a7dcfe7c This is my model.py file
Avvi Rapper
https://gist.github.com/KKhushhalR2405/089453f397397e1d24cccb59a7dcfe7c This is my model.py file
In line 2....I am getting "None"...as the output of str(user.id)
Avvi Rapper
Ok...I got it👍
Anonymous
Hi all.. I have hosted my project on a server using gunicorn and nginx it working fine but I'm getting cors errors in browser
Anonymous
Yes
Leon
is there a way to edit/update stored template cache? without deleting the cache
Anonymous
I don't know
.......
hey guys I'm trying to do a deploy