On Thursday, 3 November 2011 20:04:30 UTC, Andre Lopes wrote: > > Hi, > > I'm a new to Django... > > I have a database schema that stores me information that I want to > show in a Django website. This database schema have nothing to do with > a Django App... > > Which is the best way of doing this in Django? I have read the > documentation and seems to me that I will need to use "custom SQL > directly"( > https://docs.djangoproject.com/en/1.3/topics/db/sql/#executing-custom-sql-directly > ), > right? > > If this is correct, where should I put the SQL queries, in "views.py"? > > > Best Regards, >
Is there any reason why you can't create models from your existing schema? See https://docs.djangoproject.com/en/1.3/howto/legacy-databases/ -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/khJaBBbvxfIJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.