Can I learn Django without knowing coding?

 

No!

You’re essentially always writing code.

  • You’ll define the logic in the views.[1]That is Python code.
  1. from django.http import HttpResponse 
  2. import datetime 
  3.  
  4.  
  5. def current_datetime(request): 
  6. now = datetime.datetime.now() 
  7. html = "<html><body>It is now %s.</body></html>" % now 
  8. return HttpResponse(html) 
  • You’ll define the structure of the page in the templates.[2]That is HTML code and even some Python and CSS code.
  1. {% if latest_question_list %} 
  2. <ul> 
  3. {% for question in latest_question_list %} 
  4. <li><a href="/polls/{{ question.id }}/">{{ question.question_text }</a></li> 
  5. {% endfor %} 
  6. </ul> 
  7. {% else %} 
  8. <p>No polls are available.</p> 
  9. {% endif %} 
  • You’ll define the relationship and how the data is stored in the models.[3] That is Python code.
  1. from django.db import models 
  2.  
  3. class Person(models.Model): 
  4. first_name = models.CharField(max_length=30) 
  5. last_name = models.CharField(max_length=30) 
  • You’ll define the urls’ structure in the URLconf.[4] That is Python code.
  1. from django.urls import path 
  2. from . import views 
  3. urlpatterns = [ 
  4. path('', views.index, name='index'), 

If you want to use Django you must learn Python (and HTML at least).


The good thing is that Python is a nice and easy language to learn.

Both the Python and the Django community are very friendly and eager to help.

EDIT: I found this article about this topic How much Python should you know before learning Django? | JustDjango Blog

Comments

Popular posts from this blog

Documentation is Very vital before you develop any system or app

Steps followed when creating a new software

Everything you need to know when developing an on demand service app