1,105,177 Community Members

Is Javascript needed if I am designing a website using Django?

Member Avatar
amweasel
Newbie Poster
10 posts since Jan 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

If I make a website using Django, is there any need to use Javascript? Can Django work in place of Javascript itself?

LastMitch
Deleted Member
 
0
 

@amweasel

Is Javascript needed if I am designing a website using Django?

Yes, like most websites javascripts has been part of web designing.

Read this if you decided to used javascripts on Django:

https://docs.djangoproject.com/en/dev/howto/static-files/

Member Avatar
amweasel
Newbie Poster
10 posts since Jan 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thank you for the link.
No, I don't want to use javascript on Django only unless it is necessary. I mean, can't Django code work in place of javascript code. Or both perform completely different functions?

Member Avatar
riahc3
 
1,397 posts since May 2008
Reputation Points: 45 [?]
Q&As Helped to Solve: 14 [?]
Skill Endorsements: 18 [?]
Team Colleague
 
0
 

Django is written in Python which AFAIK only is server side, for web applications (It can be used client side but there is few support on browsers or it does not come out of the box) . Javascript is client side and supported on all browsers out of the box.

Member Avatar
amweasel
Newbie Poster
10 posts since Jan 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks riahc3. You mean, all the Django(Python) code is for the server side and for client side, javascript is needed. Thank you. Now, I need to learn Javascript also.

Member Avatar
riahc3
 
1,397 posts since May 2008
Reputation Points: 45 [?]
Q&As Helped to Solve: 14 [?]
Skill Endorsements: 18 [?]
Team Colleague
 
0
 

the Django(Python) code is for the server side

Yes, this is what I meant. Im almost sure that in Django the Python code is server side.

Member Avatar
amweasel
Newbie Poster
10 posts since Jan 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I don't understand why use JavaScript when all the forms and other things could be validated on Django also?

Question Answered as of 1 Year Ago by riahc3 and LastMitch
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: