Re: Only getting 500 error, not 404

2007-03-03 Thread Mark Engelberg
Yeah, um, about that. I haven't figured out how to config the email to do that. Can't find good documentation on that. I've tried to set what I thought were the relevant settings, but it didn't seem to have any effect. Can anyone point me to some better docs about that? I DID look in the serv

Very imprtant for your life ...

2007-03-03 Thread [EMAIL PROTECTED]
Hi there ... Thank you for reading this message . Did you here about Islame? I mean the real Islame... Do you have some questions in your religion and you don't have the answers for them? Do you know that you have to condemns in Islam? Ok... just visit these sites, read and download any th

Re: psycopg2 ?

2007-03-03 Thread Kenneth Gonsalves
On 04-Mar-07, at 12:33 PM, Malcolm Tredinnick wrote: >> >> Are there any advantages to using psycopg2 in a Django project? > > One reasonable argument is that it is the maintained version of the > PostgreSQL-python bindings, whereas psycopg (version 1.x) is no longer > maintained. If you need to

Re: psycopg2 ?

2007-03-03 Thread Malcolm Tredinnick
On Sat, 2007-03-03 at 08:47 -0500, Ross M Karchner wrote: > On 2/28/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > > > On 2/28/07, Robert <[EMAIL PROTECTED]> wrote: > > > On 28 Lut, 16:18, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > Change your DATABASE_ENGINE to "postgresql_p

Re: Initial data for Flatpages?

2007-03-03 Thread Malcolm Tredinnick
On Sun, 2007-03-04 at 01:01 +, [EMAIL PROTECTED] wrote: > I am looking for some way to add initial Flatpages data to my app. I > am open to either SQL or Django ORM. The pattern of /sql/ > .sql doesn't seem to apply to Flatpages. How can I do > this? Try this: http://www.bright-green.com/b

Re: check constraints in models ?

2007-03-03 Thread Malcolm Tredinnick
On Sat, 2007-03-03 at 18:51 +, akonsu wrote: > hello, > > is there any way to set a database-level check constraint on a table? > validators do not solve the problem because database can be altered > directly. See here: http://www.djangoproject.com/documentation/model_api/#providing-initial-

Catch Problem

2007-03-03 Thread samira
Hi everybody I have problem with Django Catching. Can anybody help me? I have a page that loads some AJAX-based tables. It takes too much time to load completely and sometimes an error display that mentioned loading script accrued error and ask to cancel loading script or continue. I use "CACHE_BA

Re: Adding fields to comment-form

2007-03-03 Thread Malcolm Tredinnick
On Sat, 2007-03-03 at 12:37 +0100, Kai Kuehne wrote: > Hi list, > What is the way to add an (e.g.) email-field to the comments form generated > by: > {% free_comment_form for blog.entry object.id with is_public yes %} > > Sorry, I didn't find much documentation about the comments package. Right

Re: dynamic methods of a field class

2007-03-03 Thread Malcolm Tredinnick
On Sat, 2007-03-03 at 10:28 +, omat * gezgin.com wrote: > I have an ImageWithThumbs field class derived from ImageField class > that manages thumbnails of an image. It takes list of dimensions as a > parameter and handles the creation and deletion of the resized > images. > > I want to dynami

Re: Only getting 500 error, not 404

2007-03-03 Thread James Bennett
On 3/4/07, puzzler <[EMAIL PROTECTED]> wrote: > Any idea why I'm not getting 404 errors for these situations? Assuming you've set up the ADMINS setting so it emails you tracebacks on these errors, what's in the traceback? -- "Bureaucrat Conrad, you are technically correct -- the best kind of co

Only getting 500 error, not 404

2007-03-03 Thread puzzler
I get 500 errors for bad URLs, and for URLs which are well-formed but the id doesn't exist in the database (I use get_object_or_404 to retrieve these). Any idea why I'm not getting 404 errors for these situations? I'm running on Webfaction, with MySQL as the database, and not in debug mode. Tha

HOT PICS OF INDIAN BABES

2007-03-03 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 unsubscrib

