awesome, thats exactly what i needed.  im still trying to figure out
regex stuff.

Thank you!

On Jul 14, 1:16 am, Eugene Mirotin <emiro...@gmail.com> wrote:
> The problem is still unclear.
> Do you want to handle the path example.com/some/path/ and route it to
> some view that would get the 'some/path' as argument?
> If so,
> * write the url conf like r'^([\w_\/]+)/$', handle_path
> * write the handle_path(request, path) view
> * in view split the pass by slashes
> * determine the object based on the path (using some getattr calls on
> modules or objects)
> * call the desired methods on the obtained object
>
> On Jul 14, 4:22 am,theiviaxx<theivi...@gmail.com> wrote:
>
>
>
> > Sorry i didnt explain very well.  The folder objects are django
> > objects, not file system paths
>
> > On Jul 13, 6:19 pm, Almir Karic <al...@almirkaric.com> wrote:
>
> > > For real world deployment you should use your web server to do that.
> > > For apache that would be an Alias (and make sure the Alias get's to be
> > > served before everything is passed to django).
>
> > > For development purposes you should have a look 
> > > athttp://docs.djangoproject.com/en/dev/howto/static-files/
>
> > > python/django hacker & sys 
> > > adminhttp://almirkaric.com&http://twitter.com/redduck666
>
> > > On Mon, Jul 13, 2009 at 5:39 PM,TheIvIaxx<theivi...@gmail.com> wrote:
>
> > > > I tried searching but didnt really find much.
>
> > > > Is there a way to set up a url conf to get a url of a folder path?
> > > > Basically i have a site that has folder-ish objects that contain
> > > > stuff.  However i cannot seem to find a way to get a url pattern to
> > > > work.  how would i get:
>
> > > >http://example.com/path/to/folder
>
> > > > to work?
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to