We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,692 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

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

3
Contributors
6
Replies
2 Weeks
Discussion Span
2 Months Ago
Last Updated
29
Views
Question
Answered
amweasel
Newbie Poster
10 posts since Jan 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 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/

LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45

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?

amweasel
Newbie Poster
10 posts since Jan 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 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.

riahc3
 
Team Colleague
1,282 posts since May 2008
Reputation Points: 62
Solved Threads: 13
Skill Endorsements: 11

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.

amweasel
Newbie Poster
10 posts since Jan 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 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.

riahc3
 
Team Colleague
1,282 posts since May 2008
Reputation Points: 62
Solved Threads: 13
Skill Endorsements: 11

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

amweasel
Newbie Poster
10 posts since Jan 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 2 Months Ago by riahc3 and LastMitch

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0764 seconds using 2.72MB