Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I recently moved to developing any new projects in Django, coming from a PHP background. Here are my thoughts on your questions.</p> <p>1) Security</p> <p>Strings sent to templates is escaped by default, which takes care of most of that. Since you're using an ORM, SQL injection shouldn't be an issue unless you build raw queries for some reason.</p> <p>2) What goes in the /www/ public folder?</p> <p>Django doesn't use a file hierarchy for URLs like a typical PHP setup. The server knows what to run from your urls.py and settings.py pointer to the template folder. </p> <p>3) Can I still use .htaccess on Django projects? I am familiar with Apache and often use it to do routing, or blocking off bad bots, but will using .htaccess still work?</p> <p>As noted above, it works for static content just the same. For dynamic pages, you'd want to implement some other form of authentication or redirection for clients you want to block, as far as I know.</p> <p>4) Cronjobs</p> <p>There's no reason why you can't use cron for whatever, as you still have a normal Linux system.</p> <p>5) Running Third party perl/other scripts</p> <p>You'll want to use the Python versions of those libraries, of course. For instance <a href="http://code.google.com/p/pyffmpeg/" rel="nofollow noreferrer">FFMpeg</a> <a href="http://www.imagemagick.org/download/python/" rel="nofollow noreferrer">PythonMagick</a></p> <p>I replaced most of my need for Curl with the built-in urllib and urrlib2 libraries, but there is also <a href="http://pycurl.sourceforge.net/" rel="nofollow noreferrer">PyCurl</a> if you need it.</p> <p>6) Admin screen</p> <p>The Admin screen is intended to be used by your own admins, i.e. site staff. It may be possible to do so, but it's not supposed to be the scaffolding on which you build your public facing project.</p> <p>7) Integration with Discuss, Facebook, Twitter, OpenID, captcha, etc.</p> <p>There are a lot of people out there using Python and Django, and I haven't had any problem finding libraries. In my experience there is a bit less support for something than PHP, but what is there is often higher quality.</p> <p>8) E-commerce, SSL</p> <p>I haven't tried payment integration, so I can't say. Not sure about the other sites, but the Paypal Sandbox is run by Paypal, isn't it? I don't think it's related to what you're using on the server, so sure, you can access it like normal.</p> <p>9) Is it worth it? Is it worth moving to Django from an XAMPP background? Will it really make things faster, or is that just marketing hype?</p> <p>I moved to Django because Python is truly a more compelling language than PHP. Will it make things faster? I'm not sure what the advantages in that respect would be for Django vs.the PHP MVC frameworks. There are no magic bullets.</p> <p>You do have to keep in mind that you're not just learning a new framework, but also a new language. There will be a bit of a learning curve if you've never used Python before. but I've found both Python and Django to be fairly easy to learn. The clean design of the language is fantastic and Django is veryt well designed, too. I do feel that it's boosting my productivity. I've found snippets for or articles about most everything I need to do in Django as I've been learning, so adapting has been pretty simple. </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