Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You seem to mix things up. Django is a framework which implements the MVC model, namely Model, View and Controller (They modify slightly this terminology, but this is a detail). It allows you to interact with a database using an ORM using models, display output data using HTML (the view, called template in Django) and to define logic to glue the model to the view (the controller, called view in Django).</p> <p>Using REST, you can manipulate resources (mostly database data) using already defined keywords in the HTTP protocol. Tastypie is a Django package allowing you to easily develop REST interfaces on your Django projects.</p> <p>Django allows the <a href="https://docs.djangoproject.com/en/dev/ref/django-admin/" rel="nofollow">definition of commands</a> callable from a console which could be pluggable with Tastypie. This answers your question but I doubt it is what you need.</p> <p>If you don't need web integration (console-only application), you don't have much use of the templating part of Django nor its HTTP request handling and routing. I would suggest you to use another kind of ORM like SQLAlchemy. You could create a console interface using a library such as ncurse if you need one. Try to understand your needs first: What do you want to achieve? After answering this question, you should ask yourself: Do I need an ORM (database integration) and templating (output such as HTML)? If no, then reconsider using Django for your project and weight its pros and cons versus other frameworks more geared to fit your needs.</p> <p>I would recommend clearing things in your head first since console-based applications doesn't use HTTP to communicate which is the base of the Django framework as well as the REST philosophy.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload