Re: Django Registration Error (Does not return from SMTP call)

2008-04-25 Thread Szaijan
Thanks stranger, this is what I tried originally (libgmail and the suggested alteration to django-registration), but got the same behavior. No help there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: is_valid() name change?

2008-04-25 Thread Thomas Guettler
dimrub schrieb: > I don't think having a function with such a profound side effect (such > as making clean_data available) is a good idea. Very counter- > intuitive, IMHO. Why not split it into two: > > I don't think this side effect is bad. But I think it is black magic, that cleaned_data is s

Re: is_valid() name change?

2008-04-25 Thread Malcolm Tredinnick
On Fri, 2008-04-25 at 09:37 +0200, Thomas Guettler wrote: [...] > I wrote > a ticket some time ago. If you care, please leave > a comment: > > http://code.djangoproject.com/ticket/6675 I don't want to sound mean, but please don't. The utility of tickets isn't evaluated by the number of "me to

Re: Rendering HTML stored in database

2008-04-25 Thread [EMAIL PROTECTED]
You may also want to look at this thread for a more extensive discussion of exactly this subject: http://groups.google.com/group/django-users/browse_thread/thread/242cc194a1a7b6fe/81fb9a60ffb8d233?#81fb9a60ffb8d233 On Apr 25, 1:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > There is a sa

Using TinyMCE with django-admin breaks django's javascript with ForeignKey(raw_id_admin=True)

2008-04-25 Thread Tomas Jacobsen
Hi. Im using the latest svn of django (SVN 7457) and the latest release of TinyMCE (3.0.7) When I use TinyMCE in django-admin, my ForeignKey field, with option raw_id_admin=True, I can't select an Item. The link that usually insert the Item ID into the ForeignKey field, simply redirects me to th

problem with i18n in admin interface

