HOT PICS OF INDIAN BABES

2007-03-02 Thread hot babe
HOT PICS OF BOLLYWOOD ACTRESS http://bollywoodactress.blogspot.com --~--~-~--~~~---~--~~ 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

Re: Customizing the class returned by newforms.form_for_model()

2007-03-02 Thread brooks
One option would be to simply re-assign the value for that field in the form instance/class base_fields, ala: Model_Form = forms.models.form_for_model(Model) Model_Form.base_fields['multi_field'] = forms.CharField(maxlength=150, initial=Model_Form.base_fields['multi_field'].initial) Hope that

Re: Weird session

2007-03-02 Thread Malcolm Tredinnick
On Fri, 2007-03-02 at 14:37 +, Seth Buntin wrote: > I would love to tackle this issue, since it is to my advantage, but > really don't know where to start. Any ideas? I would start with the Session object itself -- have a look in django/contrib/sessions/ -- since any general solution will

Re: What would cause CookieError: Illegal Key Value?

2007-03-02 Thread Malcolm Tredinnick
On Fri, 2007-03-02 at 18:40 +, [EMAIL PROTECTED] wrote: > I've gotten a handful of admin emails from my site that are reporting > errors while parsing cookies because of illegal key values. What would > cause this to happen? The site has been live for a month and gets a > decent amount of

Re: Avoiding trailing slash in links in templates

2007-03-02 Thread Malcolm Tredinnick
On Fri, 2007-03-02 at 06:52 -0800, Sambhav wrote: > Hi, > > I want to use this http://www.example.com/2007/mar/02/?time=2100 > instead of http://www.example.com/2007/mar/02/2100/ > > But when I use this in the template I get this- > http://ww.example.com/2007/mar/02/?time=2100/ What do you

Problems witn order_by

2007-03-02 Thread Pedro Muñoz
Hi!! I just join to this group, i am delighted to take part of a group of django users, i am a newbie one but i love to learn. As you has guess mi native language is not english ;) I want to make a question, i have the following code ord_p =

Re: newform: Post_add Submission not working

2007-03-02 Thread Honza Král
On 3/3/07, johnny <[EMAIL PROTECTED]> wrote: > > I did place form.errors in the template. If I type the invalid data, > then it displays the errors. Problem is when I type in valid data, it > doesn't display anything and brings me back to the form with the data > I have entered. Every

Re: Template filter to retrieve the MEDIA_URL

2007-03-02 Thread ashwoods
context processor would be better :) its just included in the context, while here you are "parsing" text. On Mar 3, 3:16 am, "Henrik Lied" <[EMAIL PROTECTED]> wrote: > Hi there, Sean! > > Thanks for the different methods -- > > I went for a different approach, though. I simply created a simple

Re: Template filter to retrieve the MEDIA_URL

2007-03-02 Thread Henrik Lied
Hi there, Sean! Thanks for the different methods -- I went for a different approach, though. I simply created a simple filter like this: def mediaurl(value): import re from project.setting import MEDIA_URL "Replaces the string MEDIAURL with the MEDIA_URL" return

Re: Weird session

2007-03-02 Thread Nebojša Đorđević
On Mar 2, 2007, at 04:35 , Seth Buntin wrote: > I have this: > > request.session["order_items"] = [] > > and on certain views I have: > > request.session["order_items"].append(order_item.id) Maybe is just shoot in the dark, but... Looking at SessionWrapper.__setitem__ your request.session

Other errors in template rendering

2007-03-02 Thread checco
Hi again, unfortunately I seem to get another couple of mistakes in template rendering. The first one is in "snippet_detail.html" and the error message is the following: 'comment' is not a valid tag library: Could not load template library from django.templatetags.comment, No module named

Using the Admin GUI for a linked list

2007-03-02 Thread rh
Hi, I've a model which I want to implement as a linked-list. The model has a pointer to itself: prev = models.ForeignKey('self', blank=True, null=True) Now, my question is about the GUI. I want to use the Admin GUI with a small modification: when a user edits an existing instance of the model

Re: Template filter to retrieve the MEDIA_URL

2007-03-02 Thread Sean De La Torre
Henry, I do the same thing in my project. There are a couple of ways you can use to expose the media url. If you won't be using the it very often, you can do the following: from django.shortcuts import render_to_response from django.conf import settings def example(request): return

