Hemant
Idk how exactly it works
T4P4N
Yes that's why I texted here first about the sqlite binary
its binary but not encrypted , anyone can read it with sqlite3 browser.
Hemant
this is the one i was talkin about
Okay The binary file was never tracked by git Now if i create a new binary file after making all migrations and then create a superuser The localhost website (cloned one) opens but I can't login
Naveen
How to get category based subcategory and sub sub category
Naveen
Foreign key works single category and subcategory
Naveen
Double underscore means
Naveen
Any example
Hemant
this is why i said clone prj in local machine & do your changes in db & push to production.
IDK what to change in cloned project I just cloned it, did a migrate command and created a superuser But I am not able to login with that superuser
toygar
Double underscore means
google "django dunder" or "django double underscore"
Hemant
There is one SECRET_KEY variable in cloned proj as well
Naveen
Ok
T4P4N
Double underscore means
https://docs.djangoproject.com/en/4.0/topics/db/queries/#lookups-that-span-relationships
Naveen
Thankyou @T4P4N
Hemant
It's in my private repository
T4P4N
nope
Than what're you waiting for?
Hemant
IDK what to change in cloned project I just cloned it, did a migrate command and created a superuser But I am not able to login with that superuser
Am just testing how someone else can use it locally And I am not able to login with a superuser if I create one
T4P4N
Thankyou @T4P4N
use django shell for testing queries.
Naveen
Another question In my authentication system I can able to create only one super user and I can't able to login staff user in admin panel
Naveen
Based on the role
T4P4N
Am just testing how someone else can use it locally And I am not able to login with a superuser if I create one
i think i cant able to understand your question maybe, please write it again in layman's terms.
T4P4N
Another question In my authentication system I can able to create only one super user and I can't able to login staff user in admin panel
you gotta create permission groups for that, & then add staff member to that permission group.
Naveen
Yeah I done it even though it's not working
Hemant
Let's assume I make my repo public And you will see below files app/ project/ manage.py
T4P4N
If you will clone this repo how will you run this locally
python manage.py makemigrations && python manage.py migrate && python manage.py runserver
Hemant
python manage.py makemigrations && python manage.py migrate && python manage.py runserver
ok I tried the same Now the first page is a login page And there's no user and superuser because I never provided binary file A normal user will press "Register" button on the login page but it's also not able to create user
Hemant
I found something User is being created successfully Error is not in user creation Error is Exception Type: OperationalError Exception Value: no such table: app_task Exception Location: /home/hemant/.local/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py, line 416, in execute I am able to login in localhost/admin
Hemant
.
Yes I do not want to share my sql file that have a superuser which is also be used in production
T4P4N
This is problem right here^ & remove it from gitignore file & git add db.sqlite3 & git commit -m 'added db' & git push origin heroku
Hemant
if someone want to use it locally and give some contribution
Hemant
I never gave them a sqlite.db file
T4P4N
Yes I do not want to share my sql file that have a superuser which is also be used in production
either use a remotedb server like postgres or mariadb / push your sqlitedb to heroku
Naveen
What is best way to authenticate via sms otp what package to be used
Hemant
context['count'] = context['tasks'].filter(complete=False).count() This line is highlighted
Hemant
which is trying to count tasks in database
Hemant
!paste
Doragonsureiyā
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.
Hemant
T4P4N
which is trying to count tasks in database
db isn't even there, even if it is, there no migrations ran on it.
T4P4N
Devendran
❤️
Hemant
have tried the steps that i told you earlier ?
I did not make any app on heroku for the current app
Hemant
Need to find steps for a django project with sqlite3
T4P4N
I did not make any app on heroku for the current app
man atleast try something before asking such questions.
Hemant
but I can't host the app from github and push sqlite3 separately?
Hello Kitty
Did anyone know why Django debugging toolbar is not working? there are no any errors appearing
T4P4N
TRY IT OUT FIRST
Hemant
man atleast try something before asking such questions.
I was just about to release the app but then I encountered the db.sqlite file concept going to deploy now by pushing sqlite file to private repo
T4P4N
but I can't host the app from github and push sqlite3 separately?
YOU'LL EVENTUALLY KNOW WHAT ARE YOU DOING! AS SIMPLE AS THAT
T4P4N
I agree with your point
Thanks! This is how i learn btw.
Hemant
R.
WHY ARE YOU SCREAMING? 😱
LOL, I like this bot. 😁
T4P4N
WHY ARE YOU SCREAMING? 😱
come on, he haven't even tried what he was talkin about.
Hemant
btw web: python manage.py runserver 0.0.0.0:8000 would be enough for Procfile?
Hemant
it's a simple to-do application using django and sqlite3
T4P4N
btw web: python manage.py runserver 0.0.0.0:8000 would be enough for Procfile?
follow a god damn tutorial stop asking silly questions. & read the docs
Hemant
going going
Hemant
it's updating heroku cli
Hemant
I should have stopped it
Naveen
@T4P4N can you please explain otp authentication
Naveen
Anybody explain time base otp authentication
Naveen
Am unable catch clearly on google
T4P4N
@T4P4N can you please explain otp authentication
I haven't tried it myself yet! so can't really tell.
Naveen
You tried any social authentication
Naveen
How to store extra data in database
Naveen
In Facebook doesn't give any details it show your connection is not secure