Python – Can you use InstantDjango instead of a normal installation?

Can you use InstantDjango instead of a normal installation?… here is a solution to the problem.

Can you use InstantDjango instead of a normal installation?

Is it possible to develop with only Instant Django? Do I need to use the normal version or can I just use this instant version? Has anyone used it?

Solution

Of course, you can use InstantDjango for development. InstantDjango uses SQLite3, which is a relational database that is ideal for embedded or mild/sometimes moderate use. The whole purpose of django is to provide you with database portability with the ORM layer.

That said, I wouldn’t use InstantDjango for web applications that are deployed halfway. SQLite just doesn’t scale as much as Apache (etc.) with MySQL/Postgres. In some cases, the way SQLite handles data types (or rather, disguises them) can cause problems with subsequent django applications deployed using MySQL/Postgres… If you use SQLite for development, always use your actual deployment environment before going live.

Over the past few days, you’ve raised some > about SO about using one or another major relational database package ( Is it Me or Are Rails and Django Difficult to Install on Windows?) Problems with deploying Django. I suspect you don’t have much answer, so the reason it feels necessary to continue asking the same question in different wording is that we need more specific examples of errors.

Many people install Django and MySQL, Postgres, and other databases on Windows and *nix systems every day. If you provide us with the exact details of the non-SQLite database you are trying to use, how you installed it, how you configured the settings for that database in Django, and the error message you receive, we will have a better chance of helping you.

If, based on the answers you already have, you are still having problems, perhaps you can turn to a professional system administrator and/or DBA you know to show you the know-how to install and configure such software.

Until then, be sure to start developing with InstantDjango and SQLite. When you migrate to a different relational database, it doesn’t get dropped with a lot of rewrites, and it helps you progress with the framework, which only enhances your knowledge of how to deploy it in production.

Related Problems and Solutions