Re: int argument required error in HttpResponseRedirect

2010-01-16 Thread Cummins Group
It worked as follows: return HttpResponseRedirect('/userans/%s/%s/' % (uno,qno)) Thank you for helping.. On Sat, Jan 16, 2010 at 3:36 PM, Daniel Roseman wrote: > On Jan 16, 8:38 am, grp25 wrote: > > The code which we have written is > >

Re: NoReverseMatch:

2010-01-16 Thread Ian Lewis
Bhaskar, The error means that there is either no defined URL called 'tellfriend' or it requires some kind of argument, like a user id, to generate the URL. Having two separate forms with different actions is no problem. Fixing the URL reversing should clear up your issue. Ian On Sunday,

Re: myModel.Meta.abstract is unexpectedly False

2010-01-16 Thread pkghost
RTFM fail. Two times sorry for the spam. cb On Jan 16, 9:03 pm, pkghost wrote: > I've defined some abstract classes in my models.py, and yet, iterating > over them and inspecting the property always reports a False value. I > must admit to being a little befuddled. Any

NoReverseMatch:

2010-01-16 Thread Bhaskar Gara
Caught an exception while rendering: Reverse for 'tellfriend' with arguments '()' and keyword arguments '{}' not found. I have a html template which has two form My form1 action is empty and form 2 action is as above. I am getting error @ that line. 1) What is

myModel.Meta.abstract is unexpectedly False

2010-01-16 Thread pkghost
I've defined some abstract classes in my models.py, and yet, iterating over them and inspecting the property always reports a False value. I must admit to being a little befuddled. Any guidance will be appreciated. Cheers, cb -- You received this message because you are subscribed to the Google

Permission denied

2010-01-16 Thread Bhaskar Gara
Request Method: POST Request URL: Exception Type:IOError Exception Value:[Errno 13] Permission denied: u'Bhaskar_dsa.xml' Exception Location:/home/erp/webappserp_dev/erp/apps/erp_site/views.py in testimonials, line 238 Python Executable:/usr/local/bin/python Python Version:2.5.4 This is the

Re: Translation sprint in Montréal

2010-01-16 Thread Yannick Gingras
On January 16, 2010, Alex_Gaynor wrote: > Could you please make a page for this on the Django wiki, and add it > to the list here: http://code.djangoproject.com/wiki/Sprints Done. -- Yannick Gingras http://ygingras.net http://confoo.ca -- track coordinator http://montrealpython.org -- lead

Re: Translation sprint in Montréal

2010-01-16 Thread Alex_Gaynor
On Jan 16, 7:21 pm, Yannick Gingras wrote: > Hello guys, >   this is just a quick note to let you know that we're going to do a > sprint for French translation of the Django doc here in Montréal next > Monday: > >

Translation sprint in Montréal

2010-01-16 Thread Yannick Gingras
Hello guys, this is just a quick note to let you know that we're going to do a sprint for French translation of the Django doc here in Montréal next Monday: http://montrealpython.org/2010/01/15/django-translation-sprint-on-2010-01-18/ If you are in the area, feel free to drop by. --

Re: form.save() fails with no data, form.is_valid() is True

2010-01-16 Thread Alessandro Pasotti
2010/1/16 tom : > Hi, > > I have a form where I have added on clean method for a field and a > general clean method for the form. In generall I see a problem, when > trying to save the form. Here is a very simple test case, where I have > commented out the "clean" method of

Re: Custom filters and partial mark_safe?

2010-01-16 Thread pjrhar...@gmail.com
> Just as I feared. Thanks for the reply. It's not as bad as you fear! Just escape it, then apply your filter, then mark it all safe. You'll find the escape function in django.utils.html Peter -- You received this message because you are subscribed to the Google Groups "Django users" group.

MediaCore: An Open Source video and podcast CMS platform built on python & turbogears

