Fabio,

Django ORM support Oracle Database[1].

If you want connect an existing oracle database, i recomend you see the
inspectdb management command.

[1] https://docs.djangoproject.com/en/1.7/ref/databases/#oracle-notes
[2] https://docs.djangoproject.com/en/1.7/howto/legacy-databases/


On Thu, Jan 1, 2015 at 2:40 PM, Shai <s...@platonix.com> wrote:

> Hi Fábio,
>
> On Wednesday, December 31, 2014 6:05:05 PM UTC+2, Fabio Caritas
> Barrionuevo da Luz wrote:
>>
>> Hello, is possible with Django 1.7 create a unmanaged Django model for
>> Oracle database View?
>>
>>
>>
> Yes. In your model's Meta, set managed to False and db_table to the view
> name:
>
> class MyUnManagedModel(models.Model):
>     # ...
>     # fields
>     # ...
>     class Meta:
>         managed = False
>         db_table = 'view_name'
>
> Have you run into difficulties?
>
> HTH,
> Shai.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/bf043f16-043a-4f0f-a6bf-2856c405be43%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/bf043f16-043a-4f0f-a6bf-2856c405be43%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGjPPH%3DM8k9MWOKuiqL0ABPiG-G9PwGOeJ_4yLLFifz6rVDoZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to