Movies

2008-03-04 Thread Romanszkij
Best movies you ever wanted to see. http://playwide.extra.hu/ Download free --~--~-~--~~~---~--~~ 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

How to give a style for "CHOICE FILED" in py file

2008-03-04 Thread jai_python
class cust_search(forms.Form): customer_name= forms.CharField(max_length = 255, required = False) product_id= forms.CharField(max_length = 1, required = False) date1=forms.DateField(widget=forms.TextInput(attrs={'class':"vDateField"}),required = False) dat

Oracle invalid environment variables

2008-03-04 Thread [EMAIL PROTECTED]
Hello Django Users, Althought this is probably not a specific django error, i hope someone can point me in the right direction. I developed a application on a development server where everything works just fine. server specs ( development server ): - Linux version 2.6.9-22.0.2.ELsmp ([EMAIL PROT

django-dataplot 0.5

2008-03-04 Thread Toby Dylan Hocking
I just released a new version of my django-based plotting framework to http://sf.net/projects/django-dataplot. Here's one example of making a plot in an app that tracks goals in a series of soccer games: from dataplot import plotmodels as models class Player(models.Model): name=models.Char

edit_inline in ModelForms

2008-03-04 Thread tom
Hi, I've been looking and searching for the last days to find out how i could fix that, but I don't get around. I did read the newforms-admin fieldset.py stuff, also the edit_inline_stacked.html template, but I still don't figure it out. What i would like to do is, to have 2 Models within one fo

18+

2008-03-04 Thread Reny
ONLY FOR ADULTS: http://href.hu/x/4vm4 --~--~-~--~~~---~--~~ 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 group, send ema

Re: solving fixture data conflicts

2008-03-04 Thread Russell Keith-Magee
On Tue, Mar 4, 2008 at 3:59 PM, Evan H. Carmi <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to loaddata from a file, bmdata.xml and getting an error: > Problem installing fixture 'bmdata.xml': duplicate key violates unique > constraint "django_content_type_app_label_key" > > I understand

Optimizing code for a query

2008-03-04 Thread Grupo Django
Hi, I need to optimize some code related to django db api. Imagine a model like this: class Languages( models.Model ): name = models.CharField( max_length=255 ) ... class Object ( models.Model ): name = models.CharField( max_length=255 ) languages = models.ManyToManyField( Langua

new generation of LG LCD

2008-03-04 Thread kispancs
Play wide Play LG! http://www.golyofogo.extra.hu/ --~--~-~--~~~---~--~~ 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: Optimizing code for a query

2008-03-04 Thread Grupo Django
This code: for language in languages: objects = Object.filter( languages__id = language) doesn't work, so I'd be happy to receive some suggestions. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Blocktrans getting erratic

2008-03-04 Thread Jonas Christian
Hi everybody, I really enjoy writing applications in Django but I ran into something very strange while doing my first internationalized app. I'm using the newforms-admin branch, revision 7192. All translations work fine, except in these cases: When I mark a string that spans multiple lines to b

Re: Admin Site Searching

2008-03-04 Thread [EMAIL PROTECTED]
On Mar 3, 1:41 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-03-02 at 10:03 -0800, Lee Connell wrote: > > I have configured my django admin site to allow searching. My > > question is when a user logs in and chooses the table they wish to > > make changes to, it automatically q

Re: Optimizing code for a query

2008-03-04 Thread Evert Rol
> I need to optimize some code related to django db api. > Imagine a model like this: > > class Languages( models.Model ): >name = models.CharField( max_length=255 ) >... > > class Object ( models.Model ): >name = models.CharField( max_length=255 ) >languages = models.ManyToManyFie

Earn money from Google.com

2008-03-04 Thread Santhosh
Google.com is not only a search engine but also does webadvertising through websites and blogs.Lakhs of common people are earnings hundreds of dollars through online advertising. For more details visit http://www.googlepromisesyou.blogspot.com/ --~--~-~--~~~---~--~--

data import

2008-03-04 Thread sector119
Hi ALL! I need to import data in CSV format into my models everyday ~ 500.000 rows. But my CSV files are uncomplite, I have to append some data to every row. I use something like this to import data into my model: for d in csv.DictReader(...): d.update(my_data) MyModel.objects.create(**d) B

Subscribe

2008-03-04 Thread aspersieman
--~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more opti

Re: revert database migration

2008-03-04 Thread Ramiro Morales
On Tue, Mar 4, 2008 at 2:58 AM, stranger <[EMAIL PROTECTED]> wrote: > After searching this group archive i didnot find much regarding my question Really? http://groups.google.com/group/django-users/search?hl=en&q=migrations&start=0&scoring=d&hl=en&; There is a difference between searching the a

Re: data import

2008-03-04 Thread Ben Ford
How about setting a default value on all of the database tables the you are specifying in the dict that you're doing the update with? On 04/03/2008, sector119 <[EMAIL PROTECTED]> wrote: > > > Hi ALL! > > I need to import data in CSV format into my models everyday ~ 500.000 > rows. But my CSV files

Problems using cron to run a python script

2008-03-04 Thread [EMAIL PROTECTED]
I'm trying to use a cron job to run a python script that updates feeds on an aggregator site I'm building. But I'm getting trackback errors telling me it can't import the module feedparser. Here's the error: Traceback (most recent call last): File "/path/to/script/update_feeds.py", line 10, in ?

Re: Problems using cron to run a python script

2008-03-04 Thread Evert Rol
> > Traceback (most recent call last): > File "/path/to/script/update_feeds.py", line 10, in ? > import feedparser > ImportError: No module named feedparser > > And here is the cron: > > export PYTHONPATH=/path/to/python2.3/site-packages:/path/to/django/app > export DJANGO_SETTINGS_MODULE=myproj

Maximum number of objects in admin interface

2008-03-04 Thread Monica Leko
Question for all: how change lists (in admin interface) behave when you have couple of thousands objects? What was the maximum number of object did you have in change lists? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Problems using cron to run a python script

2008-03-04 Thread [EMAIL PROTECTED]
No, I haven't tried that. How would I go about citing that? On Mar 4, 7:22 am, Evert Rol <[EMAIL PROTECTED]> wrote: > > Traceback (most recent call last): > > File "/path/to/script/update_feeds.py", line 10, in ? > > import feedparser > > ImportError: No module named feedparser > > > And here i

Re: Problems using cron to run a python script

2008-03-04 Thread Evert Rol
> No, I haven't tried that. How would I go about citing that? Top of script (possibly just below the she-bang): import sys print sys.path >>> Traceback (most recent call last): >>> File "/path/to/script/update_feeds.py", line 10, in ? >>> import feedparser >>> ImportError: No module named fe

Re: Problems using cron to run a python script

2008-03-04 Thread [EMAIL PROTECTED]
Well part of the problem is that the script itself works fine. I can run from the command line without a hitch. But when I try to run it via the cron, I get the traceback about the feedparser module. On Mar 4, 7:36 am, Evert Rol <[EMAIL PROTECTED]> wrote: > > No, I haven't tried that. How would I

Re: data import

2008-03-04 Thread sector119
On 4 Бер, 13:33, "Ben Ford" <[EMAIL PROTECTED]> wrote: > How about setting a default value on all of the database tables the you are > specifying in the dict that you're doing the update with? Hi, Ben, those values can't be set as default value for the table column. Each model may have not only o

Re: edit_inline in ModelForms

2008-03-04 Thread Michael
This question in various forms was asked 3 times in the last 24 hours. Check this out http://collingrady.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ On Tue, Mar 4, 2008 at 4:11 AM, tom <[EMAIL PROTECTED]> wrote: > > Hi, > > I've been looking and searching for the last days

Re: Problems using cron to run a python script

2008-03-04 Thread Jonas Christian
I ran into problems like that using cron and instead of trying to locate the real error in the paths (we were about to go live ...), I simple changed the cron line to read: 1 * * * * cd /path/to/script; /usr/bin/python update_feeds.py Why don't you try that and see if it helps... Jonas On 4

Getting file selected for upload to survive validation.

2008-03-04 Thread Ray Cote
I have file uploads working using newforms. However, if I run into validation errors on the form (say a mandatory field is not filled), then when the form re-displays for the user, the file they previously selected is no longer selected. I've been reading through a variety of file upload sugge

Re: Access cycle var in template - gentle hack

2008-03-04 Thread Jeremy Sandell
What I meant was that you could use the catch tag to avoid having to use html comments to hide it. (: It's still just as much of a hack, of course, but not quite as visible after rendering. On Feb 28, 3:51 am, itpaul <[EMAIL PROTECTED]> wrote: > ok. like this? > > {% for p in post_list %} >    

Re: Blocktrans getting erratic

2008-03-04 Thread Malcolm Tredinnick
On Tue, 2008-03-04 at 02:31 -0800, Jonas Christian wrote: > Hi everybody, > > I really enjoy writing applications in Django but I ran into something > very strange while doing my first internationalized app. I'm using the > newforms-admin branch, revision 7192. All translations work fine, > exce

Re: Problems using cron to run a python script

2008-03-04 Thread [EMAIL PROTECTED]
Unfortunately, I get the same traceback: Traceback (most recent call last): File "update_feeds.py", line 10, in ? import feedparser ImportError: No module named feedparser Any idea how to import the module within the cron? On Mar 4, 9:07 am, Jonas Christian <[EMAIL PROTECTED]> wrote: > I ra

Re: Problems using cron to run a python script

2008-03-04 Thread Evert Rol
> Unfortunately, I get the same traceback: > > Traceback (most recent call last): > File "update_feeds.py", line 10, in ? > import feedparser > ImportError: No module named feedparser Again: did you print the sys.path? The 'cd' is not going to work, unless your modules are relative to the /p

Re: Problems using cron to run a python script

2008-03-04 Thread Dj Gilcrease
On Tue, Mar 4, 2008 at 4:55 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm trying to use a cron job to run a python script that updates feeds > on an aggregator site I'm building. But I'm getting trackback errors > telling me it can't import the module feedparser. Here's the error: >

Re: Problems using cron to run a python script

2008-03-04 Thread [EMAIL PROTECTED]
I'm not sure where to print the path. Do I add that to the update_feeds.py? Or does this go in the cron itself? If I add it to the script, and then run the script from the command line, it prints what's on my python path and then runs the script as normal. But that's never been the issue. The cr

Re: Blocktrans getting erratic

2008-03-04 Thread Jonas Christian
Hi Malcolm: > Are you sure you haven't inadvertently introduced newlines into the > strings here? Can show us what the corresponding lines in the PO file > look like (include the comments before the msgid bit as well). This is what the PO file looks like: #: templates/host.html:14 #, fuzzy, pyt

Re: Flatpages

2008-03-04 Thread bfrederi
You were right about the 404.html template being required. And I found this ticket to help back up my problem: http://code.djangoproject.com/ticket/3335 It's a won't fix issue, but they put a comment in the code that was suppose to alert me that I needed the template, but I totally missed it, so

Re: Problems using cron to run a python script

2008-03-04 Thread [EMAIL PROTECTED]
Do you have a link to more information about Django-cron? How do I go about using this? On Mar 4, 10:34 am, "Dj Gilcrease" <[EMAIL PROTECTED]> wrote: > On Tue, Mar 4, 2008 at 4:55 AM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > >  I'm trying to use a cron job to run a python script that

Re: ManyToMany fields in database lookups

2008-03-04 Thread Malcolm Tredinnick
On Tue, 2008-03-04 at 07:28 -0800, Vincent Foley wrote: > Hello, > > I have a curious problem with a complex filter in 0.96: > > Merchant.objects.filter(Q(categories_fr__name__icontains=s) | > Q(categories_en__name__icontains=s)) > > this returns an empty queryset even when 's' is in categorie

Re: Blocktrans getting erratic

2008-03-04 Thread Jonas Christian
Malcolm, you're a saviour! That would explain why I didn't find anything in the Django documentation. I should have read up on gettext instead. Three cheers, Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Getting file selected for upload to survive validation.

2008-03-04 Thread Malcolm Tredinnick
On Tue, 2008-03-04 at 08:58 -0500, Ray Cote wrote: > I have file uploads working using newforms. > > However, if I run into validation errors on the form (say a mandatory > field is not filled), then when the form re-displays for the user, > the file they previously selected is no longer selec

Re: Blocktrans getting erratic

2008-03-04 Thread Malcolm Tredinnick
On Tue, 2008-03-04 at 08:04 -0800, Jonas Christian wrote: > Hi Malcolm: > > > Are you sure you haven't inadvertently introduced newlines into the > > strings here? Can show us what the corresponding lines in the PO file > > look like (include the comments before the msgid bit as well). > > This

Re: sxsw anyone?

2008-03-04 Thread [EMAIL PROTECTED]
We just put up a (django) version of our Q&A site just for questions about and during SXSW. You can ask specific SXSW questions there--you might get some great answers. http://sxsw.fluther.com Ben Fluther.com On Mar 3, 7:40 am, "Peter Baumgartner" <[EMAIL PROTECTED]> wrote: > Anyone here going

change user admin template

2008-03-04 Thread Rufman
Hey I can't seem to find the template that is displayed when I change a user (@ www.example.com/example/admin/auth/user/1/). I'm fairly new to customizing the admin interface, so I might have overlooked something... Stephane --~--~-~--~~~---~--~~ You received this

Re: Blocktrans getting erratic

2008-03-04 Thread Malcolm Tredinnick
On Tue, 2008-03-04 at 08:23 -0800, Jonas Christian wrote: > Malcolm, you're a saviour! > > That would explain why I didn't find anything in the Django > documentation. I should have read up on gettext instead. I keep meaning to add something to the docs about that. It bites translators every no

Re: Problems using cron to run a python script

2008-03-04 Thread Evert Rol
> I'm not sure where to print the path. Do I add that to the > update_feeds.py? Or does this go in the cron itself? > > If I add it to the script, and then run the script from the command > line, it prints what's on my python path and then runs the script as > normal. > > But that's never been the

Re: GeoDjango: distance calculation

2008-03-04 Thread Justin Bronn
> For some of our calculations, it is much too slow to use distance_spheroid - > the slight loss in accuracy is worth the enormous gain in speed. I did some performance tests and confirmed your findings. I've created a ticket that includes a patch that changes the default geodetic distance calcu

ManyToMany fields in database lookups

2008-03-04 Thread Vincent Foley
Hello, I have a curious problem with a complex filter in 0.96: Merchant.objects.filter(Q(categories_fr__name__icontains=s) | Q(categories_en__name__icontains=s)) this returns an empty queryset even when 's' is in categories_fr. Changing categories_fr__name with an attribute directly in the obje

Re: edit_inline in ModelForms

2008-03-04 Thread tom
hi michael, sorry for not finding the needed information and thanks a lot for the link! regards. tom On 4 Mrz., 14:31, Michael <[EMAIL PROTECTED]> wrote: > This question in various forms was asked 3 times in the last 24 hours. > Check this > outhttp://collingrady.com/2008/02/18/editing-multipl

Re: Getting file selected for upload to survive validation.

2008-03-04 Thread Ray Cote
At 1:31 AM +1100 3/5/08, Malcolm Tredinnick wrote: >On Tue, 2008-03-04 at 08:58 -0500, Ray Cote wrote: >> I have file uploads working using newforms. >> >> However, if I run into validation errors on the form (say a mandatory >> field is not filled), then when the form re-displays for the user,

Re: Problems using cron to run a python script

2008-03-04 Thread [EMAIL PROTECTED]
I'm sorry, but I still don't understand what this will do here. The cron can't run the script because it can't import the feedparser module or the models from my app. So it doesn't matter if I print the system path. Again, my problem is getting the python script to run from the cron in the first

Re: revert database migration

2008-03-04 Thread stranger
Thank you... for the help I started using the django evolution its fine... On Mar 4, 3:24 am, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > On Tue, Mar 4, 2008 at 2:58 AM, stranger <[EMAIL PROTECTED]> wrote: > > After searching this group archive i didnot find much regarding my question >

Re: Problems using cron to run a python script

2008-03-04 Thread [EMAIL PROTECTED]
Hopefully, it will print the path before the import statement fails, and also log the error message that cron generates to a log. So it does matter if you print the sys.path, because that could tell you that the location of your feedparser module isn't on that path. I don't know about dreamhost, b

Re: "for key, value" in 0.96

2008-03-04 Thread Jose Jiménez
Thank you very much everybody. I suspect that was a trunk's functionality. I solved it using a list of tuples. Thanks again. On 26 feb, 00:02, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-02-25 at 10:21 -0800, Jose Jiménez wrote: > > Hello everybody, > > > i'm developing an appl

Re: Problems using cron to run a python script

2008-03-04 Thread [EMAIL PROTECTED]
OK, I did what you instructed and checked the log file, which did contain the system path and the traceback about the "can't import module...". I see the paths specified don't contain the path to the feedparser module, which explains the error. My question is how do I add this path in the cron, e

location of CSS

2008-03-04 Thread Phillip Watts
I can't figure out where to put css files or background images referred to by css. I have: and MEDIA_ROOT = '/home/phil/philproj/media/' ls -al /home/phil/philproj/media total 12 drwxr-xr-x 2 phil phil 4096 2008-03-04 11:57 . drwxr-xr-x 7 phil phil 4096 2008-03-04 12:14 .. -rw-r--r-- 1 phil p

Re: Problems using cron to run a python script

2008-03-04 Thread Evert Rol
> Well part of the problem is that the script itself works fine. I can > run from the command line without a hitch. But when I try to run it > via the cron, I get the traceback about the feedparser module. I believe that, because your PYTHONPATH will be set correctly from the command line; but

Re: Oracle invalid environment variables

2008-03-04 Thread Ian
Richard, What versions of Oracle, cx_Oracle, and Django are you using? Apparently, this can be caused by an invalid NLS_LANG environment variable setting or an invalid NLS value in an ALTER SESSION statement. The Oracle backend automatically sets the NLS_LANG environment variable to ".UTF8" and

sync flickr to my django blog

2008-03-04 Thread stranger
hello group, First of all I would like to thank this community for helping me in solve my doubts regarding django. And here I am again with another one. I am creating my blog using django and I want to integrate my flickr with my blog. I am using the code from here. http://www.djangosni

Re: location of CSS

2008-03-04 Thread Lewis Bergman
Where are your templates stored? Phillip Watts wrote: > I can't figure out where to put css files or background images referred to by > css. I have: > > > and > MEDIA_ROOT = '/home/phil/philproj/media/' > > ls -al /home/phil/philproj/media > total 12 > drwxr-xr-x 2 phil phil 4096 2008-03-04

Re: Problems using cron to run a python script

2008-03-04 Thread [EMAIL PROTECTED]
OK, I'm getting a different error now: Traceback (most recent call last): File "update_feeds.py", line 58, in ? update_feeds() File "update_feeds.py", line 14, in update_feeds from knoxd.apps.aggregator.models import Feed, FeedItem ImportError: No module named knoxd.apps.aggregator.models

reporting queryset-refactor bugs

2008-03-04 Thread Dan Watson
I guess this is mostly a question for Malcolm. Do you want people to start reporting bugs with the queryset-refactor branch, or would you rather hold off until things are a little more solidified? Dan --~--~-~--~~~---~--~~ You received this message because you are

Adding ManyToManyField to Django models

2008-03-04 Thread Michael Irani
I was wondering if it's possible to add a ManyToManyField onto a prebuilt Django model such as User... I know that it would look like this if I were to have created the model myself: class User(models.Model): watch = models.ManyToManyField('self', null=True, blank=True) I'm unsure how to ad

"can't adapt" - mod_python, multiple interpreters, psycopg2

2008-03-04 Thread Pigletto
Hi! I'm observing that "can't adapt" error appears on my Django powered site sometimes. After Apache restart everything is OK for few days and again... can't adapt appears. This is same thing as described there: http://groups.google.com/group/django-users/browse_frm/thread/b11f8fbcfb25aaa0/ed9376

Re: mod_wsgi & trailing slashes on urls

2008-03-04 Thread Matt
Hi Graham, Thanks for the useful reply. You're right, I skipped the general configuration instructions and jumped straight to the Django specific ones, which don't have examples for mounting at a sub-URL. It does very clearly say on the general page that the trailing slash should be omitted in th

ANN: updater.py v0.5.0 -- Django project evolution utility

2008-03-04 Thread srackham
updater.py is a utility for applying and removing an ordered sequence of updates to a Django project: - Creates update skeletons. - Records and tracks update application/removal. - Provides some useful helper objects and functions. An update is typically used to evolve the database schema (prese

Re: mod_wsgi & trailing slashes on urls

2008-03-04 Thread Graham Dumpleton
On Mar 5, 8:26 am, Matt <[EMAIL PROTECTED]> wrote: > > Also, you aren't mounting your application at the root of the web > > server but a sub URL, this means that you have to use a WSGI wrapper > > around Django entry point and have to include the mount point path in > > the URLs in urls.py. This

Re: How to give a style for "CHOICE FILED" in py file

2008-03-04 Thread Pigletto
> group_name=forms.ChoiceField(choices=[("itp","ITP"),("csg", "CSG"), > ("nwg","NWG"),("pcis","PCIS"),("serv","SERV"),("swg","SWG"), > ("wsg","WSG")],required = False) > I WANT TO GIVE A STYLE FOR CHOICE FILED DATA(swg,wsg)... HW CAN I? I'm not sure if I understand what you mean, but m

Re: "can't adapt" - mod_python, multiple interpreters, psycopg2

2008-03-04 Thread Graham Dumpleton
On Mar 5, 8:14 am, Pigletto <[EMAIL PROTECTED]> wrote: > Hi! > > I'm observing that "can't adapt" error appears on my Django powered > site sometimes. After Apache restart everything is OK for few days and > again... can't adapt appears. This is same thing as described > there:http://groups.googl

Re: Adding ManyToManyField to Django models

2008-03-04 Thread Michael Irani
I got some help on IRC and here's the conclusion. There is no way to add that mapping from auth.User to itself without hacking the django code, so what needs to happen is that I add a wrapper Model such as 'Profile' and add the ManyToManyField to 'Profile'. Thereby the mappings will happen within

Re: Adding ManyToManyField to Django models

2008-03-04 Thread [EMAIL PROTECTED]
Yep here's a good article on it: http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ On Mar 4, 5:36 pm, Michael Irani <[EMAIL PROTECTED]> wrote: > I got some help on IRC and here's the conclusion. There is no way to > add that mapping from auth.User to itself without hack

Re: "can't adapt" - mod_python, multiple interpreters, psycopg2

2008-03-04 Thread Malcolm Tredinnick
On Tue, 2008-03-04 at 13:14 -0800, Pigletto wrote: > Hi! > > I'm observing that "can't adapt" error appears on my Django powered > site sometimes. After Apache restart everything is OK for few days and > again... can't adapt appears. This is same thing as described there: > http://groups.google.

Re: reporting queryset-refactor bugs

2008-03-04 Thread Malcolm Tredinnick
On Tue, 2008-03-04 at 13:05 -0800, Dan Watson wrote: > I guess this is mostly a question for Malcolm. Do you want people to > start reporting bugs with the queryset-refactor branch, or would you > rather hold off until things are a little more solidified? And is I say "no bug reports" you'll go

Re: Problems using cron to run a python script

2008-03-04 Thread Malcolm Tredinnick
On Tue, 2008-03-04 at 09:43 -0800, [EMAIL PROTECTED] wrote: > I'm sorry, but I still don't understand what this will do here. > > The cron can't run the script because it can't import the feedparser > module or the models from my app. So it doesn't matter if I print the > system path. Again, my

Re: Problems using cron to run a python script

2008-03-04 Thread Evert Rol
> OK, I did what you instructed and checked the log file, which did > contain the system path and the traceback about the "can't import > module...". Your script did run (you thought it completely failed), but -only- up the 'import feedparser' part. Anything before that ('print sys.path') act

problems with url tag

2008-03-04 Thread msoulier
So, my urlconf is urlpatterns = patterns('teleworker.clients.views', (r'create/$', 'create'), (r'modify/(?P\d+)/$', 'modify'), (r'delete/(?P\d+)/$', 'delete'), (r'page/(?P\d+)/(?P\w+)/(?P\w+)/$', 'list'), (r'page/(?P\d+)/$', 'list'), (r'^$', 'list'), ) The list function i

Re: Adding ManyToManyField to Django models

2008-03-04 Thread Michael
The amazing thing about Django contrib is that, in general, it uses the same features as are available to you in your models. So there is no reason that you need to even install the auth system. You could copy the code out of django.contrib.auth and customize it as you see fit. The only thing is t

Downlaod Free Softwares

2008-03-04 Thread Softwares
Just Click here http://softwares8501.blogspot.com/ All Kind of Softwares are avaliable ** Free ** http://softwares8501.blogspot.com/ * Application Softwares http://softwares8501.blogspot.com/

Re: Adding ManyToManyField to Django models

2008-03-04 Thread Evert Rol
> I was wondering if it's possible to add a ManyToManyField onto a > prebuilt Django model such as User... I know that it would look like > this if I were to have created the model myself: > class User(models.Model): > watch = models.ManyToManyField('self', null=True, blank=True) > > I'm unsu

Re: Problems using cron to run a python script

2008-03-04 Thread Evert Rol
> OK, I'm getting a different error now: > > Traceback (most recent call last): > File "update_feeds.py", line 58, in ? > update_feeds() > File "update_feeds.py", line 14, in update_feeds > from knoxd.apps.aggregator.models import Feed, FeedItem > ImportError: No module named knoxd.apps.aggreg

Re: Adding ManyToManyField to Django models

2008-03-04 Thread Michael Irani
Evert, the situation is that I was trying to use the auth.User as my model and wanted to have it point to itself. Thereby not having my own model at all. I was curious as well about being able to subclass a prebuilt model, but from the reactions I've gotten towards this, it doesn't seem to be an

Re: Adding ManyToManyField to Django models

2008-03-04 Thread Michael Irani
One thing I dislike about the approach that's being pushed by the community, which is to have a one-to-one relationship between auth.User and your own 'Profile' model (or whatever you want to call it) adding all the functionality and relationships to the user-created Model is a bit much. I mean ye

Re: location of CSS

2008-03-04 Thread Evert Rol
> I can't figure out where to put css files or background images > referred to by > css. I have: > > > and > MEDIA_ROOT = '/home/phil/philproj/media/' Don't you need a '/media/' or something before that 'dirview.css'? What is your MEDIA_URL? Since Django normally has the media files (css, i

Re: change user admin template

2008-03-04 Thread Michael
Right where you would expect it to be: Django.Contrib.admin.templates You might want to look in django.contrib.auth.views to see what template is being used. On Tue, Mar 4, 2008 at 11:41 AM, Rufman <[EMAIL PROTECTED]> wrote: > > Hey > > I can't seem to find the template that is displayed when

Recovering from Postgres errors

2008-03-04 Thread Kent Johnson
When accessing a Postgres database from Django ORM without any explicit transaction management, any database query begins an implicit transaction which ends with the next save(). If the save fails due to a database error (e.g. integrity violation, timeout...) it raises an exception. At this po

Re: solving fixture data conflicts

2008-03-04 Thread Evan H. Carmi
Russell Keith-Magee wrote: > The only real solution at present is to avoid serializing content > types whenever possible (i.e., by not dumping the contenttypes > application). If your fixture already has content types, manually > delete them from the fixture before loading. How can I go about man

Re: solving fixture data conflicts

2008-03-04 Thread Russell Keith-Magee
On Wed, Mar 5, 2008 at 1:34 PM, Evan H. Carmi <[EMAIL PROTECTED]> wrote: > > Russell Keith-Magee wrote: > > The only real solution at present is to avoid serializing content > > types whenever possible (i.e., by not dumping the contenttypes > > application). If your fixture already has content

Re: Problems using cron to run a python script

2008-03-04 Thread Andrew Holt
Hi, OK, write a small script that runs you python job. Try running the job from the shell: /usr/bin/python -v /path/to/script/update_feeds.py This will list all the import statements, so find your imports that fail in the cron job ... And then your script would be: #!/bin/sh PYTHONPATH= .

Re: location of CSS

2008-03-04 Thread Phillip Watts
On Tuesday 04 March 2008 12:38:25 Lewis Bergman wrote: > Where are your templates stored? currently, here TEMPLATE_DIRS = ( '/home/philproj/dirview/httemplates',) but I have copies of dirview.css in that any every other directory I could think of accessible to user phil. And, oh yeah, no sla

ViewDoesNotExist admin error.

2008-03-04 Thread Chris
Hello, Not sure what has happened but I keep getting this error when attempting to login to my admin section. I key in Username and pass and once I press submit django returns this error: Request Method: GET Request URL:http://django.xyz.net/admin/ Exception Type: ViewDoesNotE

Re: Adding ManyToManyField to Django models

2008-03-04 Thread Malcolm Tredinnick
On Tue, 2008-03-04 at 13:06 -0800, Michael Irani wrote: > I was wondering if it's possible to add a ManyToManyField onto a > prebuilt Django model such as User... I know that it would look like > this if I were to have created the model myself: > class User(models.Model): > watch = models.M

Re: Adding ManyToManyField to Django models

2008-03-04 Thread Michael Irani
Michael, Your opinion on this makes sense and in the end I will probably just go with the wrapper approach, since it probably won't make that much of a difference anyways. My biggest qualm is that I'm trying to put together a strong foundation for the projects I'm working on and feel like this is

Re: Adding ManyToManyField to Django models

2008-03-04 Thread Michael
Michael; Think of it this way: the auth model is just one way to provide authentication into your architecture. It wouldn't make much sense to have too much more information about the person inside of this model. There is an effort to try to be able to extend models, but as far as I know it has b

Only 3 weeks left for PostgreSQL Conference: East

2008-03-04 Thread Joshua D. Drake
Hello, There are only three weeks left to register for the PostgreSQL Community Conference: East! The conference is scheduled on March 29th and 30th (a Saturday and Sunday) at the University of Maryland. Come join us as Bruce Momjian and Joshua Drake have a round table open to any PostgreSQL que

Re: Django WITHOUT apache on windows.

2008-03-04 Thread fulltooalok
Hi lbolognini, thanks for the link. I was able to configure Django on W2k3 using DjangoCerise (and WITHOUT using apache). Also I m using IIS to serve media. Now since DjangoCerise configuartion uses separate port for separate projects my urls look like, http://192.168.0.17:8088/djprojone/ http://1

Re: ViewDoesNotExist admin error.

2008-03-04 Thread Mitja Martini
Hi Chris, you may have a problem with your urls.py - check if you activated the admin site correctly (see http://www.djangoproject.com/documentation/tutorial02/#activate-the-admin-site - check if you have a pattern that catches /admin/ earlier on Do you use django-profiles? If yes: You do not u

Re: "can't adapt" - mod_python, multiple interpreters, psycopg2

2008-03-04 Thread Pigletto
> > Problem is possibly with multiple interpreters and psycopg2 again, > > Why do you say that? The thread you refer to above doesn't talk about > mod_python, so do you have any extra evidence that support this claim? There was a bug in psycopg2 with Decimal data type that sometimes caused error l