Ghorz
Normal form
Ganesh
Can anyone helpme how to pass json data to JavaScript
Doragonsureiyā
Can anyone helpme how to pass json data to JavaScript
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 firsts results
Anonymous
How to import model of one app into the model of another app???
cj
How to import model of one app into the model of another app???
use import or from/import keywords 🤷🏻‍♂
Anonymous
Hmm
Anonymous
Ok
Anonymous
from app_name.models import model_name
I have created a product model and it's return product name ... I have created a another model in another app and linked order model of second app with product model using foreign key... The problem it's returning it's product name only and I want to get its product_code
Anonymous
Yeah it can be easily used in template
Anonymous
But I want in models.py file
Syed
Order_obj=Order.objects.all()
cj
But I want in models.py file
then learn Python first 🤷🏻‍♂
Anonymous
is their any way that I return multiple fields in product model currently I am returning return_str(product name)
Syed
Order_obj.product_id
Anonymous
Okay
Syed
is their any way that I return multiple fields in product model currently I am returning return_str(product name)
If u return mutiple field then if u update or add field then it will save multiple times.
Anonymous
Yes
Syed
Yes
Suppose if u return 2 fields then same object will save two times.
Anonymous
And also it will distrub the template s
Anonymous
Need Help: How to join two models in django
Xavier
Need Help: How to join two models in django
there is many to many, one to many, one to one relationship also there is foreign key
Ganesh
How to pass json data in JavaScript
Doragonsureiyā
How to pass json data in JavaScript
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 firsts results
Xavier
How to pass json data in JavaScript
use Json response with a simple fetch
cj
How to pass json data in JavaScript
you asked the same many hours ago and you already were told what to do
Ganesh
use Json response with a simple fetch
I am using json.parse but it's not passing
Xavier
I am using json.parse but it's not passing
cuz it doesn't work like that way u should read up json response and fetch in JavaScript
Ganesh
In views I am using json response and fetching in JavaScript
Rahul
On every entry i want to store into db using django from google sheet
Damon
Do I need to learn Javascript before I can develop with Django?
محمد دلشاد
Do I need to learn Javascript before I can develop with Django?
not actually but it would be better if u have basic idea at least
محمد دلشاد
No Meta questions please its a Django group of 7k members you don't have ask this silly question and of course a lot of us knows python
محمد دلشاد
ask your question directly
Tar
What skeleton do you use ? Any automatic script or just django-admin startproject and manual configuration?
Mirco
Read rules!
Tar
i usualy go with django-admin stuff
Are you separating settings.py for dev and testing and production manually then? Create folder for templates / static / media by yourself? One huge folder or subfolder for each app?
محمد دلشاد
dont use pastebin instead
Tar
Django is so flexible Therefore, too many approaches for project structure I haven't decided yet which one I like the most
Tar
i use a huge folder for static files but for templates i prefer seperated
I can understand the benefit of that approach On the other hand, the apps aren't pluggable / independent from the one huge folder
محمد دلشاد
u got it right
Tar
The error is pretty self explained
محمد دلشاد
there is a missing slash betweem userpage and post in ur urlpattern LOL 😂
Mirco
you are trying to access userpage/post, but you have userpage post into your urlspattern so remove that useless blank into your path
Raffaele
Hi guys
Raffaele
I need help with my template for a django blog
Raffaele
The website doesn't see my comment form
Raffaele
Here is the pastebin
Raffaele
https://privatebin.net/?34a08f8fd43cc303#8oeG5gDgu2bov8WYGGGfgG2ECbx4RSEBcYdTrEcxZtxP
Mirco
it's better you add also the view
Jimmies San
yup
si, in italian is SI
Jimmies San
😂😂😂😂😂
Mirco
si, in italian is SI
hai ragione 😜
NIKHIL
Please tell how to start django learn
Try
Please tell how to start django learn
First step: https://docs.djangoproject.com/en/3.0/intro/overview/
Skilz
Please tell how to start django learn
Follow dennis ivy on youtube...
Doragonsureiyā
Please tell how to start django learn
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Detail_view test model fails( AssertionError 404 !=200) during test, but works fine in browser. Why is it happening so : This is the like link to my code: https://stackoverflow.com/q/62192396/13678965
محمد دلشاد
Follow dennis ivy on youtube...
one more dennis ivy lover here
Anonymous
one more dennis ivy lover here
Here too 🤟 Guy with 40000$ of website.
Skilz
one more dennis ivy lover here
Guy is good!!! Been taking all his tutorials.
محمد دلشاد
yup i like the way he explains every part
Lord Voldemort
does anyone know how to keep heroku dyno alive in free tire ?
Lord Voldemort
i have 1000 hours free dyno hours
Anonymous
Hi, guys Am getting error net: : ERR_ABORTED 404 (NOT FOUND)
Tengo
Hi, guys Am getting error net: : ERR_ABORTED 404 (NOT FOUND)
Check your url.py and add that method in it