Re: Most widely used documentation source for Django Projects?

2012-10-13 Thread Christopher Hartfield
I would say read the docs looks the best visually. Tastypie uses it and has really pretty documentation with read the docs. On Saturday, October 13, 2012 8:54:35 PM UTC-7, Surgemcgee wrote: > > Hey Gang, is there a standard documentation page for new/existing > Django projects? > I was going

content_type in Client() post doesn't correctly encode

2012-10-13 Thread Christopher Hartfield
I think I may have a bug in the client test class in the post method. Normally you can call: url_data = {'something': 'something'} response = c.post(ip, url_data, content_type='application/xml') When I do this I get a 401 response and this data: Content-Type: text/html; charset=utf-8

Most widely used documentation source for Django Projects?

2012-10-13 Thread Robert Steckroth
Hey Gang, is there a standard documentation page for new/existing Django projects? I was going to use https://read-the-docs.readthedocs.org/en but it will not let me create an account (500 whale). It seems to be common in the projects I've used. Any suggestions? -- Bust0ut, Surgemcgee: Systems

Re: Django MPTT - breadcrumb in view function

2012-10-13 Thread Cal Leeming [Simplicity Media Ltd]
Hi, Personally, I tend to keep the breadcrumb logic completely separate from any custom code logic. Instead, I have something like this: context['breadcrumb'] = ['menu1', 'sub menu 2', 'sub sub menu 3'] And then in the templates, you'd have something like; {% if x.0 == 'menu1' %}

Re: perfectionists... motto doesn't fit

2012-10-13 Thread Lachlan Musicman
On Sat, Oct 13, 2012 at 12:39 PM, Russell Keith-Magee wrote: >> Russell (and Jacob), >> >> I really appreciate the way you moderate the forum. I was thinking exactly this when I read Russell's first response. This is an excellently run community. Thankyou for your work

Re: Create table and load data

2012-10-13 Thread Larry Martell
I didn't even need to use the debugger. I just ran with --verbosity 3, and it showed me all the places it looked for fixtures files. Strangely, it did not look for a fixtures dir immediately off my app's main dir, but it looked for one everywhere else. My app is called motor, and it lives in

Django MPTT - breadcrumb in view function

2012-10-13 Thread enemybass
How to create breadcrumb in my view function? class Category(MPTTModel): name = models.CharField(max_length=50, verbose_name=u'Name') parent = TreeForeignKey('self', null=True, blank=True, related_name='children') slug = models.SlugField() class

Re: Create table and load data

2012-10-13 Thread Larry Martell
Thanks Kurtis. That's will save me a bit of time. I'm going to dig into it now. I'll let you know what I find. On Fri, Oct 12, 2012 at 2:25 PM, Kurtis Mullins wrote: > Whoops, sorry that was the master branch. Here you go: >

django_multiuploader Uncaught TypeError: Object [object Object] has no method 'fileupload'

2012-10-13 Thread psychok7
i am using django_multiuploader in my app, and even thou i can upload the image, the fancy jquery eye candy is not happening (js,css), and after it finishes uploading it doesn't show me my image, only some json text info about the image. What am i doing wrong? i am getting this error when i

Re: Abridged summary of django-users@googlegroups.com - 31 Messages in 11 Topics

2012-10-13 Thread Andrew McClain
On Oct 13, 2012, at 6:58 AM, django-users@googlegroups.com wrote: > Today's Topic Summary > Group: http://groups.google.com/group/django-users/topics > > A fun little Django project [Robert Steckroth] [1 Update] > User can't edit model even after permissions are issued [1 Update] > User

Re: Regarding the sub domains

2012-10-13 Thread m1chael
step #1 would be to configure your name servers to resolve anything.example.com to an ip On Sat, Oct 13, 2012 at 7:25 AM, anup kalburgi wrote: > Hi, > > We have multiple users and each user needs to have a subdomain along with > a separate database for each one of them, >

Regarding the sub domains

2012-10-13 Thread anup kalburgi
Hi, We have multiple users and each user needs to have a subdomain along with a separate database for each one of them, Like *moris.example.com* . to have a database by name moris or something like that, and so on for different customers. Having multiple databases is necessary because

Global timeout for views

2012-10-13 Thread Sudhir Kumar
Is there a way to setup a global timeout for all views? Some of the requests are taking too long. I would like to log those and send an error response back. If possible, I would NOT like to delegate timeout to upstream load balancer. What is the best way to achieve this in Django. Thanks, --