DD777
How to use Django firebase firestore And how implement get data from firebase for example get google maps data and paint in web google map
Anonymous
Hello I need help how can I add the same authentication to my django subdomain
Anonymous
I am trying to add a subdomain so when I am logged in . In www I am not logged in . In another subdomain
Anonymous
Django authenticate always return none can anyone help me
Enigma
Django authenticate always return none can anyone help me
Send the view code if you did not change the auth model
Anonymous
I want to create 3 users but i dont y it's returning none
Anonymous
Enigma help me
William
anyone help me
Doragonsureiyā
anyone help me
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~90,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
William
a html cannot load my templatetags. Is it need install app in the settings?
Michael the wolf 🐺
Add it in installed apps
Alina
Guys, who knows for what we should use gunicorn and nginx together in digital ocean?
Michael the wolf 🐺
Gunicorn to work as a webserver for django application and nginx for static files and other stuff
𝙏𝙝𝙖𝙣𝙫𝙚𝙚𝙧 𝘼𝙡𝙞
iam having a strange problem. everything was working fine When i create a new view definition in views.py iam not able to set a path for that new view in urls.py. when write views.xxx the new view name wont come in suggestion while all other old ones comes as usual I tried renaming an old view in views.py . But it doesnt update in urls.py. even if i delete a view definition. Iam still getting suggestion of that old view name in urls.py
Tukhtamurod
it is not from the python side i mean, it runs as it's supposed to
𝙏𝙝𝙖𝙣𝙫𝙚𝙚𝙧 𝘼𝙡𝙞
D
How django testing should be done on developer end
Anonymous
Def buyer(request) : if request. Method=='post': Form=registerForm(request.post) : If form. Isvalid() : New=form.save(commit=False) New. Set_password (form.cleaned_data['password'] New. Save() Return render(request, login. Html) Else: Return render(request, reg. Html, {form:form} Else: Form=registerform() Return render(request, reg. Html, {form:form}
Akhil
Anyone here who is gladly help me on my project...if yess then pleased tell me
Anonymous
Enigma plz have look n help
Akhil
Iam stuck on something
Anonymous
Enigma have u got something
Akhil
Exception Type: KeyError Exception value: 'discount'
Enigma
Those are I typed now I have given like what u said
i dont undrestand your code, why you are donig this like that?
Anonymous
I can't send the pic it's not allowinh
Anonymous
If I can contact u in personal I can send the pic of my code
Doragonsureiyā
If I can contact u in personal I can send the pic of my code
To share code or error tracebacks, be considerate and use an online pasting service - here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you post a wall of text message (many lines), delete it quick or you may get a warn strike.
Akhil
@Enigma_be please see your pm
Anonymous
Enigma
Def buyer(request) : if request. Method=='post': Form=registerForm(request.post) : If form. Isvalid() : New=form.save(commit=False) New. Set_password (form.cleaned_data['password'] New. Save() Return render(request, login. Html) Else: Return render(request, reg. Html, {form:form} Else: Form=registerform() Return render(request, reg. Html, {form:form}
Set_password i guess it will get used when you want to change the password not to create a new user if you want to register a new user after validation of the form do like this : new_User = User.objects.create(emai=email,username=username,password=password)
Akhil
what?
Your personal chat I have send a message
Akash
Do we need to create separate apps for, login screen, reset password screen , dashboard and each and every html?
Zey
I am getting this error DoesNotExist at /my-account/ Customers matching query does not exist. When I am filtering user using get method but it should not give error bcz I am login
Zey
I am getting this error DoesNotExist at /my-account/ Customers matching query does not exist. When I am filtering user using get method but it should not give error bcz I am login
This is my view def account(request): user=request.user s=Customers.objects.get(user=request.user) cart=Cart.objects.filter(user=user) a=len(cart) address=AddressForm() b=Address.objects.filter(user=user) c=Order.objects.filter(user=user) return render(request,'my-account.html',{'name':request.user.get_full_name,'username':request.user.username,'email':request.user.email,'s':s,'a':a,'b':b,'address':address,'c':c})
Vinod
I am getting this error DoesNotExist at /my-account/ Customers matching query does not exist. When I am filtering user using get method but it should not give error bcz I am login
Get method return either object or error.. You should use safe method by filtering and first. If first then process your business logic
Zey
That I know but I am logged in so it should return something
Bcz in different view function it is working
Vinod
That I know but I am logged in so it should return something
Your login is not bind to Customer table, may be customer table doesn't have entry which is related to requested user
Akhil
User = int(request.session["userId"])
Akhil
Key error
Zey
I am using django authentication so if I write request.user it should return it .bcz if I am logged in so the user will be in customer table
Vinod
I am using django authentication so if I write request.user it should return it .bcz if I am logged in so the user will be in customer table
In your scenario there is two option either request user Anonymous or Customer doesn't have entry related to request user. debug two option first.
Zey
But I am using filter then everything is working fine
Akhil
Anyone can help me here ??
Zey
So the user is not anonymous
Vinod
Can you share screenshots with filter and request user in debug mode?
Vinod
Depend on your requirement. But you can modify existing admin panel.
Patience
There is open source admin panel theme please. But if you use Django authentication, sessions are managed by Django.
Patience
If you we want to try yours you can do it.
Patience
The best is to create your own.
Patience
It give exact permission and functionality to users you want.
Patience
Yeah, integrate it with Django.
Patience
Will be nice.
kichu
Hey.. I am using ajax to make a request the backend. But the size of response is large and it is crashing the browser. Is there any solution for this?
kichu
Is it media related?
No it's plain text..
Dev
Really,
Renad
I am a beginner and I don’t know why my form isn’t submitting I guess theres is a problem with the post method it doesn’t enter the if statement !
Renad
def signup(request): if request.method == 'POST': form = UserForm(request.POST) if form.is_valid(): form.save() return redirect('home-page') else: form = UserForm() return render(request, 'signup.html', {'form': form})
Renad
<form method="POST" action="">
kichu
mujokhiddin
I would like to ask any resource or help I wanted to shop online