Tom Evans (tevans...@googlemail.com) wrote: > On Thu, Mar 4, 2010 at 10:39 AM, Kenny Meyer <knny.m...@gmail.com> wrote: > > ... > > I would probably have an app tree structure like this: > > > > test_app/ > > |-- __init__.py > > |-- models.py > > |-- tests.py > > |-- view > > | |-- __init__.py > > | |-- blog_form_view.py > > | `-- blog_view.py > > `-- views.py > > > > Where my views.py simply imports the views in the ``view`` folder. > > I think it's essential that you keep the views.py, when you're not > > running a personalized fork of Django and writing reusable apps. ;) > > > > I don't think this is necessary. I use this structure: > (hope unicode line-drawing characters come through!) > > app > ├── __init__.py > ├── models.py > ├── tests.py > ├── urls.py > └── views > ├── __init__.py > ├── general.py > └── users.py > > I don't run a personal fork of django, and this app is perfectly > reusable. In urls.py, I refer to the specific views like so: > > urlpatterns = patterns('app.views.general', > url(....), > ) > > I don't have to modify or alter any part of django to work like so. > > Cheers > > Tom > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@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. >
Tom, that makes absolute sense. I'll take back, what I said earlier in this thread. [1]_ .. [1] I think it's essential that you keep the views.py, when you're not running a personalized fork of Django and writing reusable apps. ;) Very best regards, Kenny -- Kenny Meyer Software Geek | http://kenny.alwaysdata.net Shoot for the moon, even if you miss, you'll land amongst the stars.. - Les Brown -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.