Re: connecting to multiple databases

2007-03-02 Thread Ewout ter Haar
> You need to read what Jacob said. The condition for multi-db being > accepted into trunk is for someone to take control of it - not just > for the immediate term (finishing docs, etc), but for the medium to > long term (maintenance of the code). I understand. For branches which are not

Re: Admin customisation

2007-03-02 Thread James Bennett
On 3/2/07, Fes <[EMAIL PROTECTED]> wrote: > I have a model which has fields that have been set using a form. > However I would like to incorporate this model into the admin > interface. I would like to know if it is possible for this model to > only have the "Change" rights. For example when the

Admin customisation

2007-03-02 Thread Fes
Hi, I have a model which has fields that have been set using a form. However I would like to incorporate this model into the admin interface. I would like to know if it is possible for this model to only have the "Change" rights. For example when the user is at the admin interface this model can

Re: newform: Post_add Submission not working

2007-03-02 Thread johnny
I did place form.errors in the template. If I type the invalid data, then it displays the errors. Problem is when I type in valid data, it doesn't display anything and brings me back to the form with the data I have entered. Every frustrating problem.

Re: Django Filebrowser and more than one TinyMCE instance

2007-03-02 Thread patrick k.
try playing around with: relative_urls : false, remove_script_host : true, we´re using absolute_urls and we don´t remove the script_host. if the URL is inserted into the tinymce_popup correctly, it doesn´t seem to be a problem with the filebrowser but a problem with tiny_mce.

Re: connecting to multiple databases

2007-03-02 Thread Russell Keith-Magee
On 3/3/07, Ewout ter Haar <[EMAIL PROTECTED]> wrote: > I read this as saying that that the multi-db will never be incorporated > in trunk, because even if all the bugs would be worked out, even if there > would be documation, etc, etc, there is no commiter that wants to maintain > it. If it will

Re: Django Filebrowser and more than one TinyMCE instance

2007-03-02 Thread Dirk Eschler
On Freitag, 2. März 2007, patrick k. wrote: > we´re also using more than one tinymce instance and we don´t have any > problems. > could you give more details about your specifications, e.g. how do > you init tinymce? > > patrick. Hello Patrick, thanks for your reply. In the model TinyMCE is

Re: Django Filebrowser and more than one TinyMCE instance

2007-03-02 Thread patrick k.
we´re also using more than one tinymce instance and we don´t have any problems. could you give more details about your specifications, e.g. how do you init tinymce? patrick. Am 02.03.2007 um 16:48 schrieb Dirk Eschler: > > Hi, > > i'm using the Django filebrowser together with TinyMCE in

Re: how to user generic views (object_list) to show dynamic list ?

2007-03-02 Thread Henrik Lied
Yeah, just pass an extra argument in the urls.py, like /files/(? P[-\w]+), and filter your queryset. Take a look at http://www.b-list.org/weblog/2006/11/16/django-tips-get-most-out-generic-views --~--~-~--~~~---~--~~ You received this message because you are

Exception in template rendering

2007-03-02 Thread checco
Hi, I was playing with the django application djangosnippets (the released source code of www.djangosnippets.org) and I got the following error: "Caught an exception while rendering: no such column: count" (it refers to the following snippet of code taken from the template snippets_list.html):

Re: Getting up and running

2007-03-02 Thread Joseph Heck
it looks like you don't have the prerequisites that Django needs already installed. Check the docs at http://www.djangoproject.com/documentation/install/ - it'll point you to http://initd.org/tracker/psycopg where you can get the libraries for python to talk with PostgreSQL. -joe On 3/2/07,

Re: "cannot import" errors when doing an import of an app's models

2007-03-02 Thread Joseph Heck
So with that setup, I'd expect that if you have an application named "wilbur", that you'd have an entry named "mysite.wilbur" in settings.pyunder INSTALLED_APPLICATIONS and that you'd have a directory c:\temp\mysite\wilbur that had a __init__.py file and a models.py file at a minimum. If you

Re: Getting up and running

2007-03-02 Thread ScottB
On Mar 2, 5:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I keep getting the following error when i syncdb > > raise ImproperlyConfigured, "Error loading psycopg2 module: %s" % e > django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 > module: No module named psycopg2 It

Template filter to retrieve the MEDIA_URL

