Re: What's the new "field" parameter in the ManyToOneRel __init__ function?

2013-09-07 Thread akaariai
On Saturday, September 7, 2013 6:52:14 AM UTC+3, Mark Young wrote: > > For a little bit of context, here's an example of code that perviously > worked but now doesn't: > > class CategoryAdminForm(forms.ModelForm): > """Form for Category's Admin""" > parent = TreeNodeChoiceField( > labe

Re: Login not working.

2013-09-07 Thread Vibhu Rishi
Hi Nigel, You could also try using django-registration . I found that it made a lot of the things I was trying with user login/registration easier. Vibhu On Fri, Sep 6, 2013 at 8:05 PM, Nigel Legg wrote: > I have removed the form.is_valid check and renamed the view, this now > works (except

Re: Login not working.

2013-09-07 Thread Arun K Reddy
Nigel..the problem with your code is..the view is getting confused with the view name with original django login method. So, renaming you view is a great idea but istead you can do this from django.contrib.auth import login as auth_login and call auth_login instead of login after form validation.

Re: How to redorder app

2013-09-07 Thread Ranjith Kumar
Thanks Guys, but I'm aware of reordering fields... I'm problem is how to reorder models in django admin On Saturday, 7 September 2013 07:25:19 UTC+5:30, Germán wrote: > > If you mean reordering *apps*, as in which order the different apps are > arranged, I think there is no simple way. > > Reord

ImportError No module named django.core

2013-09-07 Thread pzul
Hello, I just installed Django-1.5.2 in a server (using command : python setup.py install) But now, as I'm expecting to create a new project (django-admin.py startproject mysite ), I have this message : ImportError No module named django.core What can I do ? Thank you ! -- You received this m

Re: What's the new "field" parameter in the ManyToOneRel __init__ function?

2013-09-07 Thread Mark Young
Er, it's not part of the API. You know what I mean. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this gr

Re: What's the new "field" parameter in the ManyToOneRel __init__ function?

2013-09-07 Thread Mark Young
Thank you! That tentatively fixes the issue. Now I just need to talk to the original author and make the code not use this API at all... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

Re: django security

2013-09-07 Thread Natko Perko
I browsed through books like Pro Django, Two scoops, Effective Django etc. and I pretty much found the same things as in the documentation. I was hoping to find, as I said before, a version for dummies with things explained from the basics or sowhat, like how does an attack works and how to pr

NoReverseMatch at /polls/

2013-09-07 Thread voger
Hi everyone. I am trying to walk through the polls tutorial. I am stuck at the part 4 after the change of the views from function based to class based. A search in Google brought plenty results but none of them seems to be related exactly to this situation or maybe it is over my head to underst

Re: NoReverseMatch at /polls/

2013-09-07 Thread voger
The previous message was delivered as a garbage due to html formating. I am sending it again as plain text. Hi everyone. I am trying to walk through the polls tutorial. I am stuck at the part 4 after the change of the views from function based to class based. A search in Google brought plenty

Re: Django-cms + Wymeditor + Heroku + AWS s3 + Cors

2013-09-07 Thread Zach Frank
Having this same problem... did you fix it? I'm using heroku, django-cms, s3 for static files and i'm getting the same domain origin error.. any new insights appreciated. Z On Thursday, October 11, 2012 12:57:30 PM UTC-5, Matteo Suppo wrote: > > I found this: > http://comments.gmane.org/gmane.

Re: [SOLVED] NoReverseMatch at /polls/

2013-09-07 Thread voger
Problem solved. I missed a step in the tutorial where name spacing in the root URLconf was discussed. I still don't understand it completely but the bottom line is that the line number 4 in the file index.html should be replaced with {{ poll.question }} On 09/07/2013 11:29 PM, voger wrote: T

Create and save records through ManyToManyField selection.

2013-09-07 Thread Trung Nguyen
I am new comer I struggle to save a record using admin page . What extra ethod should I add to save ContestScore record. Thanks. class School(models.Model): school_name = models.CharField(max_length=30) school_city = models.CharField(max_length=30) coach_name = models.CharField(max_le

Re: Django-cms + Wymeditor + Heroku + AWS s3 + Cors

2013-09-07 Thread Zach Frank
Having same problem.. did you figure anything out? Z On Thursday, October 11, 2012 12:57:30 PM UTC-5, Matteo Suppo wrote: > > I found this: > http://comments.gmane.org/gmane.comp.python.django.django-cms/1202 > > and I decided to use tinymce for now. It's not solved though. I will do > somethin

Re: Django: How to combine 3-party apps!

2013-09-07 Thread alekto . antarctica
Would appreciate if anyone had a tip so I can get started :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post t

Re: ImportError No module named django.core

2013-09-07 Thread voger
Hi, I am as noob as you so maybe this is a case of blind leading blind. From what I hear it is considered best practice to first create a virtualenv and then install django and any other packages inside that virtualenv. Read here for virtualenv http://dabapps.com/blog/introduction-to-pip-and-vi

Re: Geodjango and Kriging

2013-09-07 Thread Alex Mandel
On 09/06/2013 03:51 PM, Matthew Scotch wrote: > Hi, > > I am new to geodjango and was wondering if it has an API for kriging? > So far I have not been able to find anything. > Thanks, > Matthew > Not really, but you can tie into plenty of backends that give you kriging ability (Pass data from ge

Re: duplicate entry in django

2013-09-07 Thread Harjot Mann
On Wed, Sep 4, 2013 at 10:42 AM, Laurent Meunier wrote: > Can you show use the source code of the view where you create your entry in > the database? Sure. Here is the link to code: http://tny.cz/09090f4c -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy: http://harjotmann

Re: duplicate entry in django

2013-09-07 Thread Harjot Mann
On Wed, Sep 4, 2013 at 2:17 PM, Babatunde Akinyanmi wrote: > This is usually a side effect of not doing a redirect from the view > that handles your submitted form. How can I do it? I mean sometimes if there I fill the form again for same job no. It accepts the value on submitting. Why it is not

URL generation in django

2013-09-07 Thread Nafiul Islam
I've been busy exploring the different Python Web Frameworks, and it has been a rewarding experience. I wanted to ask regarding a certain feature that I found in Pyramid, and that is URL generation

Re: URL generation in django

2013-09-07 Thread Aaron C. de Bruyn
I believe this is what you are looking for: https://docs.djangoproject.com/en/1.5/topics/http/urls/#reverse-resolution-of-urls -A On Sat, Sep 7, 2013 at 8:17 PM, Nafiul Islam wrote: > I've been busy exploring the different Python Web Frameworks, and it has > been a rewarding experience. I want

Query executed two times in database (django 1.4, oracle 11g)

2013-09-07 Thread Germán
I'm not familiar with caching internals but perhaps the fact that you are using `raw` has something to do with your problem? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send