2008-04-25 Thread Kenneth Gonsalves
hi, am using revision 7457. I just noticed that in the admin interface, the following are not being translated: add select to change for example on the main index: in english: 'areas' in finnish: 'Alueet' no problem but in the add screen: in english: Add area in finnish: Uusi area (the word 'ar

Re: problem with i18n in admin interface

2008-04-25 Thread Malcolm Tredinnick
On Fri, 2008-04-25 at 12:54 +0530, Kenneth Gonsalves wrote: > hi, > > am using revision 7457. I just noticed that in the admin interface, > the following are not being translated: > add > select to change > for example on the main index: > in english: 'areas' > in finnish: 'Alueet' > no proble

Re: is_valid() name change?

2008-04-25 Thread Thomas Guettler
Malcolm Tredinnick schrieb: > On Fri, 2008-04-25 at 09:37 +0200, Thomas Guettler wrote: > [...] > > >> I wrote >> a ticket some time ago. If you care, please leave >> a comment: >> >> http://code.djangoproject.com/ticket/6675 >> > > I don't want to sound mean, but please don't. The utilit

Re: is_valid() name change?

2008-04-25 Thread Kenneth Gonsalves
On 25-Apr-08, at 3:58 PM, Thomas Guettler wrote: >> ticket. It's always taken into account that there is often more >> than one >> person wishing for any particular feature or bug fix. >> >> > How can you know how many people have this problem, if nobody says > "me too", > or "patch works fo

Templates: 'block' tag with name 'title' appears more than once

2008-04-25 Thread Grupo Django
Hello, I have this template code: {% block title %}{% endblock %} And I get the error: 'block' tag with name 'title' appears more than once. What could I do to make this work? I have this in all my templates: {% extends index.html %} {% block title %}Here the title{% endblock %} Thank you. -

Re: is_valid() name change?

2008-04-25 Thread Malcolm Tredinnick
On Fri, 2008-04-25 at 12:28 +0200, Thomas Guettler wrote: > Malcolm Tredinnick schrieb: > > On Fri, 2008-04-25 at 09:37 +0200, Thomas Guettler wrote: > > [...] > > > > > >> I wrote > >> a ticket some time ago. If you care, please leave > >> a comment: > >> > >> http://code.djangoproject.com/t

Django article on Digital Web Magazine

2008-04-25 Thread Dan Ellis
In response to a request on this mailing list, I recently wrote an introductory Django article for Digital Web Magazine. It's now online at http://www.digital-web.com/articles/intro_to_django_helping_perfectionists_with_deadlines/ Enjoy! --~--~-~--~~~---~--~~ You

Re: Adding new language for i18n

2008-04-25 Thread Mihai Damian
Ticket opened here: http://code.djangoproject.com/ticket/7084 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe fr

weird error

2008-04-25 Thread Matias Surdi
With the following model: class Candidate(models.Model): name = models.CharField(max_length=100,unique=True) file = models.FileField(upload_to="curriculums/%Y/%m/%d",max_length=300) def _get_FIELD_url(self,field): return "http://www.google.es"; if getattr(self,

django-users@googlegroups.com

2008-04-25 Thread mbdtsmh
Hi all - In the standard admin page for the latest svn release I'm having problems rendering html correctly in the table. Some of my text fields contain html markup: link to google for example. However, when I render these fields (using the change_list.html admin template) i get <, > for some o

weird error [corrected]

2008-04-25 Thread Matias Surdi
Sorry, there was an error in the previous message: With the following model: class Candidate(models.Model): name = models.CharField(max_length=100,unique=True) file = models.FileField(upload_to="curriculums/%Y/%m/%d",max_length=300) def _get_FIELD_url(self,field): retur

django-users@googlegroups.com

2008-04-25 Thread Malcolm Tredinnick
On Fri, 2008-04-25 at 04:27 -0700, mbdtsmh wrote: > Hi all - In the standard admin page for the latest svn release I'm > having problems rendering html correctly in the table. > > Some of my text fields contain html markup: www.google.com>link to google for example. > > However, when I render

weird error [corrected]

2008-04-25 Thread Matias Surdi
Sorry, there was an error in the previous message: With the following model: class Candidate(models.Model): name = models.CharField(max_length=100,unique=True) file = models.FileField(upload_to="curriculums/%Y/%m/%d",max_length=300) def _get_FIELD_url(self,field): retur

Re: Rendering HTML stored in database

2008-04-25 Thread Brandon Taylor
Thanks Gents! Exactly what I was looking for. Brandon On Apr 25, 3:25 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > You may also want to look at this thread for a more extensive > discussion of exactly this > subject:http://groups.google.com/group/django-users/browse_thread/thread/242c..

Re: weird error [corrected]

2008-04-25 Thread Matias Surdi
Matias Surdi escribió: > Sorry, there was an error in the previous message: > > > With the following model: > > class Candidate(models.Model): > name = models.CharField(max_length=100,unique=True) > file = > models.FileField(upload_to="curriculums/%Y/%m/%d",max_length=300) > > d

Re: Flatpages for static HTML pages?

2008-04-25 Thread Rodney Topor
I see. Thank you. I now see that I could also treat a static HTML page as a media object and use the method described at http://www.djangoproject.com/documentation/static_files/ of the documentation. Rodney On Apr 25, 1:55 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 4/24/08, Rodney Topor

404 on admin media files and mod_python

2008-04-25 Thread Ben
Hello The issue of how to serve the admin media files using mod_python has been dealt with several times before, and AFAICS I've followed the advice given (and the documentation), but I still get a 404 on the admin media files. I've already removed "Apache expert" from my CV. Any suggestion

Re: 404 on admin media files and mod_python

2008-04-25 Thread Darryl Ross
Ben wrote: #urls.py: urlpatterns = patterns('', (r'^requests/', include('mysite.requests')), (r'^admin/', include('django.contrib.admin.urls')), (r'^admin_media/', include('django.contrib.admin.urls')), ) You don't need admin_media in the urls.py file as it shouldn't make it as

Re: Adding new language for i18n

2008-04-25 Thread Chatchai Neanudorn
Thanks for opening a ticket. Regards 2008/4/25 TMihai Damian <[EMAIL PROTECTED]>: > > Ticket opened here: > > http://code.djangoproject.com/ticket/7084 > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: weird error [corrected]

2008-04-25 Thread Karen Tracey
On Fri, Apr 25, 2008 at 8:02 AM, Matias Surdi <[EMAIL PROTECTED]> wrote: > > Matias Surdi escribió: > > Sorry, there was an error in the previous message: > > > > > > With the following model: > > > > class Candidate(models.Model): > > name = models.CharField(max_length=100,unique=True) > >

Re: 404 on admin media files and mod_python

2008-04-25 Thread Karen Tracey
On Fri, Apr 25, 2008 at 8:03 AM, Ben <[EMAIL PROTECTED]> wrote: > > Hello > > The issue of how to serve the admin media files using mod_python has been > dealt with several times before, and AFAICS I've followed the advice given > (and the documentation), but I still get a 404 on the admin media f

Need help with a custom (should be simple) model field

2008-04-25 Thread the devel
Here is the code http://dpaste.com/46877/ . I keep getting the error: __init__() got an unexpected keyword argument 'is_required' and the location is at: django/newforms/fields.py in __init__, line 566 Any help would be appreciated. Thanks. --~--~-~--~~~---~--~---

Re: sys.path on freebsd 6.2 HALP!

2008-04-25 Thread Rajesh Dhawan
> > On Apr 24, 5:17 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > > ImportError: Could not import settings 'frobnitz.settings' (Is it on > > > sys.path? Does it have syntax errors?): No module named > > > frobnitz.settings > > > So as the error clearly asks you: > > > 1. Does your frobnitz/se

Translation issues in admin app

2008-04-25 Thread Boris Ozegovic
Croatian language has many declination rules, and therefore, only two meta rules (verbose_name and verbose_name_plural) aren't enough. Can I somehow modified translation rules, and have exact model word on exact admin pages. for example, if model name is 'robot', can i have 'dodaj robota' on fi

Re: 404 on admin media files and mod_python

2008-04-25 Thread Ben
> Darryl wrote: > You don't need admin_media in the urls.py file as it shouldn't make it > as far as Django. Thanks for your reply. I agree, but desperation made me doubt what I knew > Unless you've copied the media files from the Django source into your > web root, it needs to point at the ad

Re: Translation issues in admin app

2008-04-25 Thread Malcolm Tredinnick
On Fri, 2008-04-25 at 14:45 +0200, Boris Ozegovic wrote: > Croatian language has many declination rules, and therefore, only two > meta rules (verbose_name and verbose_name_plural) aren't enough. Can > I somehow modified translation rules, and have exact model word on > exact admin pages. for e

Re: Does request.is_ajax() really work?

2008-04-25 Thread Patrick Lv
Hi Alex, What I am talking about is this: http://code.djangoproject.com/ticket/6616 On Sat, Apr 19, 2008 at 10:28 PM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > What is `is_ajax` method? > > On Apr 19, 4:06 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > I have made up a view to chec

Re: 404 on admin media files and mod_python

2008-04-25 Thread Ben
Karen wrote: > If you include the trailing slash on the first part (url-path), then you > need to include it also on the second part. Thanks for your reply. I now have the trailing slash in both places, but still a 404 >> > > Check the error log as well, this will print out the actual file n

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread Malcolm Tredinnick
On Fri, 2008-04-25 at 05:53 -0700, the devel wrote: > Here is the code http://dpaste.com/46877/ . I keep getting the error: > > __init__() got an unexpected keyword argument 'is_required' > > and the location is at: > > django/newforms/fields.py in __init__, line 566 For the future, this trim

edit inline in newforms

2008-04-25 Thread Ramdas S
Is there anyway to get the edit_inline inside a form using newforms? I am on latest SVn but not using django-newforms-admin Any help is welcome --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: 404 on admin media files and mod_python

2008-04-25 Thread Karen Tracey
On Fri, Apr 25, 2008 at 8:59 AM, Ben <[EMAIL PROTECTED]> wrote: > > Karen wrote: > > If you include the trailing slash on the first part (url-path), then you > > need to include it also on the second part. > > Thanks for your reply. I now have the trailing slash in both places, but > still a 404

Re: 404 on admin media files and mod_python

2008-04-25 Thread Ben
Karen wrote: > You did restart apache after making the change? Yes > the error log that will show the cause of the 404 (assuming the url is > being > handled by apache itself), since it is where you will see the actual file > name apache is trying to access. If you see nothing about the admin

Re: 404 on admin media files and mod_python

2008-04-25 Thread Karen Tracey
On Fri, Apr 25, 2008 at 9:37 AM, Ben <[EMAIL PROTECTED]> wrote: > > Karen wrote: > > You did restart apache after making the change? > Yes > > > > the error log that will show the cause of the 404 (assuming the url is > > being > > handled by apache itself), since it is where you will see the actu

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread the devel
Well I don't have the error anymore, I simply added a tuple of choices and no error resulted in the admin interface, but not its only a drop down select rather than a multi select and the name is wrong. It is displaying the length of the varchar as the name rather than 'Demographics'. --~--~--

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread the devel
I apologize for the lack of information, I am not very good at debugging yet, so I do not always know what is needed to determine the cause of the error. This is the traceback for the is_required error (not sure if this is helpful): args() choices () help_text None initial

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread the devel
Fixed the name issue. Just not multi-select issue. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this grou

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread Karen Tracey
On Fri, Apr 25, 2008 at 9:50 AM, the devel <[EMAIL PROTECTED]> wrote: > > Well I don't have the error anymore, I simply added a tuple of choices > and no error resulted in the admin interface, but not its only a drop > down select rather than a multi select and the name is wrong. It is > displayin

Re: 404 on admin media files and mod_python

2008-04-25 Thread Ben
Karen wrote: > Where in your apache config is the relative to your > Django block?  It sounds like you need to reverse > the order, so that the admin_media location over-rides the Django one, not > vice-versa. Thats it! Your'e a star! I've put the admin_media stuff below the Django block a

Re: Are any of you successfully running Django on IIS?

2008-04-25 Thread jmDesktop
Do you think at best that running Django or any Python program on IIS is a "hack"? I don't mean that offensive to anyone, but it may have never been and still not intended for IIS. On Apr 24, 1:54 pm, "Justin Lilly" <[EMAIL PROTECTED]> wrote: > I finally got it working. You can check out the res

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread Malcolm Tredinnick
On Fri, 2008-04-25 at 06:57 -0700, the devel wrote: > http://dpaste.com/46896/ > > This is my code up to this point. I just simply need a multiselect box > rather than a dropdown. No, that isn't the code you're using. You mentioned that you're not seeing the word "Demographics" and that word do

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread the devel
I apologize.. i meant Living with, Demographics is the model, Living with is the table. This is the correct code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread the devel
http://dpaste.com/46896/ This is my code up to this point. I just simply need a multiselect box rather than a dropdown. On Apr 25, 9:55 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 9:50 AM, the devel <[EMAIL PROTECTED]> wrote: > > > Well I don't have the error anymore,

Re: weird error [corrected]

2008-04-25 Thread Matias Surdi
Karen Tracey escribió: > On Fri, Apr 25, 2008 at 8:02 AM, Matias Surdi <[EMAIL PROTECTED] > > wrote: > > > Matias Surdi escribió: > > Sorry, there was an error in the previous message: > > > > > > With the following model: > > > > clas

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread Malcolm Tredinnick
On Sat, 2008-04-26 at 00:02 +1000, Malcolm Tredinnick wrote: > > On Fri, 2008-04-25 at 06:57 -0700, the devel wrote: > > http://dpaste.com/46896/ > > > > This is my code up to this point. I just simply need a multiselect box > > rather than a dropdown. > > No, that isn't the code you're using.

Re: Curious error

2008-04-25 Thread Karen Tracey
On Fri, Apr 25, 2008 at 10:06 AM, Ramdas S <[EMAIL PROTECTED]> wrote: > I am on the latest SVN. When I just tried syncdb. > > I got this error about xml.sax as in this paste bin > > http://dpaste.com/46898/ > > any help or advice > Paste shows the original exception to be: from xml.sax.saxut

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread the devel
> By the way, one thing that does stick out is that (a) you're attempting > to change the order of the initialisation arguments in your __init__ > method from the standard Field order, which is really fragile and (b) > your __init__ method is pointless. Just remove your __init__ method, > since Fi

Re: Curious error

2008-04-25 Thread Ramdas S
No. I have not! I am facing this problem after upgrading to the latest. RS On Fri, Apr 25, 2008 at 7:53 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 10:06 AM, Ramdas S <[EMAIL PROTECTED]> wrote: > >> I am on the latest SVN. When I just tried syncdb. >> >> I got this erro

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread the devel
So the code is down to this now cause everything else seemed not needed. http://dpaste.com/46900/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

override get_FOO_url()

2008-04-25 Thread Matias Surdi
is it possible to override get_FOO_url() for a FileField in a model? if not: What is the recommended way to require login for users to download a file? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Are any of you successfully running Django on IIS?

2008-04-25 Thread Justin Lilly
Yes. I do think its a hack and it very much feels that way when setting it up. If I had to do it again.. I'd avoid it at all costs. -justin On Fri, Apr 25, 2008 at 10:01 AM, jmDesktop <[EMAIL PROTECTED]> wrote: > > Do you think at best that running Django or any Python program on IIS > is a "hac

Re: Curious error

2008-04-25 Thread Karen Tracey
On Fri, Apr 25, 2008 at 10:26 AM, Ramdas S <[EMAIL PROTECTED]> wrote: > No. I have not! I am facing this problem after upgrading to the latest. > > RS > > > On Fri, Apr 25, 2008 at 7:53 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > >> On Fri, Apr 25, 2008 at 10:06 AM, Ramdas S <[EMAIL PROTECTED]>

Curious error

2008-04-25 Thread Ramdas S
I am on the latest SVN. When I just tried syncdb. I got this error about xml.sax as in this paste bin http://dpaste.com/46898/ any help or advice --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Curious error

2008-04-25 Thread Ramdas S
My apologies Karen, I have a root directory called xml where some xml files are created. That is the problem. Never noticed the same Ramdas On Fri, Apr 25, 2008 at 8:06 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 10:26 AM, Ramdas S <[EMAIL PROTECTED]> wrote: > >> No.

Re: Does request.is_ajax() really work?

2008-04-25 Thread Louis Orenstein
Could you print out what the request.META.get('HTTP_X_REQUESTED_WITH') method returns?  Maybe the request doesn't have that property set correctly, or maybe the HTTP_X_REQUESTED_WITH value isn't the proper thing to "get" from META ? Patrick Lv wrote: Hi Alex, What I am talking about is thi

Re: Translation issues in admin app

2008-04-25 Thread Arien
On Fri, Apr 25, 2008 at 7:45 AM, Boris Ozegovic <[EMAIL PROTECTED]> wrote: > Croatian language has many declination rules, and therefore, only two > meta rules (verbose_name and verbose_name_plural) aren't enough. Can > I somehow modified translation rules, and have exact model word on > exac

Complex Django Hosting

2008-04-25 Thread Josh
I'm working on what will end up being a large, high-traffic, multi- site project. Currently we're just using a basic Webfaction account for hosting during development and testing, but I'm trying to figure out what would be the best approach to hosting moving forward. Ideally, we would have multip

Re: GenericRelation error

2008-04-25 Thread Eric Abrahamsen
>> When I try to view an Entry object in the admin, it gives me a >> KeyError, saying "Could not find Formfield or InlineObjectCollection >> named 'series'". I don't really know what this means... > > It means that generic relations are not supported in the admin > interface. You can't use them th

Re: GenericRelation error

2008-04-25 Thread Malcolm Tredinnick
On Fri, 2008-04-25 at 08:54 -0700, Eric Abrahamsen wrote: > >> When I try to view an Entry object in the admin, it gives me a > >> KeyError, saying "Could not find Formfield or InlineObjectCollection > >> named 'series'". I don't really know what this means... > > > > It means that generic relati

Re: Complex Django Hosting

2008-04-25 Thread Justin Lilly
If you can get to 25k / mo. uniques, you can host on Joyent for free (in exchange.. you give them your user's info). Sure, its a bit shady.. but if you need decent hosting on the cheap... -justin On Fri, Apr 25, 2008 at 11:44 AM, Josh <[EMAIL PROTECTED]> wrote: > > I'm working on what will end u

Re: Reusing a child block in an inherited template

2008-04-25 Thread Filipe Correia
I'm now turned to using the workaround of extracting the block I want to reuse to an additional file, and include every time I need it (which is always on the same template inheritance line). This feels like cheating though. It would be a lot cleaner if I could just reference the base template's b

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread phillc
living_with = MultipleChoiceField(max_length = 200, choices = LIVING_WITH, blank = True) add widget = forms.CheckboxSelectMultiple label='Living with:' On Apr 25, 10:28 am, the devel <[EMAIL PROTECTED]> wrote: > So the code is down to this now cause everything else seemed not > needed. > > http

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread the devel
> living_with = MultipleChoiceField(max_length = 200, choices = > LIVING_WITH, blank = True) > > add > > widget = forms.CheckboxSelectMultiple > label='Living with:' This is what I have after those changes http://dpaste.com/46916/ , but in the admin interface now, the label changes to: : and th

Re: Are any of you successfully running Django on IIS?

2008-04-25 Thread jmDesktop
Thank. I have it running, sort of. It doesn't seem to be using urls.py, but I can run helloworld.py if I put in the full URL, so it is importing django items, but not using urls. On Apr 25, 10:30 am, "Justin Lilly" <[EMAIL PROTECTED]> wrote: > Yes. I do think its a hack and it very much feels t

Re: Complex Django Hosting

2008-04-25 Thread Alex Morega
On Apr 25, 2008, at 18:44 , Josh wrote: > > Does anyone have any recommendation for the best approach to hosting > here, and what hosting company might be a good fit? I know that > MediaTemple can certainly accommodate our needs, but I've had a lot of > trouble in the past getting Django running

Re: Templates: 'block' tag with name 'title' appears more than once

2008-04-25 Thread Marty Alchin
On Fri, Apr 25, 2008 at 6:35 AM, Grupo Django <[EMAIL PROTECTED]> wrote: > I have this template code: > {% block title %}{% endblock %} > > > And I get the error: 'block' tag with name 'title' appears more than > once. > > What could I do to make this work? I don't know if it's suitable fo

Re: File upload with no database - Fantasy or reality?

2008-04-25 Thread python_fan
Hm... I think I'm still missing something. All I get on the web page is 'None'. Any ideas? On Apr 22, 10:51 am, python_fan <[EMAIL PROTECTED]> wrote: > On Apr 22, 10:32 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > > > On 22-Apr-08, at 1:23 PM, python_fan wrote: > > > >>> Can I see a wor

Best way to handle exceptions in Model pre-save...

2008-04-25 Thread radioflyer
Hello group, Below is code for manual pre-save integrity check. I think what I want is for the Validation Error (or an Integrity Error if I go that way) to end up in forms.errors. >From the form, I was doing: return HttpResponseRedirect(reverse(student, args=[s.id])) when I had a validation err

Re: File upload with no database - Fantasy or reality?

2008-04-25 Thread python_fan
Hm... seems like I'm still missing something. All I get on the web page is 'None'. Any ideas? Rustam On Apr 22, 10:51 am, python_fan <[EMAIL PROTECTED]> wrote: > On Apr 22, 10:32 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > > > On 22-Apr-08, at 1:23 PM, python_fan wrote: > > > >>> Can

Re: I'm not getting URL's. Help!

2008-04-25 Thread [EMAIL PROTECTED]
If you're using the svn version, I would recommend using named URLs. http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: weird error

2008-04-25 Thread Rajesh Dhawan
On Apr 25, 7:25 am, Matias Surdi <[EMAIL PROTECTED]> wrote: > With the following model: > > class Candidate(models.Model): >      name = models.CharField(max_length=100,unique=True) >      file = > models.FileField(upload_to="curriculums/%Y/%m/%d",max_length=300) > >      def _get_FIELD_url(self

Re: Complex Django Hosting

2008-04-25 Thread Josh
Yeah, that's a bit shady... This is going to be for a fairly large, reputable website that I'm redeveloping in Django, so we're more inclined to pay for non-shadiness. Cool idea though. On Apr 25, 12:08 pm, "Justin Lilly" <[EMAIL PROTECTED]> wrote: > If you can get to 25k / mo. uniques, you can

Re: Complex Django Hosting

2008-04-25 Thread Josh
I've heard a couple people recommend Slicehost. I'm going to check them out (for the price, might as well). Seems like they'll be good. Can't wait until it's possible for them to offer FreeBSD slices though. Gentoo will do for now. On Apr 25, 1:12 pm, Alex Morega <[EMAIL PROTECTED]> wrote: > On A

Re: Generic relation issues, can't delete objects

2008-04-25 Thread Josh
That was it! Thanks. :) On Apr 3, 8:09 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 2, 2008 at 6:00 PM, Josh <[EMAIL PROTECTED]> wrote: > > > Sorry, here's the full traceback: > > > Environment: > > > Request Method: GET > > Request URL: > >http://myproject.webfactional.com/admin/w

Re: how do designers create content

2008-04-25 Thread blis102
I love doing XHTML/CSS, but of course development gets more work/money/ jobs/ladies (j.k.) I started out with Flash, then moved onto XHTML/ CSS, then Javascript, then PHP, then Django, which I think is a good progression so that you understand the whole gamut of web development and can interface w

Re: Need help with a custom (should be simple) model field

2008-04-25 Thread Karen Tracey
On Fri, Apr 25, 2008 at 12:56 PM, the devel <[EMAIL PROTECTED]> wrote: > > > living_with = MultipleChoiceField(max_length = 200, choices = > > LIVING_WITH, blank = True) > > > > add > > > > widget = forms.CheckboxSelectMultiple > > label='Living with:' > > This is what I have after those changes h

Same Filter Drop down on many pages , how to achieve DRY?

2008-04-25 Thread ydjango
I have same filter drop down (select) on many pages. With options coming from database. it is "VIEW" then options drop down and a go button. Based on user selection on this drop down the data on the page is filtered and shown. ( I will store this selection in session and all other pages in session

two choices questions

2008-04-25 Thread dimrub
Greetings, all! Two (possibly - trivial) questions regarding a field that has 'choices' defined for it. 1. Is there a way to specify a special choice, upon which another field becomes active? A typical use case is to have a certain set of predefined values (out of which the user will USUALLY cho

Re: two choices questions

2008-04-25 Thread dimrub
On Apr 25, 11:57 pm, dimrub <[EMAIL PROTECTED]> wrote: > Greetings, all! > Oh, forgot to mention: I'm trying to use admin views. I do realize question #2 has a trivial solution if a non-admin view is used (and, come to think of it, #1 does as well). --~--~-~--~~~---~

Re: two choices questions

2008-04-25 Thread dimrub
OK, I solved #1. Indeed, the solution is trivial, but I had to trouble this group in order to get to it - as always :(. Here's the solution, in case anyone may find it helpful. It's a JS defined using the model's js attribute. I'm not much of a JS coder, so please don't hold the quality of this c

Re: Django Registration Error (Does not return from SMTP call)

2008-04-25 Thread Szaijan
Previously, when I'd used libgmail, I got an error, rather than the failure to return behavior I am getting using sendmail. When I comment out the EMAIL settings in settings.py, and using the libgmail fix, I get the following error: error at /visionary/accounts/register/ (49, "Can't assign reque

Re: Complex Django Hosting

2008-04-25 Thread Brian
I've been a Slicehost customer for about 3 months now, and will second the recommendation. Granted, I only run Django in FCGI mode with lighttpd on their 256 slice, but they've been extremely reliable, and it "just works." If I needed to host something larger, I'd definitely use them. The fact tha

Re: Having a instance of a model object instantiate another

2008-04-25 Thread jrmorrisnc
So, I have it doing what I want now: class Event(models.Model): date = models.DateTimeField() description = models.TextField() def __init__(self, *args, **kwargs): models.Model.__init__(self, *args, **kwargs) self.checklist = CheckList(se

Re: Complex Django Hosting

2008-04-25 Thread Jeff Anderson
Josh wrote: I've heard a couple people recommend Slicehost. I'm going to check them out (for the price, might as well). Seems like they'll be good. Can't wait until it's possible for them to offer FreeBSD slices though. Gentoo will do for now. I too can recommend using a vps on slicehost. It i

Re: FTP upload of files threw django

2008-04-25 Thread bedros
I'm in no way claiming to be an expert in django or in web development, but the following example on how to implement file upload progress in Nginx web server may help. It should be very similar to lighttpd web server. Assuming you're using a separate static file server so you don't involve python

Advice on RequestContext

2008-04-25 Thread Richard Atkinson
Hello all! Been lurking for a while, this is my first post. I understand that RequestContext is required in order to access {{ MEDIA_URL }} in templates. I have two questions related to this. 1. Please could somebody give an example of how to pass RequestContext to a generic view from urls.p

Re: File upload with no database - Fantasy or reality?

2008-04-25 Thread Kenneth Gonsalves
On 25-Apr-08, at 11:22 PM, python_fan wrote: > Hm... seems like I'm still missing something. All I get on the web > page is 'None'. Any ideas? do you have enctype="multipart/form-data" in your form? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/code/ --~--~

Re: File upload with no database - Fantasy or reality?

2008-04-25 Thread Kenneth Gonsalves
On 26-Apr-08, at 7:08 AM, Kenneth Gonsalves wrote: >> Hm... seems like I'm still missing something. All I get on the web >> page is 'None'. Any ideas? > > do you have enctype="multipart/form-data" in your form? or better still, please paste your full current view and template. Also it would b

Re: Advice on RequestContext

2008-04-25 Thread Darryl Ross
Richard Atkinson wrote: Hello all! Been lurking for a while, this is my first post. Welcome! I understand that RequestContext is required in order to access {{ MEDIA_URL }} in templates. I have two questions related to this. 1. Please could somebody give an example of how to pass RequestCo

order by the count of backward related fields?

2008-04-25 Thread realfun
I am writing a simple Django App, the model is like this: class MyPosts(models.Model): content = models.TextField() class MyPostComments(models.Model): mypost = models.ForeignKey(MyPosts) comment = models.TextField() Now I need to query the top10 most-commented posts. After look at

Re: order by the count of backward related fields?

2008-04-25 Thread Malcolm Tredinnick
On Sat, 2008-04-26 at 10:52 +0800, realfun wrote: > I am writing a simple Django App, the model is like this: > class MyPosts(models.Model): > > content = models.TextField() > > > class MyPostComments(models.Model): > > mypost = models.ForeignKey(MyPosts) > > comment = models.Tex

order_by using methods or property?

2008-04-25 Thread James Snyder
Hi - I understand that django does order_by on the database level, but I was wondering if anyone had any recommendations for the "django-like" way of doing an order_by but using a model method or property? Basically I have names associated with a group model, where the first entries are always f

Re: order by the count of backward related fields?

2008-04-25 Thread realfun
Thanks a lot for quick answer, I will try this solution 2008/4/26 Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > On Sat, 2008-04-26 at 10:52 +0800, realfun wrote: > > I am writing a simple Django App, the model is like this: > > class MyPosts(models.Model): > > > > content = models.TextField()

Re: Advice on RequestContext

2008-04-25 Thread rich
Both questions answered very helpfully. Thank you very much! - Richard On Apr 26, 12:29 pm, Darryl Ross <[EMAIL PROTECTED]> wrote: > Richard Atkinson wrote: > > Hello all! Been lurking for a while, this is my first post. > > Welcome! > > > I understand that RequestContext is required in order t

Re: order by the count of backward related fields?

2008-04-25 Thread realfun
succceeded by using "extra" specified here: http://www.djangoproject.com/documentation/db-api/#extra-select-none-where-none-params-none-tables-none Thanks :) 2008/4/26 realfun <[EMAIL PROTECTED]>: > Thanks a lot for quick answer, I will try this solution > > 2008/4/26 Malcolm Tredinnick <[EMAIL

Re: order by the count of backward related fields?

2008-04-25 Thread Erik Vorhes
Or check out James Bennett's comment_utils: http://code.google.com/p/django-comment-utils/ It has what you need. On Fri, Apr 25, 2008 at 9:52 PM, realfun <[EMAIL PROTECTED]> wrote: > I am writing a simple Django App, the model is like this: > class MyPosts(models.Model): > > content = models.T

  1   2   >