Adrian Holovaty wrote:
> Yes, I realize __name__ + '.views' will result in something like
> 'myproject.polls.urls.views' -- some extra string mangling would have
> to be done.
how about using the python 2.5 relative import syntax and emulating it
accoringly.
urlpatterns = patterns('.views',
fo
On 2/26/06, gabor <[EMAIL PROTECTED]> wrote:
> the urlconf for the polls app is:
>
> urlpatterns = patterns('myproject.polls.views',
> (r'^$', 'index'),
> (r'^(?P\d+)/$', 'detail'),
> (r'^(?P\d+)/results/$', 'results'),
> (r'^(?P\d+)/vote/$', 'vote'),
> )
>
> it is nice that th
On Mon, 2006-02-27 at 00:29 +0100, gabor wrote:
> Max Battcher wrote:
> > gabor wrote:
> >> i actually got around this problem by adding the project-dir to the
> >> PYTHONPATH, but it seems a little as a hack...
> >
> > I'd have to disagree. I don't think it's a hack at all, as far as I'm
> >
Max Battcher wrote:
> gabor wrote:
>> i actually got around this problem by adding the project-dir to the
>> PYTHONPATH, but it seems a little as a hack...
>
> I'd have to disagree. I don't think it's a hack at all, as far as I'm
> concerned it makes sense if you think of the project directory
gabor wrote:
> i actually got around this problem by adding the project-dir to the
> PYTHONPATH, but it seems a little as a hack...
I'd have to disagree. I don't think it's a hack at all, as far as I'm
concerned it makes sense if you think of the project directory as a
"library namespace" (yo
hi,
http://www.djangoproject.com/documentation/tutorial3/
the "include" functionality in urlconfs is demonstrated,because it
allows you to decouple your application's urlconfig from the projects
urlconfig.
but the problem is,that you still have to use "absolute" imports in the
application's