2007-03-02 Thread Henrik Lied
Hi there, I'm just wondering what the best way of retrieving the MEDIA_URL for an object is. Let's say I'm writing a blog post with some images. Instead of writing http://media.mydomain.com/image.gif;>, I'd write or something equivalent. So if I change my domain, I wouldn't have to rewrite a

Play the fantasy game of CricMasti and win NOKIA N70

2007-03-02 Thread AKKy
Dear Recepient, Your friend has invited you to play the amazing fantasy game of cricket for the ICC World Cup 2007. You have to register and create your team at www.cricmasti.com. Once you have create your team you can then become a selector and choose players in your team. The better the

how to user generic views (object_list) to show dynamic list ?

2007-03-02 Thread lee
Hi I have a problem how to use generic views (object_list) to show dynamic list ? for exaple, my model is a movie with a category , I want to accomplish this : when I access http://.../action , in which action is a category name, then it display all the movie objects in the

What would cause CookieError: Illegal Key Value?

2007-03-02 Thread [EMAIL PROTECTED]
I've gotten a handful of admin emails from my site that are reporting errors while parsing cookies because of illegal key values. What would cause this to happen? The site has been live for a month and gets a decent amount of traffic, and this is the first I've seen of it. Not sure if it's a

Re: How update and recover on-line a Django site

2007-03-02 Thread mamcxyz
I'm using lighttpd and fastcgi (sorry to forget the detail) --~--~-~--~~~---~--~~ 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

Getting up and running

2007-03-02 Thread [EMAIL PROTECTED]
Adrian I have tried to follow both the django book and the tutorial and i can't get past the beginning python manage.py syncdb. i have tried setting it up on my mac for both versions 2.4 and 2.5 and still doesn't work. I also tried to do Jacob's tutoirals from his PYCON and OSCON tutorials

Re: Newbie: Admin / Model help

2007-03-02 Thread DuncanM
On top of the above post, I've come accross an error when trying to sync my db (with having simplified list_displays not those from above). When ever I order my classes in the model file like Fixture ... Result ... I run syncdb and get this: $ python2.4 manage.py syncdb Traceback (most recent

ImageWithThumbsField for multiple thumbnails

