Shubham
if you take a look loc 89, how I can refer MEAL_CHOICE field of MenuOfTheDay
Shubham
?
Daisuke
Thank you
Bunty chhatri wala..
Shubham
how to save the unique field value against other field value in django model
Shubham
?
*_*
Hey everyone, is it possible to deploy a django website on vapourhost?
The mint of Linux **
Nats
https://github.com/pydanny/cookiecutter-django/tree/master/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/contrib/sites/migrations
why this templates include site migrations??
what it works for ?
The mint of Linux **
Or pass another model in one model
Shyamkumar
Shyamkumar
Nats
it help in migrate.
🙏, I got it
It is there to add a migration so you don’t have to manually change the sites.Site record from example.com to whatever your domain is. Instead, your {{cookiecutter.domain_name}} and {{cookiecutter.project_name}} value is placed by Cookiecutter in the domain and name fields respectively.
Anonymous
I got error in my project
Doragonsureiyā
I got error in my project
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase
Anonymous
Init missing 1 required positional argument :on delete
Anonymous
Python 3.6
Anonymous
Django 3.1.1
Anonymous
I did
Xeyyam
Doragonsureiyā
ok
To share code or error tracebacks please 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
Aneesh
on_snapshot method consume too much number of reads . Any one have experienced like this?
Django+ firebase
Aneesh
I have used on_snapshot method to listen to the document changes in firebase .but the read count that firebase shows .when I change a document is high .for 10 change it is showing 500 reads.
Anyone experienced issues like thsi
Aneesh
This
₹
https://dpaste.com/8Z4GHD4D5
₹
Can one plz help..just look at traceback
₹
https://dpaste.com/5UPNP94L9#
₹
This is serializer class
Chyngyz
Hello everyone. Could you kindly review my question please. Really need your help.
https://stackoverflow.com/questions/63983271/get-every-m2m-relation-in-model-as-different-object-in-drf-serializer
Appreciate
Anonymous
Guys I had one doubt... How can I put matplotlib graphs to my website?
Vitaliy
Kumar
I need all orm queries examples
Doragonsureiyā
I need all orm queries examples
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box, write down the same words you asked here
Step 4: Read the first results
Pradyum
Hey, want to create an invitation link for onboarding user to company like slack does using django rest framework is there any method that you can refer?
see things that i have in my mind that are coming is that i can put company_id in hash inside a link and then when a user will come with that hash i can compare it and onboard the user
but in that case there is no link_time_age i can compare!
is there any method or any crypto algo in which is can convert company_UUID into some string and decode back into UUID and then compare it through icontains and similary i can do with time and age of link?
but first of all is this a right approach? or how do people in company like slack or telegram do?
any kind of help wil be really appreciated
Kumar
Unknown
Hostinger is the only website which is providing cheap and reliable web hosting but for around 4 dollars per month and one more thing I want to ask is that,will 1 gb RAM and 20 gb SSD be sufficient for running Django website properly?
Doragonsureiyā
Unknown
Okk thanks
Pradyum
Guys I have posted my question on Stackoverflow please see if anyone can help
Pradyum
https://stackoverflow.com/q/63994052/7999665
S
Hey all, I am making a simple todo project, i want to know if this will enough to apply for a trainee job, and if not, what else do I need? ( I don't have any CS background)
M
hi @Anksak thank you ,. i got the answer of my question
Afrizal
hello guys, I want to ask.
How do I access property method on views?
I use objects.all the result is error
the code is here https://dpaste.org/3QFG
Vijay
i m curruntly working on a project where i m implementing html 5 video tag with VideoJs plugin of javascript bt i unable to find solution for maintain qualities like 144p,360p,720p , so what is the best way to do this m using django for backend
Aᴘᴋ (^_-)🇮🇳
How I get sucess response When current page is redirect to another page.after x seconds.
This is similar to url shortner.
The mint of Linux **
Anonymous
So not a still image
Marcelo
Hi all, there is a documentation or someone here implemented a progress bar ?
Mirco
The mint of Linux **
The mint of Linux **
I need help...where to learn SEO ?
The mint of Linux **
🐶🐶🐶
The mint of Linux **
Anyone?
M
hi Guys i came with another question. i am trying to call one url in my template and passing one parameter so
<a href="{% url pie %}?kpi={{ value.name }}" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
M
my url is like below
path('pie/', views.pie_chart, {'site': 'SITE1'},name='chart'),
M
the intention is to pass the parameter in calling URL and use that parameter to decide which view function sholld be called or to pass the parameter in view function again . it throws error
M
NoReverseMatch at /
Reverse for '' not found. '' is not a valid view function or pattern name.
M
can anyone suggest if i can do this somehow
The mint of Linux **
The mint of Linux **
Common mistake
The mint of Linux **
{% url 'function name on url or view' %}
M
so i should {% url 'views.pie_chart' %} ?
Bunty chhatri wala..
Anonymous
Hello guys
Please I used bootstrap to design the template of my Django apps. But I want to override some of the default css but it's not working.
Please I used Bootstrap Cdn
Please help me
The mint of Linux **
Yup
The mint of Linux **
No not views.
M
Name u defined in url
yes got it when i changed to name of url it works and actually i am able to pass the parameter
<a href="{% url 'chart' %}?site='{{data.site.name}}'" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
can u also help me how can i catch that passed params site= and pass to view again
The mint of Linux **
Passing in a anchor tag ?? 🙄🙄
Bunty chhatri wala..
M
like when i do so my url hit and it comes as
http://127.0.0.1:8093/pie/?site=%27SITE1%27
what i read till now that i can pass parameter from url.py to view.py by
path('pie/', views.pie_chart, {'site': 'SITE1'},name='chart'),
so i want to pass that SITE1 value dynamically what i git in URL by clicking that URL in template
M
like site=%27SITE1%27 should replace my dictionary {'site': 'SITE1'}
The mint of Linux **
The mint of Linux **
M
sorry i am new hard to oexplain . link works and when i click it hits my url pie just that i want to pass the site='{{data.site.name}} to my view function of pie again
The mint of Linux **
In directionary... If SITE1 is a value