Re: Error with django-registration

2010-05-02 Thread andy saksena
Thats been resolved James but there is another thing I'm having problems with and I'm sorry for asking so many questions. All I now want is to have a minimum of 6 characters in the password field. Thanks On May 3, 8:52 am, andy saksena wrote: > Hi James, > I got that smtp

Django user registration password field

2010-05-02 Thread andy saksena
Hi All, I am having the following error while using the dual password field : class DualPasswordWidget(forms.Widget): ^ SyntaxError: invalid syntax my views.py is # Create your views here. from django.shortcuts import render_to_response, get_object_or_404 from datetime import datetime

Re: Uploads in the Form Wizard

2010-05-02 Thread Wiiboy
What would be the best workaround (or is there one)? Perhaps overriding FormWizard.process_step()? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this

Re: Uploads in the Form Wizard

2010-05-02 Thread Wiiboy
Oh. Dang. Thanks for your help Russell. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Uploads in the Form Wizard

2010-05-02 Thread Russell Keith-Magee
On Mon, May 3, 2010 at 11:49 AM, Wiiboy wrote: > Is that in trunk (i.e. could I revert to an older SVN revision and > have it work)? Technically, yes, but you'd have to revert to a pre-1.0 revision. The FileField refactoring occurred over 2 years ago. Yours, Russ Magee %-)

Re: Uploads in the Form Wizard

