Sujit
i have created a function in view.py and did import def home(request): context = { "title" : "Car Rental" } return render(request,'home.html', context)
Sujit
home is not a view
can you help me to fix this by joing google meet link?
Sujit
Use , in your context after "
you mean this? def home(request): context = { "title" : "Car Rental", } return render(request,'home.html', context)
Moein
Y Its dictionary instructure
Sujit
but still it is giving same error
Sujit
i'm getting this error
@uniquestylegentleman
Sujit
thankyou bro problem resolved 👍🎉
âshîsh
Great 🪐🪐
Mirco
can you help me to fix this by joing google meet link?
Nope, it's Sunday 🙂 But you have already had help tho 😃
Mirco
Mirco
Doesn't matter.
It matters 🙂
âshîsh
It matters 🙂
Then please refer official documents.
Mirco
Then please refer official documents.
You don't have to tell it me 😎 when needed, documentation is always by my side
âshîsh
I am here 4 help with the best of my knowledge not to mock over any solution.
Mirco
I am here 4 help with the best of my knowledge not to mock over any solution.
I'm not telling anything about your help That man is a beginner and I just gave the 2cents about URLs pattern as he used regex at first What's your problem ? So keep helping other people and enjoy 🙂 We have already made too useless noise, the most important thing is that he has solved his question
lychnobite
Help me
Anonymous
Can anyone how 'resolve' is different from reverse
Anonymous
Can anyone how 'resolve' is different from reverse
Like What does 'resolve' do? Thanks for help
Uday
i have a field 'productsxyz' which is in model 'Quantity' which is a foreign to model 'Product' i wanna do a qs on quantity model something like qs = Quantity.objects.get(productsxyz=id) basically get the id which is in productsxyz field
Uday
how do i get that id in the qs?
rinaigen
Hello, everyone. Someone did use django extra views? I have some questions.
rinaigen
I wanna to create my own inputs without using {{ formset }}, like {{ formset.name }}
rinaigen
but when I'm using {{ for formset in inlines }} {{ formset.name }} {{ endfor }} It does not work. Correctly, I see the input form, but It just does not work when trying to submit
Uday
You should return id in get_absolute_url function in your Model
doing only Quantity.objects.filter(productsxyz=id) did the job
rinaigen
Actually, the default form {{ for formset in inlines }} {{ formset }} {{ endfor }} works
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
rinaigen
It works, maybe u have some error somewhere
ye, I see that the inputs appear, but I get back when trying to submit.
rinaigen
<form method="post"> ... {{ form }} {% for formset in inlines %} {{ formset }} {% endfor %} ... <input type="submit" value="Submit" /> </form> This examples works. But as I said I wanna my own inputs. <form method="post"> ... {{ form }} {% for formset in inlines %} {{ for form in formset }} {{ form.username }} {{ form.password }} {{ form.first_name }} {{ endfor }} {% endfor %} ... <input type="submit" value="Submit" /> </form>
rinaigen
Like this one. But it just does not work, when Im trying to submit the form, without any errors.
rinaigen
After clicked, I see my first form ({{ form }}), without the one and It does not have any changes.
rinaigen
yes
rinaigen
{% block content %} <form method="post" action="" enctype="multipart/form-data"> {% csrf_token %} <div class="card-panel"> <div class="row"> {{ form }} {% for formset in inlines %} {% for foo in formset %} {{ foo }} {% endfor %} {% endfor %} <br> <button class="btn waves-effect waves-light" type="submit" name="action"> Edit profile <i class="material-icons right">send</i> </button> </div> </div> </form> {% endblock %}
rinaigen
yes
rinaigen
It does not matter when {% for formset in inlines %} {{ formset }} {% endfor %} works good, but {% for formset in inlines %} {% for foo in formset %} {{ foo }} {% endfor %} {% endfor %} does not
Anonymous
guys i need help
rinaigen
I just can't understand why it does not work actually
rinaigen
and I don't have any errors
Arya
Hello friends I have a problem with migrate new apps I try practice with official tutorial from django site and migrate polls in terminal(makemigrations polls) but during the migrations in terminal it fails : No intsalled app with label ‘polls’
Дока
Hello. Please tell me, is it possible to log error 500? If I don't know where it appears
moshe
Hello. Please tell me, is it possible to log error 500? If I don't know where it appears
can you reproduce the error on your local machine? if yes, you can put DEBUG = True on the settings and you will be able to see the errors on the webpage
Дока
No, i can't
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
yes I did
https://binary-data.github.io/2015/09/15/django-migration-error-lookuperror-no-installed-app-with-label/
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
Так🤔
Atlas
Write English, or you'll be warned
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
ok, sorry
It’s internal server error right?
Дока
yes
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
yes
In settings, DEBUG=True or False?
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
In settings, DEBUG=True or False?
Can you send screenshot
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
If your DEBUG is really True, then, in your settings.py file, make the configuration ALLOWED_HOSTS = ['*'], If you are really going production (and concerned about security), put allowed host names in ALLOWED_HOSTS
𝓙𝓪𝓶𝓸𝓵𝔁𝓸𝓷
I dunno any other solution, sorry)
Sai
polls.migrations?
Yes delete existing migrations
Anonymous
most are these
MFA
Hi, i have an ubuntu server, i want to use this server as django rest api how can i do that?
}{
Hello, anyone knows how to use speech-to-text in django?