Molham Jumaa
<form method="POST" action=""> <div class="mb-3"> {% csrf_token %} <div> {{form.username.label}} {{form.username}} </div> <div> {{form.password1.label}} {{form.password1}} </div> <div> {{form.password2.label}} {{form.password2}} </div> <button type="submit" class="btn btn-primary">Submit</button> {{form.errors}} </form>
Molham Jumaa
i used it and it works
nyctophile
And still the change I proposed is not there
I did and it did not work and try another which is said in this group
Charly
I did and it did not work and try another which is said in this group
Unless you show it we don't know if you did it right
Charly
but whatever, I don't know why you refuse to show it
Charly
good luck
Maxim
not working 🫡🫡
the information capacity of this message is zero saying that something doesn’t work and not saying how it manifests itself is equivalent to saying nothing
nyctophile
but whatever, I don't know why you refuse to show it
https://linkode.org/#zRkx0BnTjh5nVNV9YdXmf3
Charly
https://linkode.org/#zRkx0BnTjh5nVNV9YdXmf3
that comma shouldn't be there
Charly
and show what does it print
Molham Jumaa
https://linkode.org/#zRkx0BnTjh5nVNV9YdXmf3
https://linkode.org/#wwIM70r8DqO6vRakaPPYH1
Molham Jumaa
try this
nyctophile
and show what does it print
https://ibb.co/0hWPz0c
nyctophile
try this
I do not why but this did not work too
TonFutures 💎
Hi friends
TonFutures 💎
In my login page When I use it and I enter the wrong password, it shows me an error After I refresh the page, my request is POST If it should be GET It seems to send the same form again
TonFutures 💎
@login_excluded(home_url = '/Home/') def SignIn(request) :     if request.method == 'POST' :         form = SignIn_Form(request.POST)         if form.is_valid() :             username = form.cleaned_data['username']             password = form.cleaned_data['password']             user = authenticate(request, username = username, password = password)             if user is not None :                 login(request, user)                 messages.success(request, 'You have succesfully signed in.')                 return redirect('Home')             else :                 messages.error(request, 'Invalid username or password!')                 return redirect(request.path)     form = SignIn_Form()     return render(request, 'SignIn.html', {'form' : form})
Zu
hi guys, i am stack with 503 error, the error come from my hosting provider, when i run my program in localhost there is no error.
Leonardo
@login_excluded(home_url = '/Home/') def SignIn(request) :     if request.method == 'POST' :         form = SignIn_Form(request.POST)         if form.is_valid() :             username = form.cleaned_data['username']             password = form.cleaned_data['password']             user = authenticate(request, username = username, password = password)             if user is not None :                 login(request, user)                 messages.success(request, 'You have succesfully signed in.')                 return redirect('Home')             else :                 messages.error(request, 'Invalid username or password!')                 return redirect(request.path)     form = SignIn_Form()     return render(request, 'SignIn.html', {'form' : form})
See you redirect forme
Maxim
hi guys, i am stack with 503 error, the error come from my hosting provider, when i run my program in localhost there is no error.
https://www.google.com/search?q=django+http+503 http://catb.org/~esr/faqs/smart-questions.html#intro
Hamid
Hi
Hamid
I have project in dicom
Hamid
Anybody is that do the same project
Issa N'golo
Hello world! I want to know, if I update my code on the server, should I also restart the celery processes even if I haven't touched any celery tasks in my code?
Nishanth Siraj
Among rabbit mq and celery which is best in django
cj
Among rabbit mq and celery which is best in django
best for what, exactly... each one have a different use case
Nishanth Siraj
Chat project
Pedro
hi guys
Pedro
I need some help... I'm using django rest and i use inspectdb to create my model.py... when i'm creating my queryset, i get this error:(1054, "Unknown column 'minha_tabela.id' in 'field list'")... My table doens't have a id column, anybody know how to fix it?
Charly
Chat project
None of them are directly related with chat rooms
Pedro
I can't change DB structure...
Tamerlan
İf you now for sure you do migrations correctly
Tamerlan
İf you now for sure you do migrations correctly
When you do migrate any some error appears on the terminal?
Pedro
I used that --fake option
Pedro
My migrate worked, but when i'm create me queryset i used models.MyTable.objects.all()... and django return that i need a 'id' cokumn
Hossein
Hi Has anyone here used django-dynamic-scraper? What should I do for a crawler as a service with django? https://django-dynamic-scraper.readthedocs.io/en/latest/
Shaheen
Does Anyone know how to add authentication credentials without using "postman" only using drf build in api interface ?
Alexander
Win32com.client has no attribute couninitialize
Alexander
Win32com.client has no attribute couninitialize
There is error in Django.....plz help if someone knows about it
Jay
Hi @here Question:🤚🤚🤚🤚🤚 Is it possible to send an API Call/Request within the same Django project...between different applications? How? Any well explained reference/reading materials on this would be great Thanks
Jay
Why would you like to do that when all applications live in the same process? You can call functions directly
From the look of things, Sending API calls seems to be the cheaper option.: 1. I'd have to write to the tables directly,which are many and the relations are complex. 2. Calling the view The application was purely a Django web app, built with Django Templates It was recently extended to some offline first users(additional views built) to use with the mobile version of the app (built using flutter) Whatever comes from the mobile app,needs to be approved before being sent to the main app( the original webapp)
Нияз
Hello everyone, I'm new to Django. I have such a problem that the site does not show pictures.
Anonymous
Do you guys know a place where I can ask my web development questions?
Anonymous
It's about React and Django
Anonymous
Stack overflow
A gp or active a forum would be enough to join but Stack overflow will not answer me in a quick time
Anonymous
let me try
Нияз
Did you set the MEDIA_ROOT in your settings.py?
I already solved the problem, thanks for your help
Kha
I want help
Kha
I want to create database to add and retrieve data
Eternity
I want to create database to add and retrieve data
Well, there are many tutorials about creating databases. This group will help you if you have some issues, but now just open the docs of the database you are going to use and start creating it
AZ
How are you every one, I have project store with django i finished everything about the user and products i want to let the user add to the order different products and these products he can choose the quantity how can i handle the different products with quantity for each product
PyDanny21
Hi
PyDanny21
I have a problem in django
PyDanny21
I'm working on a project, I want to get product details from each product when I submit a form, like a cart
PyDanny21
When I submit the form, I want the cart page to get the request
PyDanny21
I created a view for it but it doesn't work
PyDanny21
Can anyone help me, please
Muflone
doesn't work is not a technical term
PyDanny21
Ok
PyDanny21
It gives me an error
Charly
It gives me an error
And we are not able to read your mind to know what error is
Charly
Nor the code
Muflone
if you are bored to explain well your issues, no one will ever bother in asking you the correct questions also consider to read the rules
PyDanny21
Sorry, I will send a screenshot
Maxim
Sorry, I will send a screenshot
neither screenshots nor walls of text are allowed here read the rules