Morteza
Anonymous
Isn't it
Anonymous
Morteza
Anonymous
Morteza
Morteza
cruelwarrior
GG
Mohan
How to create a table in the database when pressing add table button on the web page in django
Anonymous
Hoper
Chikal
is cloudlinux in problem ?
because my hosting provider tell me that cloudlinux has a problem so my python3 in hosting cant run well and it's sure affecting my django app.. :(
Charly
Chikal
Mohan
Raj
Can someone tell me vs code to view source code of inbuilt class in django like PasswordResetDoneView
Eng.
I am a software engineer, when I learned Django I found a great opportunity to manage software components into "apps".
Do you have articles that explain what is the best way to distribute app?
Thank you
Егор
Shazeb
can someone help, my website went down
Shazeb
and i can't understand what is going on
Shazeb
it was working fine and then i'm getting 500 err
Maxim
Егор
Set DEBUG to True and show us what exactly happened. Otherwise, we can’t help you.
Shazeb
What to provide please tell me, i'll provide here
Егор
Man please read the rules before texting in groups like this.
Егор
Shazeb
Reverse for 'recipe-details' with keyword arguments '{'slug': ''}' not found. 1 pattern(s) tried: ['recipes/(?P<slug>[^/]+)/\\Z']
Егор
So find the code it refers to and send it to us via pastebin.com or something.
Shazeb
Fixed it
Shazeb
Thanks guys
Shazeb
It was empty slug error
Anonymous
how to create Modelform ?
Ruzan
Ruzan
Prathmesh
How to create login in django without using django authentication system??
Morteza
Prathmesh
Morteza
Prathmesh
Means just using model data and not using authentication and authorization
Prathmesh
Not like user
Mirco
Morteza
Prathmesh
But I have made user.
Not I want to made worker login
Morteza
Prathmesh
Yes
Morteza
Yes
this is not a good way
Prathmesh
But I'm not getting it on youtube
cruelwarrior
So in your view you can check for username and password from request and see if it matches user in database via model. This is not a good way to authenticate, but sure you can do it if eager to do so.
Prathmesh
Prathmesh
Prathmesh
So I have to create it in accounts right??
Prathmesh
??
Prathmesh
Btw thanks @imortezaw and cruelwarrior
cruelwarrior
use username = request.data.get('username', '') to get username, same for password
cruelwarrior
then read user object from User.objects.get(username=username)
cruelwarrior
verify password is same and then return success if success failure if failure
Morteza
So I have to create it in accounts right??
i cant understand whats you mean
but you don't need 2 Users management system it's not a good approach at all, just use groups and boolean fields to seperate the users.
Morteza
Anonymous
Mates, is Django For Everybody by Dr.Chuck = a good course?
Doragonsureiyā
Sardor_B_Mamirov
raise AppRegistryNotReady("Models aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet
Sardor_B_Mamirov
anrays
Hello guys
Why when change DEBUG for false dont working my static file
Can help for me , thanks,?
Mirco
Anonymous
Static files not loading while deploying django website on digital ocean
It works perfectly when hosted locally.
Charly
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
basir davaji
Which database is suitable for working with Django?