Re: Common models between two apps

2007-03-03 Thread Seth Buntin
Sorryhit enter too soon. from blog.models import Category class Image(models.Model): category = model.ForeignKey(Category) ... This way you only have to keep up with the Blog Category model and it can be used in both apps. Is that what you mean? Seth On Mar 3, 9:36 pm, "nn" <[EMA

Re: Common models between two apps

2007-03-03 Thread Seth Buntin
I haven't tried this but what if you import the model you need and use it as a foreign key. I don't know what you are doing but we'll see... gallery model.py: from blog.model import Category class Image(models.Model): On Mar 3, 9:36 pm, "nn" <[EMAIL PROTECTED]> wrote: > My site runs on two ap

Common models between two apps

2007-03-03 Thread nn
My site runs on two apps, a blog and a gallery. However, there are several models common to each. I don't want to maintain two copies of these models (one in each app), so what would be the best solution to this? I've considered consolidating the blog and gallery apps into one, but I'd prefer to k

Initial data for Flatpages?

2007-03-03 Thread [EMAIL PROTECTED]
I am looking for some way to add initial Flatpages data to my app. I am open to either SQL or Django ORM. The pattern of /sql/ .sql doesn't seem to apply to Flatpages. How can I do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed

Model commonality

2007-03-03 Thread koan
Hello, I am trying not to repeat myself, but without model inheritance, I am struggling a bit. For example, I have a series of models that model various things. They all have the following fields date_added date_modified name def __str__(self): return self.name Beyond that, they

Django and jsCalendar

2007-03-03 Thread johnny
Has anyone got Django and jsCalendar to work? Problem I am having is, Django has separate input field for DATE and TIME. jsCalendar combine both together. Even if I separate it manually, validation is failing. I have spent some days on this. Didn't get anywhere. I like jsCalendar for one re

Re: Using the Admin GUI for a linked list

2007-03-03 Thread rh
Well, since no one replied I figured it's probably easier to implement from scratch rather than adjusting the Admin GUI. Seems like the Admin GUI is only intended for a basic model layout. If anyone is interested, here's a linked-list in Django: MODEL: class Case(models.Model): prev = models.

Re: ABSOLUTE_URL_OVERRIDES issue

2007-03-03 Thread Nicolas Steinmetz
James Bennett wrote: > I've just opened ticket #3646, which notes the problem here -- there's > an inconsistency between the docs and how we actually look things up > in ABSOLUTE_URL_OVERRIDES -- and a couple possible solutions. > > Nicolas, for the time being you can work around this by specify

Re: Anyone used Django in desktop web application scenario?

2007-03-03 Thread Vadim Macagon
devdiscuss wrote: > I'm wondering if anyone is distributing shrinkwrapped applications > built on Django that users can download and run locally? There are a > few goals that I'm considering as I'm trying to evaluate a web > development platform (I definitely see a lot of good stuff here): > > *

0also photos

2007-03-03 Thread [EMAIL PROTECTED]
0also photos http://www.0alsoufia.jeeran.com http://www.0alsoufia.jeeran.com http://www.0alsoufia.jeeran.com http://www.0alsoufia.jeeran.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

creating a website log

2007-03-03 Thread Patrick
Hi, I'd like to create a website log, similar to the log found in django.contrib.admin and was wondering if anyone has thought about this before. Is there a way to take the logging features in admin app and customise them for my site, or is it coupled too tightly with the admin section to eve

Re: Template filter to retrieve the MEDIA_URL

2007-03-03 Thread Sean De La Torre
Thanks for the link SimpleMan. I lost the link and couldn't remember where I first viewed that example. On 3/3/07, SimpleMan <[EMAIL PROTECTED]> wrote: > > > Here's a write-up on doing this with a context processor: > > http://www.b-list.org/weblog/2006/06/14/django-tips-template-context-processo

Django on nginx with GeoIP

2007-03-03 Thread Alrond
I offer following alternative to a server apache and lighhtpd: django with nginx get higher speed, smaller memory and processor use. In addition Nginx has much others various functions. Their examples which I have examined in my post - blocking referrer spam and GeoIP (I have collected the base fr

check constraints in models ?

2007-03-03 Thread akonsu
hello, is there any way to set a database-level check constraint on a table? validators do not solve the problem because database can be altered directly. thanks konstantin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

newforms and FileInput

2007-03-03 Thread sansmojo
Stupid question, but I've not had to handle this so far with Django. I'm getting used to newforms, but I'm not sure how much it handles when you use a FileInput widget. Does it upload the file to the upload_to directory you specify in the model on form.save()? If not, what is the recommended pro

Anyone used Django in desktop web application scenario?

2007-03-03 Thread devdiscuss
I'm wondering if anyone is distributing shrinkwrapped applications built on Django that users can download and run locally? There are a few goals that I'm considering as I'm trying to evaluate a web development platform (I definitely see a lot of good stuff here): * Users want the data locally,

Re: ABSOLUTE_URL_OVERRIDES issue

2007-03-03 Thread James Bennett
On 2/28/07, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > I added the following piece of "code" in settings.py (is it the right > place ?) but it does not work (it looks it's not take into account with > django svn 4643). > > ABSOLUTE_URL_OVERRIDES = { > 'cab.Language' : lambda o: "/snippets/

Re: Template filter to retrieve the MEDIA_URL

2007-03-03 Thread SimpleMan
Here's a write-up on doing this with a context processor: http://www.b-list.org/weblog/2006/06/14/django-tips-template-context-processors On Mar 2, 10:45 pm, "ashwoods" <[EMAIL PROTECTED]> wrote: > context processor would be better :) its just included in the context, > while here you are "parsin

Re: connecting to multiple databases

2007-03-03 Thread Russell Keith-Magee
On 3/3/07, Ewout ter Haar <[EMAIL PROTECTED]> wrote: > > Anyway, back to the question: do think there is a way with standard django > to access two databases (maybe sequentially, changing database connections) > in one script? Or is the only way to use intermediate storage like a file? I can't t

Re: Django Filebrowser and more than one TinyMCE instance

2007-03-03 Thread Dirk Eschler
On Freitag, 2. März 2007, patrick k. wrote: > 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 w

Re: psycopg2 ?

2007-03-03 Thread Ross M Karchner
On 2/28/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 2/28/07, Robert <[EMAIL PROTECTED]> wrote: > > On 28 Lut, 16:18, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > > > > > > > Change your DATABASE_ENGINE to "postgresql_psycopg2". Are there any advantages to using psycopg2 in a Django projec

Cool Free Offers

2007-03-03 Thread coolguy17111987
Now you can call anywhere in world for free Hurry up...Its Globe 7.. You are paid to watch free videos(of your choice)... Now its no. 1 VOIP service in the worldClick on the link below... download the software, register for free and start calling What are you waiting for now Call any p

Re: Free comments not displayed

2007-03-03 Thread Dirk Eschler
On Samstag, 3. März 2007, Kenneth Gonsalves wrote: > On 03-Mar-07, at 5:04 PM, Dirk Eschler wrote: > > Any ideas what's going wrong? Could that be a permission problem > > (although i'm > > superuser in the admin)? > > looks like a typo somewhere The only changes i made to the admin interface are

Re: Free comments not displayed

2007-03-03 Thread Dirk Eschler
On Samstag, 3. März 2007, Kai Kuehne wrote: > Hi, > > On 3/3/07, Dirk Eschler <[EMAIL PROTECTED]> wrote: > > Hi Kai, > > > > the problem is, that i don't see any entries in admin interface. It says > > "2 free comments", which is the amount of entries i have added through > > the frontend, but the

Re: Free comments not displayed

2007-03-03 Thread Kai Kuehne
Hi, On 3/3/07, Dirk Eschler <[EMAIL PROTECTED]> wrote: > Hi Kai, > > the problem is, that i don't see any entries in admin interface. It says "2 > free comments", which is the amount of entries i have added through the > frontend, but the list is empty. Ok, I misunderstood you. :) Have you teste

Re: Free comments not displayed

2007-03-03 Thread Dirk Eschler
On Samstag, 3. März 2007, Kai Kuehne wrote: > Hi Dirk, > > On 3/3/07, Dirk Eschler <[EMAIL PROTECTED]> wrote: > > I can add comments through the frontend, but they won't show up. In the > > free comments admin list view it says "2 free comments", the list however > > is empty. > > I think you have

Re: Free comments not displayed

2007-03-03 Thread Kenneth Gonsalves
On 03-Mar-07, at 5:04 PM, Dirk Eschler wrote: > Any ideas what's going wrong? Could that be a permission problem > (although i'm > superuser in the admin)? looks like a typo somewhere -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~

Re: Free comments not displayed

2007-03-03 Thread Kai Kuehne
Hi Dirk, On 3/3/07, Dirk Eschler <[EMAIL PROTECTED]> wrote: > I can add comments through the frontend, but they won't show up. In the free > comments admin list view it says "2 free comments", the list however is > empty. I think you have to check the "is public" checkbox in admin. I used it thi

Adding fields to comment-form

2007-03-03 Thread Kai Kuehne
Hi list, What is the way to add an (e.g.) email-field to the comments form generated by: {% free_comment_form for blog.entry object.id with is_public yes %} Sorry, I didn't find much documentation about the comments package. Thank you for tips Kai --~--~-~--~~~---~--

Free comments not displayed

2007-03-03 Thread Dirk Eschler
Hi, i'm using free comments. While they work fine in one of projects, they don't in another, whereas the code is basically the same. I can add comments through the frontend, but they won't show up. In the free comments admin list view it says "2 free comments", the list however is empty. Any

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

2007-03-03 Thread Kai Kuehne
Hi Honza, On 1/16/07, Honza Král <[EMAIL PROTECTED]> wrote: > the same way the class itself is constructed: > type(name, parent_list, { __dict__} ) I've liked python, but now I'm loving it. Thank you for the eye-opener. :-) Kai --~--~-~--~~~---~--~~ You received

