Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The command-line Python, IMO, definitely comes first. Get that to work, since that's the core of what you're doing.</p> <p>The issue is that using a web framework's ORM from a command line application isn't obvious. Django provides specific instructions for using their ORM from a command-line app. Those are annoying at first, but I think they're a life-saver in the long run. I use it heavily for giant uploads of customer-supplied files.</p> <p>Don't use bare CGI. It's not impossible, but too many things can go wrong, and they've all been solved by the frameworks. Why reinvent something? Just use someone else's code.</p> <p>Frameworks involve learning, but no real "overhead". They're not slow. They're code you don't have to write or debug.</p> <ol> <li><p>Learn some Python.</p></li> <li><p>Do the <a href="http://docs.djangoproject.com/en/dev/" rel="noreferrer">Django</a> tutorial.</p></li> <li><p>Start to build a web app.</p> <p>a. Start a Django project. Build a small application in that project.</p> <p>b. Build your new model using the Django ORM. Create a Django unit test for the model. Be sure that it works. You'll be able to use the default admin pages and do a lot of playing around. Just don't build the <em>entire</em> web site yet.</p></li> <li><p>Get your command-line app to work using Django ORM. Essentially, you have to finesse the settings file for this app to work nicely. See the <a href="http://docs.djangoproject.com/en/dev/topics/settings/#topics-settings" rel="noreferrer">settings/configuration</a> section. </p></li> <li><p>Once you've got your command line and the default admin running, you can finish the web app.</p></li> </ol> <p>Here's the golden rule of frameworks: <strong>It's code you don't have to write, debug or maintain.</strong> Use them.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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