2010-01-16 Thread Stuart Bowness
My company (http://simplestation.com) has just finished building our first big Open Source app, and thought we would share it with the Django community since we are using Python and the TG2 framework to power the whole web app, and there may be Django users who might find the web app useful. We

Re: Load template tags if installed?

2010-01-16 Thread Tomasz Zieliński
On 16 Sty, 20:31, "Aaron C. de Bruyn" wrote: > Am I missing an easy way to check if an application is installed > so I can make decisions in a template? > > I have an application that currently requires the comments framework > and django-attachments. > > I would rather make

form.save() fails with no data, form.is_valid() is True

2010-01-16 Thread tom
Hi, I have a form where I have added on clean method for a field and a general clean method for the form. In generall I see a problem, when trying to save the form. Here is a very simple test case, where I have commented out the "clean" method of the form: >>> from scrums.forms import SprintForm

Re: Filter on forms.ModelChoiceField(queryset=Image.objects.filter())

2010-01-16 Thread GoSantoni
Hi I'd like to use it in a forms.py to retrieve users own photos to attach to a blogpost. So actually this would do the job def __init__(self, *args, **kwargs): self.user = kwargs.pop('user') super(forms.Form, self).__init__(*args, **kwargs)

Re: Custom filters and partial mark_safe?

2010-01-16 Thread Andrew Turner
On 15 Jan, 12:57, Tomasz Zieliński wrote: > I'm not 100% sure, but after doing quick review of django/utils/ > safestring.py, > I would say that string is either safe or unsafe, it cannot be only > half-safe. Just as I feared. Thanks for the reply. -- You

Enter a valid value while saving fullname during registration

2010-01-16 Thread Praveen
urls.py url(r'^accounts/register/$',register, {'form_class':RegForm},name='registration_register'), form.py --- from registration.forms import * class RegForm(RegistrationForm): """ """ fullname =

Convert Joomla Template to Django Template

2010-01-16 Thread matt6486
Hi, I don't know anything about Django and honestly would rather stick with my current CMS, Joomla, as my current site design works fine with the Joomla template I have now. However, the journalism department will probably end up moving to a CMS based on Django called OchsCMS from their current

My Own Auth Backend

2010-01-16 Thread Détour Olivier
Hi, I would create my own auth backend. I tried to understand and trace source code. I want to create an internal DB with SHA1 and username. But I cannot login, Django says me I do not set DB ENGINE. I would not use something like MySQL or any DB Engine. Here is my source code: mybackend.py:

Load template tags if installed?

2010-01-16 Thread Aaron C. de Bruyn
Am I missing an easy way to check if an application is installed so I can make decisions in a template? I have an application that currently requires the comments framework and django-attachments. I would rather make them optional depending on the functionality needed by the user/hoster of my

Re: Save, Signals and Models

2010-01-16 Thread Eric Chamberlain
On Jan 15, 2010, at 4:22 PM, Victor Loureiro Lima wrote: > Here is the deal: > > class MyModel ( models.Model ): > title = models.CharField( max_length = 100 ) > only_me = models.BooleanField( default = False ) > > Question: Whats the proper way to guarantee that no matter how many >

Re: Only Email + Password ( without username )

2010-01-16 Thread Eric Chamberlain
On Jan 14, 2010, at 2:44 AM, nameless wrote: > I want to use "id" as identifier for each user. So every user will > have an url like this: > > http://www.example.com/827362 > > I don't want username for my project. > So, if I can't delete it, I think to insert email in username field > and I

Re: Error message has the wrong file path

2010-01-16 Thread Andrew Bialecki
Cool thanks, that was it. On Sat, Jan 16, 2010 at 11:55 AM, Karen Tracey wrote: > On Sat, Jan 16, 2010 at 11:49 AM, Andrew Bialecki < > andrew.biale...@gmail.com> wrote: > >> I'm in debug mode and the error message I'm getting sounds right but >> the file paths are wrong.

Re: Error message has the wrong file path

2010-01-16 Thread Karen Tracey
On Sat, Jan 16, 2010 at 11:49 AM, Andrew Bialecki wrote: > I'm in debug mode and the error message I'm getting sounds right but > the file paths are wrong. For instance, I know the module that's > failing is in /foo/bar/module.py, but it says the error occurred in >

Django site behind an Apache reverse proxy

2010-01-16 Thread AlK
Hi ! I developed a small Website querying some other sites in background like a "cron". The queries are handled in a separate thread that I can start and stop when I want from a simple web-interface. It works great on my development environment, when I launch the website using the "python

Error message has the wrong file path

2010-01-16 Thread Andrew Bialecki
I'm in debug mode and the error message I'm getting sounds right but the file paths are wrong. For instance, I know the module that's failing is in /foo/bar/module.py, but it says the error occurred in the module /baz/module.py which definitely no longer exists. The module used to located in the

Serving static files from subdomain.

2010-01-16 Thread nameless
I have a site developed with django at www.example.com I want that django insert/serve static files ( images, css, js, ect ) in/from media.example.com. I have edited settings.py: MEDIA_ROOT = 'http://media.miosito.it' MEDIA_URL = 'http://media.miosito.it' ADMIN_MEDIA_PREFIX =

Re: #django :You need to be identified to join that channel

2010-01-16 Thread nek4life
You probably have to register your Nickname with nickserv. http://oreillynet.com/pub/h/1940 On Jan 16, 7:59 am, NMarcu wrote: > Hello, > >     Somebody know why i get this message when I try to join django > channel from freenode irc: > #django :You need to be

Re: django production server upgrade now not serving images, scripts or css...

2010-01-16 Thread Daniel Roseman
On Jan 16, 9:32 am, Sam Walters wrote: > Hi, > The production server running centos was just upgraded and in apache > 1.3 the old httpd.conf file was moved to httpd.conf.bak. > I had to move my mod_wsgi + virtualhost entry over to the new > httpd.conf and recompiled mod_wsgi.

Re: django production server upgrade now not serving images, scripts or css...

2010-01-16 Thread Mike Ramirez
On Saturday 16 January 2010 01:32:21 Sam Walters wrote: > Hi, > The production server running centos was just upgraded and in apache > 1.3 the old httpd.conf file was moved to httpd.conf.bak. > I had to move my mod_wsgi + virtualhost entry over to the new > httpd.conf and recompiled mod_wsgi. > >

Re: OS X 10.6 Snow Leopard Setup Tutorial

2010-01-16 Thread dk
Thanks for posting this. You are right -- OSX is not an easy platform for development, because apple has nothing akin to apt-get. (Why they have not done this, I cannot guess. Surely it cannot be because people find macports and fink to be reliable and useful.) A couple of points: 1. I found

#django :You need to be identified to join that channel

2010-01-16 Thread NMarcu
Hello, Somebody know why i get this message when I try to join django channel from freenode irc: #django :You need to be identified to join that channel -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Sorting multi-level categories

2010-01-16 Thread Nianbig
Hi, I´m using this code todo a multi-level category Django-app: http://code.djangoproject.com/wiki/CookBookCategoryDataModelPostMagic However, I would like to sort these in alphabetical order on the parents first and then the childs... how can I do this? I have tried various settings for