Re: Django, python, MYSQL, Eclipse3.7
just import one model into another using import statement.
2013/7/3 Branko Majic <branko@majic.rs>
On Wed, 3 Jul 2013 05:03:35 -0700 (PDT)
Vamsi Popuri <vamsi.popuri@micropyramid.com> wrote:
> I have 2 projects. They are* project 1* and *project 2*.
>
> *Project 2* has
> *models.py*
> class Address(models.Model):> *forms.py *
> Street = models.CharField(max_length=50)
> pin = models.CharField(max_length=20)
>
> class Address(forms.Form):
> ......
>
> My question is, In *project 1* i wanna access Address model in the *project
> 2*....Is it possible, then please let me know how to do ..
>
> Thanks for advance
>
Are you trying to access the _data_ (in database) from project 1, or do
you want to reuse the model definition in project 2 (where project 2
would have its own data independent from project 1)?
Best regards
--
Branko Majic
Jabber: branko@majic.rs
Please use only Free formats when sending attachments to me.
Бранко Мајић
Џабер: branko@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.
--
Rafael E. Ferrero
Claro: (03562) 15514856
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+unsubscribe@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.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home