How to use django model outside of django framework?

Let’s learn how to use django model outside of django framework. The most accurate or helpful solution is served by stackoverflow.com.

There are ten answers to this question.

Best solution

python - using django model outside of the django ...

I have a django application that is working fine. I want to be able to leverage the model to access the database from another (standalone) python app.

stackoverflow.com

Other solutions

What sites use tastypie as their webservice API framework? How does tastypie compare to piston or django-rest-framework with regards to long term maintainability?

tastypie has the features we are interested in, and we don't care much about the web-browsable api feature that django-rest provides. Are there any issues we need to be aware of so we are better prepared or work around them as we build our site?

Answer:

See my blog post about Django RESTful APIs at http://pydanny.com/choosing-an-a...

Read more

Daniel Roy Greenfeld at Quora Mark as irrelevant Undo

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...

Read more

Simon Willison at Quora Mark as irrelevant Undo

Which framework is better to use to tightly integrate an Adobe Flex front end with Facebook, Ruby on Rails or Django?

I'm trying to choose between RoR and Django for the back end of a web app that integrates heavily with Facebook and has a Flex 4 front end. I'm new to both frameworks (and the languages - I'm from a mostly C/C++ background), so familiarity with either...

Answer:

I'm going to go with Rails on this one.  Disclaimer: I swing towards the Ruby side of the Ruby/Python...

Read more

TJ Murphy at Quora Mark as irrelevant Undo

Django (web framework): Is there an open source library that I can use to manage user accounts?

I am trying to make a new application and for that, I am trying to use something existing/open source for managing user signups/login and having user profiles.  Is there something that I could use in django that I can tweak a little and get it working...

Answer:

django-allauth has a username/email registration system plus social authentication. django-social-auth...

Read more

Daniel Roy Greenfeld at Quora Mark as irrelevant Undo

What's the best CAPTCHA option for use in the Django framework?

I need a captcha when new users sign up; which plugin should I use or does Django have something built in?

Answer:

I am currently using django-recaptcha  https://github.com/praekelt/djan... on several projects. I like...

Read more

Mutwa Kaigi at Quora Mark as irrelevant Undo

Django (web framework): What are good ways to model a many to many relationship without a intermediate table?

For example: Question and Answers In class Question i have a field called answers that is a many to many field. I want to use the Answer table to get all answer for a specific question. class Answer(models.Model): class Question(Post):     answers =...

Answer:

Your specific sample can and should use one to many relations. Even if several answers have an answer...

Read more

Can Baysal at Quora Mark as irrelevant Undo

Does Instagram use a RESTful Django framework?

You know Instagram started as a mobile app on IOS backed by web service powered by django, so my question are they using restful architecture , and is that's why it where easy to them to create the web site later , and how they limited the sign up functionality...

Answer:

It's likely they're using a RESTful multi-tiered web application architecture. This means that their...

Read more

Adam Jorgensen at Quora Mark as irrelevant Undo

Django (web framework): ImportError: cannot import name MPTTModel

I did the steps at the tutorial " http://django-mptt.github.com/dj... " but it still give me the import error , I double check the code for the mptt and found the class MPTTMODEL exist in the mptt>model file     Validating models...   ...

Answer:

Add mptt to INSTALLED_APPS in settings file.

Read more

Cihad Gündoğdu at Quora Mark as irrelevant Undo

Which one do you use: Go, Scala, Java or Ruby for web development?

I am just a student, and I write web using Ruby on Rails and sometimes using Django, recent years. At the begining, I thought the RoR and Django are both very new things, and convenient to write the web. Recent days, I decide to learn some new thing...

Answer:

A lot depends on where you want to work. There's a lot to be said about those pieces as RoR and Django...

Read more

Dan Pozzie at Quora Mark as irrelevant Undo

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.