Re: ABSOLUTE_URL_OVERRIDES issue

2007-03-03 Thread Nicolas Steinmetz
Really nobody ? It would really help me if someone could take a look at it... Nicolas Steinmetz wrote: > > Hello, > > To use "Cab", I got a path issue and need to override get_absolute_url > defined by James (I would like to avoid to change the models by itself to > keep synchronized with its

dynamic methods of a field class

2007-03-03 Thread omat * gezgin.com
I have an ImageWithThumbs field class derived from ImageField class that manages thumbnails of an image. It takes list of dimensions as a parameter and handles the creation and deletion of the resized images. I want to dynamically add methods to return the url of a resized image when its dimensio

Re: Postgre and mysql

2007-03-03 Thread Kenneth Gonsalves
On 03-Mar-07, at 3:35 PM, Geert Vanderkelen wrote: >> in brief, postgres tries to be standards compliant - so if you are >> worried about standards ... > > Note that with MySQL does try too.. maybe after 2000, when i gave up mysql for ever. Until then they were going their own way -- regar

Re: Postgre and mysql

2007-03-03 Thread Geert Vanderkelen
On Feb 21, 2007, at 16:45, Kenneth Gonsalves wrote: > > > On 21-Feb-07, at 8:06 PM, Grupo Django wrote: > >> Hello, I want to know which of these two databases are prefered by >> django. I can choose and I'd like to know if there is some >> differences >> in performance or integration (like fo

Re: Postgre and mysql

2007-03-03 Thread Geert Vanderkelen
On Feb 21, 2007, at 15:52, Sundial Services wrote: > > The essential differences to consider are (1) transactional support, > and (2) data-types and SQL support. Both systems can be expected to > deliver comparable performance under ordinary loads. Newsflash.. MySQL has had transactional suppo

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

2007-03-03 Thread lee
thank you for your help! works well now :) 2007/3/3, Henrik Lied <[EMAIL PROTECTED]>: > > > 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 > >