2010-05-02 Thread Wiiboy
Is that in trunk (i.e. could I revert to an older SVN revision and have it 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-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Uploads in the Form Wizard

2010-05-02 Thread Russell Keith-Magee
On Mon, May 3, 2010 at 11:32 AM, Wiiboy wrote: > Hi guys, > I'm trying to use the form wizard for a model.  The problem is, I have > an ImageField in the last step, but I keep getting a "This field is > required" on it.  request.FILES contains the uploaded file, however. > >

Uploads in the Form Wizard

2010-05-02 Thread Wiiboy
Hi guys, I'm trying to use the form wizard for a model. The problem is, I have an ImageField in the last step, but I keep getting a "This field is required" on it. request.FILES contains the uploaded file, however. Can I use ImageField's in a Wizard? -- You received this message because you

Django with Java

2010-05-02 Thread xpanta
Hi, There is a project in which I need to add this library (http:// www.lindo.com/index.php?option=com_content=article=2=10). In the package there are programming examples for Java (among others). I have created some programms myself based on this programming samples. I was wondering if possible

Re: Following Django Book, get NameError when accessing certain page

2010-05-02 Thread kelp
Yes, I did that, but for some reason, it is still not working, here's the contents of my views.py: from django.http import HttpResponse from django.shortcuts import render_to_response import datetime def hello(request): return HttpResponse("Hello world") def search_form(request): return

Images in rss feeds with relative paths

2010-05-02 Thread Gozde
We have problems displaying images with relative paths in rss feeds. So if we have a feed body message with images in it, images don't show up in the feeds. Is there a way to tell Django to work-out paths independent of where it is running? Maybe using some sort of base url where Django can

Re: Following Django Book, get NameError when accessing certain page

2010-05-02 Thread Karen Tracey
On Sun, May 2, 2010 at 10:17 PM, kelp wrote: > Hello, > Thanks! That fixed the problem, but now I am getting another one. I am > getting an AttributeError now: > http://dpaste.com/190232/ > > Before the url pattern that references views.search_form, the book mentions adding:

Re: Following Django Book, get NameError when accessing certain page

2010-05-02 Thread kelp
Hello, Thanks! That fixed the problem, but now I am getting another one. I am getting an AttributeError now: http://dpaste.com/190232/ This shows up even when I access localhost:8000/hello/ or basically anything I have set up in urls.py On May 2, 6:49 pm, Karen Tracey wrote:

Re: Following Django Book, get NameError when accessing certain page

2010-05-02 Thread Karen Tracey
On Sun, May 2, 2010 at 8:41 PM, kelp wrote: > Hello, I am trying to learn Django through the documentation: > http://www.djangobook.com/en/2.0/chapter07/ > > I am having a view issue, though. When I try to access > http://127.0.0.1:8000/search-form/ after running my server, I

Following Django Book, get NameError when accessing certain page

2010-05-02 Thread kelp
Hello, I am trying to learn Django through the documentation: http://www.djangobook.com/en/2.0/chapter07/ I am having a view issue, though. When I try to access http://127.0.0.1:8000/search-form/ after running my server, I get the following error: http://dpaste.com/190212/ Here is what I have in

Creating models for testing

2010-05-02 Thread eka (Esteban)
Hi all I'm developing an app for a project and I would like to test it but with models that are not from the project itself nor from the app. So is there a way to create models that are used only in tests? In the way that they are created only at test run and not at a normal syncdb? Note: I'm

Re: Help with Filters

2010-05-02 Thread Magal, Ganesh
hey thanks for the website...it helped in solving the problem was with marking the content safe as HTML tags were getting inserted.. the working code is as below: *CODE*: def wikify(value, autoescape=None): result=wikilink.sub(r"\1", value) return mark_safe(result)

Re: Error with django-registration

2010-05-02 Thread andy saksena
Hi James, I got that smtp problem fixed by using gmail email function. But when it sends an activation key and I click it it takes me to failure message saying activation failed. and the account doesnt activates. whats going wrong. what can i do to fix this. On Apr 28, 5:10 pm, James Bennett

Re: Problems with Admin CSS

2010-05-02 Thread maxweld
On May 1, 6:23 pm, Daniel Roseman wrote: > > The WSGIScriptAlias is stealing everything from \, so you need to > explicitly exclude paths from being handled by WSGI. > Many thanks for the explanation. Its starting to make sense now. -- You received this message because

Re: Nesting model forms with admin

2010-05-02 Thread Spaceman Paul
I can't find the ticket, Matt. If you could forward me a link, or just dig that patch up for me, I'd greatly appreciate it. Paul. On May 2, 8:41 pm, Matt Schinckel wrote: > I have a patch: it was a while ago, but I was about to dig it up > again. > > In the meantime, there

Re: Help with Filters

2010-05-02 Thread rebus_
On 3 May 2010 00:46, rebus_ wrote: > On 3 May 2010 00:34, Magal, Ganesh wrote: >> I have created a filter which wikifies (i.e.  input text of the form >> HelloWorld to an output with rendered font like say - HelloWorld ). The >> problem is that when I

Re: Help with Filters

2010-05-02 Thread rebus_
On 3 May 2010 00:34, Magal, Ganesh wrote: > I have created a filter which wikifies (i.e.  input text of the form > HelloWorld to an output with rendered font like say - HelloWorld ). The > problem is that when I apply the filter, it is not getting rendered. Below > is the 

Help with Filters

2010-05-02 Thread Magal, Ganesh
I have created a filter which wikifies (i.e. input text of the form *H*ello *W*orld to an output with rendered font like say - *HelloWorld* ). The problem is that when I apply the filter, it is not getting rendered. Below is the code for the filter and the output text in HTML *CODE:* from

Re: how to exclude objects with manytomany

2010-05-02 Thread Bill Freeman
Do you want, as your first posting says, to select players not on your team, that is, have a queryset that returns such, or do you want a single or multi-select field on a form having those players, as playing with self.field['members'] in your second post would seem to imply? You need the first

Re: models as a package

2010-05-02 Thread Bill Freeman
Does your __init__.py import the otehr files, or does it import the models from them? If the former, then model Foo in foo.py of the models package of app bar must be referred to as bar.models.foo.Foo, whereas in the later case, as with having everything in a models.py file, bar.models.Foo will

Re: Problem with letters like ÄÖÕÜ in django adm in

2010-05-02 Thread Bill Freeman
As far as breakpoints go, realize that you can only use them from the development server ("python manage.py runserver"), and that pdb shows up in the terminal where you ran that command, and it must still be showing. But since the data isn't in the expected format in the database, the particular

Re: NoReverseMatch for authentication app views

2010-05-02 Thread Alper KANAT
reverse("django.contrib.auth.views.login") doesn't work in a fresh django project too! Any ideas? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this

Re: Django-grappelli issue

2010-05-02 Thread Scot Hacker
On May 1, 10:12 pm, Tran Cao Thai wrote: > I discovered the grappelli app today and just set up it. However, the admin > site doesn't look as good as the screenshot from the site. Here is the > screenshot of my admin page > >

Re: Is it safe to alter Django generated tables in MySQL to have composite PK?

2010-05-02 Thread Nick Arnett
On Sat, May 1, 2010 at 11:13 AM, Continuation wrote: > > On Apr 30, 9:42 pm, Nick Arnett wrote: > > > If you don't have data in the table, just drop it and use > "unique_together" > > in models.py to define your composite key. You'll find that in

Re: NoReverseMatch for authentication app views

2010-05-02 Thread Alper KANAT
> > In [1]: from django.core.urlresolvers import reverse > > In [2]: reverse("login") > --- > NoReverseMatchTraceback (most recent call last) > > /Users/tunix/Projects/raptiye/raptiye/ in () > >

Re: NoReverseMatch for authentication app views

2010-05-02 Thread ofri
Did you try: reverse("login") ? when you define this url, you're using patterns('django.contrib.auth.views', url(r'^login/$', 'login', { 'template_name': 'login.html' }, name='login'), the last parameter names it 'login' On 2 מאי, 16:10, Alper KANAT wrote: >

Re: Django-grappelli issue

2010-05-02 Thread patrickk
looks like you´re using either the wrong templates or the stylesheets are not loaded properly. regards, patrick On 2 Mai, 07:12, Tran Cao Thai wrote: > I discovered the grappelli app today and just set up it. However, the admin > site doesn't look as good as the

NoReverseMatch for authentication app views

2010-05-02 Thread Alper KANAT
Hey There, I'm stuck here for almost 1 week so really appreciate any help. What I'm trying to do is to get the reverse URL for login view for example. So I do the following: In [1]: from django.core.urlresolvers import reverse > > In [2]: reverse("django.contrib.auth.views.login") >

Re: Is it safe to alter Django generated tables in MySQL to have composite PK?

2010-05-02 Thread johan sommerfeld
I tried this before and I think it was the admin app that broke. Also ser this link http://code.djangoproject.com/wiki/MultipleColumnPrimaryKeys /J On Saturday, May 1, 2010, Continuation wrote: > > On Apr 30, 9:42 pm, Nick Arnett wrote: > >> If you don't have data in the table, just drop it

override a form field, to allow usernames with '@'

2010-05-02 Thread Rob
Hi, I'm trying to allow usernames that have '@' in them, so they can just be email addresses. Maybe this is a bad idea. ... But putting that aside for a second... The admin user forms don't validate with '@' in usernames, so I thought I'd try this, which I copied from an older post in this

Re: Nesting model forms with admin

2010-05-02 Thread Matt Schinckel
I have a patch: it was a while ago, but I was about to dig it up again. In the meantime, there is an open ticket - I think my patch is attached. Matt On Apr 20, 10:49 am, Spaceman Paul wrote: > I'm looking at extending the django admin app for a project, as it > does

Re: add button to admin change list at row level.

2010-05-02 Thread Daniel Roseman
On May 2, 4:29 am, Wayne wrote: > Hi, > > We are trying to customize Django admin change list displaying model > objects. We want to add two buttons (Change, delete) to each row of > the record, something very similar to "Add" and "Change" buttons on > application list