Re: Using domain in urls.py

2008-12-23 Thread Spike^ekipS
I also tried to find the solution to handle multiple domain without using django site framework, but i did not find anything, so i made a small patches to implement it. here is the usage, urls.py: urlpatterns = patters("", ... url(r'^', include("example_com.urls"),

Re: CSRF / SafeForm

2008-12-23 Thread Luke Plant
On Tuesday 23 December 2008 16:51:46 Bob Thomas wrote: > On Dec 3, 9:14 am, Luke Plant wrote: > > At the moment, once you've factored everything in, I think 'view > > middleware' + template tag is the way to go, with some more > > custom solution for loginCSRF.  The

Using domain in urls.py

2008-12-23 Thread Dan Ger
Hi, I have searched to no avail and decided to post here. I have a django app that is going to have multiple domain names and would very much like to use the domain name in the urls.py to help with routing. I have been unable to find a built in way of using this and wanted to see if anyone else

Re: CSRF / SafeForm

2008-12-23 Thread Bob Thomas
On Dec 3, 9:14 am, Luke Plant wrote: > > At the moment, once you've factored everything in, I think 'view > middleware' + template tag is the way to go, with some more custom > solution for loginCSRF.  The SafeForm ends up having an unwieldly > API, which means it won't

order_with_respect_to fail

2008-12-23 Thread Thierry Stiegler
Hi ! I got some errors by using the Meta options order_with_respect_to: class Category(PublicationBase, LocalisationBase): ITEM_PER_PAGE = 12 name = models.CharField(max_length=255) pictogram = models.ImageField(upload_to="categories", blank=True) old_id =