Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 5, 2005 14:05:32

m.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

suitability of django


Hi all
hope this is a suitable place for newbies to make nieve blurts and
questions - if not tell me to piss off and perhaps even direct me to the
right forum...

Im evaluating web frameworks - and what Im mainly hoping for is one that
allows me as much opportunity to organise things as Id like - I have
fooled around with turbogears and Ruby on rails - both of which I
thought were dazzling, but this one, which Im enjoying just as much -
seems most suitable to me - mainly because the models aren't coupled to
the data on a naming convention basis.

What Im specifically wondering relates to organisation and models -
before I waste time trying - if I was to establish different models for
my app e.g. django-admin.py startapp mammal, django-admin.py startapp
reptile, django-admin.py startapp zoo, django-admin.py staff - to what
extent can inter model referrencing be organised - esp for purposes of
creating schema? The purpos being is that perhaps staff, can be taken
and used in a whole new project.

For this first project Im going with the doco and using multiple files
in the one models directory and editing __init__ - just thinking ahead
really.

and while you're at it - if you can spare the indulgence - lemme know
why you went with djengo over tg or ror etc?

thanks all
Glenn

Offline

#2 Dec. 5, 2005 15:49:30

Daniel E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

suitability of django


On 5 dec 2005, at 13.25, maskedbeagle wrote:What Im specifically wondering relates to organisation and models -before I waste time trying - if I was to establish different modelsformy app e.g. django-admin.py startapp mammal, django-admin.py startapp
reptile, django-admin.py startapp zoo, django-admin.py staff - to what
extent can inter model referrencing be organised - esp for purposes of
creating schema? The purpos being is that perhaps staff, can be taken
and used in a whole new project.You have the whole Python and Django infrastructure at you disposal.Install you app in a project and all that apps' models will beavailable through django.models.app. Another way is to simply putyour models somewhere on your path and import them. If you want tocomposite a model you can use subclassing or OneToOneField (http://www.djangoproject.com/documentation/models/one_to_one/).and while you're at it - if you can spare the indulgence - lemme know
why you went with djengo over tg or ror etc?Over TG? Cohesiveness. Admin-app. Over Rails? Same as TG + it's Python.

- Daniel

Offline

#3 Dec. 5, 2005 18:47:39

oggie r.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

suitability of django


Why Django?
-Fantastic ease and flexibility for generating complex view-only
pages.
-Free admin interface (which my users will see a lot of)
-Python
-Very responsive and active community
Why not TG?
-Because I hadn't heard of it!
-Seems similar to Django but less planned in some parts. URL
dispatching/views, saving form fields look weaker than django.
Why not RoR?
-Portability (minor)
-Instability (minor)

Really, it was my app that decided more than the tool itself. I needed
a lot of complex read-only views, and some very simple forms, it it
came a lot cheaper with django than RoR.

-rob

Offline

#4 Dec. 6, 2005 22:13:31

m.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

suitability of django


Thanks - nice answer - gives me the sense of things I was looking for -
ditto to oggie rob
havin a blast already
cyas

On Mon, 2005-12-05 at 16:49 +0100, Daniel Ericsson wrote:
> On 5 dec 2005, at 13.25, maskedbeagle wrote:
>
> > What Im specifically wondering relates to organisation and models -
> > before I waste time trying - if I was to establish different models
> > for
> > my app e.g. django-admin.py startapp mammal, django-admin.py startapp
> > reptile, django-admin.py startapp zoo, django-admin.py staff - to what
> > extent can inter model referrencing be organised - esp for purposes of
> > creating schema? The purpos being is that perhaps staff, can be taken
> > and used in a whole new project.
>
> You have the whole Python and Django infrastructure at you disposal.
> Install you app in a project and all that apps' models will be
> available through django.models.app. Another way is to simply put
> your models somewhere on your path and import them. If you want to
> composite a model you can use subclassing or OneToOneField (http://
> www.djangoproject.com/documentation/models/one_to_one/).
>
> > and while you're at it - if you can spare the indulgence - lemme know
> > why you went with djengo over tg or ror etc?
>
> Over TG? Cohesiveness. Admin-app. Over Rails? Same as TG + it's Python.
>
> - Daniel

Offline

#5 Dec. 6, 2005 23:21:32

Jeremy D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

suitability of django


On 12/6/05, maskedbeagle <> wrote:
>
> Thanks - nice answer - gives me the sense of things I was looking for -
> ditto to oggie rob
> havin a blast already

Beagle, see also DHH's writeup of Rails vs. Django:http://www.loudthinking.com/arc/000545.htmlIt has lots of pointers to more on the debate, too.

Offline

#6 Dec. 7, 2005 00:18:40

N.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

suitability of django


Currently I'm working with rails. The main reason was that when i
compared both Django and Rails (a few months back) Rails was more
mature in that it's documentation was much better, while Django had not
much documentation, and no filters, or middelware as Django calls it.
The documentation is still not comparable to that of Rails (For Rails I
bought the agile web development with rails book) but the framework
itself seems mature enough for me to consider.

I'm still in doubt whether or not to stick with Rails or switch to
Django. While I'm really happy with Rails I'm not so happy with Ruby.
Ruby as a language is great and works great _as long as you don't need
libraries outside of standard Ruby_. For example libxml or the mysql
adapter seem to be created with the philosophy "If it works for me it
works for all" and though on linux they might be stable on windows they
are not. As soon as there's a decent manual available for Django
instead of a couple of html pages I might consider toying around with
it, in the mean time I'll just stick to rails, being glad I'm hosting
on a linux server and only developing on windows. Thinkng of it,
another huge pre for rails is the eclipse based radrails ide for rails.
It's incredible how well that one works..

Offline

Board footer

Moderator control

Enjoy the 22nd of April
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support