When importing modules, I think that it's ugly to have to use the 
'site' name on modules ... f'rinstance:

    from mysite.myapp.views import MyView, MyOtherView
    from mysite.myapp.models import MyModel, MyOtherModel

>From a modularity standpoint, it would be much nicer to just 
say:

    from myapp.views import MyView, MyOtherView
    from myapp.models import MyModel, MyOtherModel

That way apps can be moved around between sites, without having to edit
them for the new site name

This works if I use 'manage.py shell', but does not work when 
I runapp.

Any suggestions?

--
Mike Cuddy ([EMAIL PROTECTED]), Programmer, Baritone, Daddy, Human.
Fen's Ende Software, Redwood City, CA, USA, Earth, Sol System, Milky Way.

    "The problem with defending the purity of the English language is
    that English is about as pure as a cribhouse whore. We don't just
    borrow words; on occasion, English has pursued other languages down
    alleyways to beat them unconscious and rifle their pockets for new
    vocabulary." -- James D. Nicoll

       Join CAUCE: The Coalition Against Unsolicited Commercial E-mail.
                          <http://www.cauce.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to