2007-03-02 Thread omat * gezgin.com
I came across several approaches for managing thumbnails of images and then I wrote mine to allow user to specify any number of thumbnail images to be created. When initializing the field class, specify the dimensions that you want to have like: photo = ImageWithThumbsField(upload_to = 'path',

Re: Using HTML/CSS as templates

2007-03-02 Thread [EMAIL PROTECTED]
On Feb 28, 5:56 am, "MattW" <[EMAIL PROTECTED]> wrote: > > The change from dev to production seems like it might be a pain. > I agree somewhat. Speaking as a person transitioning from Tomcat to Django. Dealing with static files is one of the things about Django that does take some getting used

connecting to multiple databases

2007-03-02 Thread Ewout ter Haar
I have two legacy databases which I can connect to django separately without problems. I would like to read data from one, wrangle the data a bit, and write them to the other. How would I go about that, given that, as I understand it, I can import the settings only once. I would seem that in

Django Filebrowser and more than one TinyMCE instance

2007-03-02 Thread Dirk Eschler
Hi, i'm using the Django filebrowser together with TinyMCE in one of my projects. Inserting a adv_link from the file browser into the TinyMCE popup only works in the first TinyMCE instance. In the second instance the link becomes #mce_temp_url#. Oddly enough, the link is displayed correctly

Re: Recursion in templates... again

2007-03-02 Thread Chris Moffitt
I've implemented a similar hierarchy for categories in Satchmo using elementtree. You can see my example here- http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop/templatetags/category_display.py -Chris --~--~-~--~~~---~--~~ You received this

Re: Rich text editor

2007-03-02 Thread leland
i agree - tiny_mce is SUPER easy to implement. also - check out your line: js = 'media/js/admin/AddRichTextEditing.js' view the source on your admin page and look at the src attribute of the

Re: Recursion in templates... again

2007-03-02 Thread Adrián Ribao Martínez
Sorry, I didn't find a perfect solution, but I think that it can be done. You can use the "unordered list" filter in the template and fill an array in the view using recursive methods. Then you pass the array to the filter and it's done. You can also create your own filter tag, is not

Avoiding trailing slash in links in templates

2007-03-02 Thread Sambhav
Hi, I want to use this http://www.example.com/2007/mar/02/?time=2100 instead of http://www.example.com/2007/mar/02/2100/ But when I use this in the template I get this- http://ww.example.com/2007/mar/02/?time=2100/ Note the trailing slash. And I can't use it as a GET parameter. This time

Newbie: Admin / Model help

2007-03-02 Thread DuncanM
Hi I'm having a problem with some of my modelling for an app I'm building. The 2 models of interest i'm using are class Fixture(models.Model): team = models.ForeignKey(Team, "Team", core=True, help_text="The Howden team involved in the fixture e.g. Under 8's or Senior 1st Team.") venue =

Re: DateField

2007-03-02 Thread DuncanM
Thanks for the quick reply Tim, I dont think people entering m/d/y instead of d/m/y will be a problem as Its what I think to be the common form in the UK (although I realise americans often use m/d/y). I was referring to my model when using the admin page to add a date so that it only accepts

Re: Weird session

2007-03-02 Thread Seth Buntin
I would love to tackle this issue, since it is to my advantage, but really don't know where to start. Any ideas? Seth On Mar 1, 10:59 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2007-03-01 at 20:17 -0800, Graham Dumpleton wrote: > > [...] > > > > I wrote: > > > > I'm wondering

Re: DateField

2007-03-02 Thread Tim Chase
> In my models I use DateField quite a few times, is there any > way I can adjust it so it stores information in the database > as dd/mm/yy and retrieves/handles it in this way too rather > then its current -mm- dd format? I'm not sure this question makes a whole lot of sense without some

Re: How to modify form error messages.

2007-03-02 Thread Honza Král
On 3/2/07, Michael Lake <[EMAIL PROTECTED]> wrote: > > Malcolm Tredinnick wrote: > > On Fri, 2007-03-02 at 15:27 +1100, Michael Lake wrote: > > > >>Hi all > >> > >>I see in the documentation for forms that the HTML output will include the > >>validation > >>errors as a near the field. How does

Re: newform: Post_add Submission not working

2007-03-02 Thread Honza Král
it would seem that the form still have some errors, try outputting form.errors in the template to see if its empty On 3/2/07, johnny <[EMAIL PROTECTED]> wrote: > > When I submit the information with the form, for some reason, I keep > coming back to the form, with data I entered. I am not sure

Re: Generate a tree List...

2007-03-02 Thread Jeremy Dunck
On 3/2/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > I thought with django i would choose a full features framework :( It works pretty well for me and many others. Writing a template tag is a reasonable solution, IMHO. :-/ --~--~-~--~~~---~--~~ You received

Re: Generate a tree List...

2007-03-02 Thread Jens Diemer
Jeremy Dunck schrieb: > If you want recursion in templates, why not just use Jinja? Jinja is super cool. But I would like to keep the PyLucid package small. I thought with django i would choose a full features framework :( -- Mfg. Jens Diemer CMS in pure Python CGI:

Re: Recursion in templates... again

2007-03-02 Thread Jens Diemer
Grupo Django schrieb: > Hello, I have been looking around about some information about how to > do recursion in templates but what I found didn't help me. > ... > > And the plan is to create a menu like this: > - Entry 1 > -- Subentry 1_1 > -- Subentry 1_2 > sub_Subentry 1_2_1 > - Entry 2 >

Navigations with django

2007-03-02 Thread Sulo
hi guys, im sorry if this question is frequently asked but what is the right way to make a navigation in django ... when a database backend is used for site content storage... the first question is ... how to link to the sites ... the first idea is to but an encoded form of the content title in

DateField

2007-03-02 Thread DuncanM
In my models I use DateField quite a few times, is there any way I can adjust it so it stores information in the database as dd/mm/yy and retrieves/handles it in this way too rather then its current -mm- dd format? Thanks --~--~-~--~~~---~--~~ You received

Re: Generate a tree List...

2007-03-02 Thread Jeremy Dunck
On 3/2/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > Jeremy Dunck schrieb: > >> I found this: > >> https://svn.greenpeace.org/projects/custard/browser/production/trunk/melt/apps/custard/templatetags/customtags.py > >> > >> But i don't know how i can use this. > > Hm :( > The code is for an older

Re: Rich text editor

2007-03-02 Thread Kenneth Gonsalves
On 02-Mar-07, at 6:51 PM, Alessandro Ronchi wrote: > Is there some other better editor? try tiny_mce - well documented in django wiki and mailing list -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You

Rich text editor

2007-03-02 Thread Alessandro Ronchi
Hi to all. I'm trying to add a rich text editor to a field of my model, following the tutorial on http://code.djangoproject.com/wiki/AddDojoEditor I have this directory structure: ./ ./gallery ./gallery/locale ./gallery/locale/it ./gallery/models.py ./gallery/views.py ./locale ./locale/it

Re: hosting single static files at root? (modpy + apache)

2007-03-02 Thread Bram - Smartelectronix
Michael Cuddy wrote: >> how can I host a few single files at root level, like for example a >> crossdomain.xml file. Using Apache2 + mod_python. >> >> ( http://www.moock.org/asdg/technotes/crossDomainPolicyFiles/ ) >> >> thx for any hints, > > Here's what I'm doing. My (django pertinent part

HOT PICS OF INDIAN BABES

2007-03-02 Thread hot babe
HOT PICS OF BOLLYWOOD ACTRESS http://bollywoodactress.blogspot.com --~--~-~--~~~---~--~~ 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

Clean permission table

2007-03-02 Thread Dirk Eschler
Hi, during development apps are sometimes removed or renamed. What's a good way to clean the leftovers from the permissions table without breaking something? Best Regards. -- Dirk Eschler http://www.krusader.org

Re: Generate a tree List...

2007-03-02 Thread Jens Diemer
Jeremy Dunck schrieb: >> I found this: >> https://svn.greenpeace.org/projects/custard/browser/production/trunk/melt/apps/custard/templatetags/customtags.py >> >> But i don't know how i can use this. Hm :( The code is for an older django version. -- Mfg. Jens Diemer CMS in pure Python

Transfer-Encoding: chunked =? Content-Length

2007-03-02 Thread meledictas
Hi all, Don't know this is a right place to ask this question :( I got problem when I used django to serve xml-rpc request. By definetion, The Content-Length of request must be specified and must be correct (http://www.xmlrpc.com/spec). But some client, they siad that Transfer-Encoding:

hi

2007-03-02 Thread engin kaya
Hey! Check out this page I published using Google Page Creator. AGLOCO http://ebibanzai.googlepages.com/home --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Filtering a blank date field

2007-03-02 Thread Phil Powell
Well, to answer my own question, it turned out that the Q object was the key to this. It allows me to use a more complex OR statement, rather than the usual AND. So I've ended up with: class ActiveManager(models.Manager): def get_query_set(self): objects = super(ActiveManager,

Filtering a blank date field

2007-03-02 Thread Phil Powell
I'm writing a custom Manager to only return objects which fall within dates set for Active From and Active To fields. It currently looks like this: class ActiveManager(models.Manager): def get_query_set(self): objects = super(ActiveManager, self).get_query_set() objects =

hi

2007-03-02 Thread engin kaya
Hey! Check out this page I published using Google Page Creator. AGLOCO http://ebibanzai.googlepages.com/home --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: newforms: no attribute 'form_for_instance'

2007-03-02 Thread Benedict Verheyen
stevelewis schreef: > So I've developed on my laptop, and am trying to deploy to a unix box, > and most things work fine, but I'm using the newforms form for > instance method, and it can't find it: > > 'module' object has no attribute 'form_for_instance' > > It appears to be there, but I'm not

hi

2007-03-02 Thread engin kaya
Hey! Check out this page I published using Google Page Creator. Home How AGLOCO Works AGLOCO Referrals SIGN UP TODAY! http://ebibanzai.googlepages.com/home --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Home How AGLOCO Works AGLOCO Referral

2007-03-02 Thread engin kaya
Hey! Check out this page I published using Google Page Creator. Home How AGLOCO Works AGLOCO Referrals SIGN UP TODAY! http://ebibanzai.googlepages.com/home --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Generate a tree List...

2007-03-02 Thread Jens Diemer
Jens Diemer schrieb: > Jeremy Dunck schrieb: >>> I found this: >>> https://svn.greenpeace.org/projects/custard/browser/production/trunk/melt/apps/custard/templatetags/customtags.py >>> >>> But i don't know how i can use this. >> Yeah, I'd be careful about the license. I don't see one. >> You