web
Hello i am a beginner with django , i did blog class in models.py ;then want my informations in this class Bloger be in admin page ..it is work ; now i put another class in admin.py and i have used class Meta to show me timestamp and update of a blog but nothing inside the main class ! But only def _str__(self) work ! Class meta not do any thing !
web
How i can put my codes photos in this channel to explain my problem !?
Anders (izzno / gooood) 🇳🇴
No photos of code, paste it somewhere...
Anders (izzno / gooood) 🇳🇴
like pastebin
web
No photos of code, paste it somewhere...
Please how i could share photos of my problem here !? I need a site to upload my photos to share it in this group ! Thanks
web
Use imgur.com
Ok thanks .. i will try it
Doragonsureiyā
Ok thanks .. i will try it
You're welcome! 😊
Anchit
My django app has a url of the form /whatever/<scheme>. It works when I access it via the url, but how to I link to it from a template html?
Maksim
{ % url 'url_name' %}
Sumit
I am trying to parse feeds from different publications , I created a dropdown in my base.html, can anyone here tell me how to change my news_feed() so that the dropdown can work
Sumit
https://pastebin.com/sMXp4LV4
Anonymous
Hey can anyone tell me how do I get the current logged in user instance as I created an object through form then I want to assign the user to current logged in user..
Anonymous
user is connect to foreign key to auth user
Anonymous
Oh..I got another error.. Method Not Allowed(POST) with 405 status with form
Mirco
Oh..I got another error.. Method Not Allowed(POST) with 405 status with form
Share your code, it's easier to let u know what's wrong
Anonymous
Ok
Gaurav
https://pastebin.com/Gepj5nqt
Mirco
https://pastebin.com/Gepj5nqt
Create a virtualenv, activate it and install django
Gaurav
Create a virtualenv, activate it and install django
already enabled...look at the code... i ned to add PYTHONPATH
Mirco
already enabled...look at the code... i ned to add PYTHONPATH
Did u run pip install django when you have activated virtualenv ?
Gaurav
Did u run pip install django when you have activated virtualenv ?
yeah.... I have run many django projects in this venv..... Today I updated ubuntu 16.04 to 18.04.....after update I am getting this error
Gaurav
Run pip freeze | grep django
in the same directory?
Mirco
Yup
Gaurav
Yup
okay..
Gaurav
Yup
pip wont work because python path is not set
Mirco
Ok so try to reinstall pip for you python version Or if u don't wanna have lots of headaches , install pipenv and pyenv and everything's gonna be easier
Anonymous
Share your code, it's easier to let u know what's wrong
https://github.com/Abhishek9760/diary-django.git
Anonymous
Also I m having issue with uploading a templates folder to github..it's is saying uploaded file should be less than 25 mb but it's 4kb in size 🤐
{°_°}
Is allauth secured
{°_°}
?
Anonymous
Auth app is working fine
Anonymous
Problem in mylife app I think
Ghorz
Is allauth secured
Yes, but not completely, you can extend allauth. Add your own methods. You can add recaptcha too. All auth depends on Django authentication. Feel free to extend it. I extended mine.
Ghorz
For those in region that use paystack payment system, I've written a django plugin that will ease your integration. https://ghorz.com/blog/Tutorial/2019-09-01/14/how-to-integrate-paystack-payment-to-django/
Gaurav
i want to use OTP to verify user's phone number. I have follwing code, but dont know how to use it....
Gaurav
https://pastebin.com/iW3raX8F
Ghorz
You have to integrate it at signup
Gaurav
Check twilio
Yeah...i have used twilio...but i want to do that manually
Ghorz
Yeah...i have used twilio...but i want to do that manually
You'll write custom sign up or hse allauth and overwrite the default sign up
Gaurav
You'll write custom sign up or hse allauth and overwrite the default sign up
I want to use model sign up page...but with verified contact number
Gaurav
Write custom sign up method
If I write custom sign up...how would I verify phone number?
Gaurav
I don't want to use 3rd party API
Ghorz
If I write custom sign up...how would I verify phone number?
You'll direct your sign up on how to do it
Ghorz
More like email verification
Ghorz
It's same
Gaurav
How to do email verification?
Ghorz
It's either you stick to email or phone verification
Gaurav
I will use email verification to sign up...and user later can add their phone number...
Ghorz
A Web search will do, I believe the standards for programming is, Code before you ask.
Gaurav
🙏🙏🙏
Ghorz
🙏🙏🙏
https://duckduckgo.com/?q=django+phone+verification&ia=web
Ghorz
🙏🙏🙏
https://github.com/CuriousLearner/django-phone-verify/blob/master/docs/usage.rst
Siddharth
Should i start django after python basics?
Gaurav
Should i start django after python basics?
if you'r interested web development
Cristhian
hello friends
Cristhian
i am new in Django
Cristhian
I want to learn it because I want to do a project that implements artificial intelligence in the backend
Cristhian
any advice?
Cristhian
I come from working with nodejs
Fil
Ok..
Cristhian
what lib do you recommend to connect mongodb with django ?
Leo
what lib do you recommend to connect mongodb with django ?
I connect Django with mongodb using djongo.