How to use django model outside of django framework?

Is it better to create your own framework, or would it be best to just use Django or something like that?

  • I'm writing in Python, hence Django as my example. I am concerned if my website will be a success, and that Django (and similar frameworks) will limit my website somehow

  • Answer:

    You should absolutely use an existing framework such as Django rather than writing your own. Doing so will let you work faster, and take advantage of code written by others. This will dramatically increase your chances of building a successful website as opposed to spending months tinkering with your own framework rather than solving the unique problems that make your website interesting. If your site is a big success, you'll be able to scale Django to meet your demands. There are plenty of huge sites running on Django - such as Pinterest, Instagram, Eventbrite and Disqus. They all end up having their own customisations for scale but that doesn't mean that they didn't benefit enormously from using an existing framework rather thank rolling their own from scratch. Concentrate on getting to a point where your site is so successful that it causes problems. Those are good problems to have!

Simon Willison at Quora Visit the source

Was this solution helpful to you?

Other answers

The reason to create a framework is because you want to create a framework or nothing already exists. The reason to use an existing framework is because you're trying to get something else done.

Andy Baker

I've been a long time fan of Django and still use it today; however, I've recently been using Flask as my framework for new development. Check it out... It's somewhere between Django and rolling your own framework.

Steven Elliott Jr

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.