Showng the primary key in admin view

2009-09-01 Thread Joakim Hove
Hello, I have a (simplified) model like this class Customer(models.Model): name = models.CharfField(max_length = 100) date= models.DateTimeField() email = models.EmailField() When showing this in the (100 % default) admin view I get up nice entry boxes for the

How to call random pictures thumbs in sidebar from pictures section?

2009-09-01 Thread Bins
On my django run website, I've this sidebar which calls 5 random pictures from entries.. here's the code that does it :- {% for entry in thumb_entries %} {% endfor %} My website, say www.example.com, has a section

Re: JSON serialization of related records.

2009-09-01 Thread Mike Ramirez
On Tuesday 01 September 2009 12:29:56 pm Amir Habibi wrote: > How can I serialize a Queryset along with the related records. For > example, in Poll and Choice case, I need each poll to have the choices > encoded in json format. > > Thanks > you'll want to look at the docs on serialization [1], it

Re: Need help getting the company I work for to go with django

2009-09-01 Thread Sam Lai
2009/9/2 Kenneth Gonsalves : > > On Tuesday 01 Sep 2009 10:55:18 pm mrsource wrote: >> - It has many tools for safety, with a normal opensource CMS you have >> many more issues with security holes because all the code is public. > > this is sheer FUD to say that 'many more

Re: Django dev server (runserver) takes 5 seconds after reloading new code?

2009-09-01 Thread Tim Boy
I have the same issue only with one view except mine takes exactly 5 minutes! :) I just switched to using apache on localhost and now no issues. On Tue, Sep 1, 2009 at 11:18 AM, Jumpfroggy wrote: > > I have a strange problem that's popped up just recently, and it's >

Re: Need help getting the company I work for to go with django

2009-09-01 Thread Mike Ramirez
On Tuesday 01 September 2009 10:25:18 am mrsource wrote: > Two points: > - Django has good performance and scales well. > - It has many tools for safety, with a normal opensource CMS you have > many more issues with security holes because all the code is public. > Isn't django's code public, why

Re: Django and ZSI

2009-09-01 Thread Julián C . Pérez
Thanks On Aug 31, 3:22 pm, Antoni Aloy wrote: > 2009/8/31 Julián C. Pérez : > > > > > Anyone has experience with using web services in Django?? > > I mean, not necessarily with ZSI but others methods... > > Yes, we have many of the working. But this is

Re: Need help getting the company I work for to go with django

2009-09-01 Thread Kenneth Gonsalves
On Tuesday 01 Sep 2009 10:55:18 pm mrsource wrote: > - It has many tools for safety, with a normal opensource CMS you have > many more issues with security holes because all the code is public. this is sheer FUD to say that 'many more issues with security holes because all the code is public.'

Consuming python 2.6 /django 1.1/SOAPLIB 0.8.1 webservice with .NET ?

2009-09-01 Thread Wombatpm
Has anyone had web services successfully consumed from a .NET client using python 2.6 /django 1.1/SOAPLIB 0.8.1? I'd love to know how you did it. I've patched my SOAPLIB install to fix the WSDL issue and the unicode issue as detailed in my previous thread. My issue currently is that the SOAP

Re: Having real problems with CSS

2009-09-01 Thread Karen Tracey
On Tue, Sep 1, 2009 at 4:18 PM, Ozymandias wrote: > > Greetings, > > I admit to being very confused at the moment. I'm simply wanting to > change the style sheets on the Admin Site. I'm mostly just wanting to > change the color scheme. Nothing terribly complicated.

bizarre: Tabular Inline not showing in form when Debug is off

2009-09-01 Thread felix
I have some objects that have garbage UTF-8 in their titles !俾爀最愀渀稀愀 ⠀吀爀愀渀猀瀀愀爀攀渀琀 䐀甀戀⤀ (for the amusement of our Chinese friends) The admin for these objects has a TabularInline which would also repeat that title, and I think this the clue to the problem. When debug is off the TabularInline does

Having real problems with CSS

2009-09-01 Thread Ozymandias
Greetings, I admit to being very confused at the moment. I'm simply wanting to change the style sheets on the Admin Site. I'm mostly just wanting to change the color scheme. Nothing terribly complicated. I'm using Django 1.1 running in the Development Server on a Linux Mint machine. Here's

Re: django-tinymce problem on server

2009-09-01 Thread Sonal Breed
Hello Joost, I came across http://code.google.com/p/django-tinymce/issues/detail?id=14 link in django-tinymce and from that, it occurs that I do not have en dictionary installed. I checked in python prompt and it returns false. I need to install these dictionaries on web server. Can you please

Here's a more flexable formset I just posted

2009-09-01 Thread Joshua Russo
If you ever wanted to create formsets without needing to know all of the initial data at once, this might help you out. http://www.djangosnippets.org/snippets/1711/ I used it in a data entry table where the forms of the formset were intermingled with rows of already created data. I tried to do it

Re: [Solved] Re: Make dev server respond on multiple IPs?

2009-09-01 Thread Ryan Mark
python manage.py runserver 0.0.0.0:8000 should bind the dev server to every IP on the machine On Tue, Sep 1, 2009 at 3:27 PM, ringemup wrote: > > Never mind, I figured it out.  Just need to start a separate instance > for each IP. > > On Sep 1, 4:26 pm, ringemup

Re: user disappearing when saved

2009-09-01 Thread buttman
On Sep 1, 3:17 pm, Joshua Russo wrote: > On Tue, Sep 1, 2009 at 10:09 AM, buttman wrote: > > > On Sep 1, 4:52 am, Joshua Russo wrote: > > > > Why are you using commit=False? > > > If I don't, I get a database error saying

Re: django-tinymce problem on server

2009-09-01 Thread Sonal Breed
Hello Joost, I had previously commented out t.editor.windowManager.alert(e.errstr || ('Error response: ' + x.responseText)); line in tiny_mce/plugins/ spellchecker/edotor_plugin.js as I was getting some error when I click spellchecker with empty text area. Hence, the error messages were

Re: Django and SSL Deployment using mod_wsgi

2009-09-01 Thread Graham Dumpleton
On Sep 1, 11:30 pm, Alex Robbins wrote: > Graham, > > I'm interested in understanding what you just said. It seems like you > are saying you can get the X-Forwarded-SSL environment variable to > automatically be set, without needing the django middleware. Seems >

[Solved] Re: Make dev server respond on multiple IPs?

2009-09-01 Thread ringemup
Never mind, I figured it out. Just need to start a separate instance for each IP. On Sep 1, 4:26 pm, ringemup wrote: > I've got some screwy DNS stuff going on on my local machine and need > the development server to respond to requests on two IP addresses at > once

Make dev server respond on multiple IPs?

2009-09-01 Thread ringemup
I've got some screwy DNS stuff going on on my local machine and need the development server to respond to requests on two IP addresses at once (127.0.0.1 and 192.168.1.7). Is there any way to wrangle that? Thanks! --~--~-~--~~~---~--~~ You received this message

Re: Need help getting the company I work for to go with django

2009-09-01 Thread Tim Chase
> I work as a web developer at a reasonably large company in London. We > are just about to completely re brand and rebuild the companies website > (s) and implement a CMS. I'm having a meeting tomorrow to discuss > different avenues we can go down in regards to what technologies we > can use.

JSON serialization of related records.

2009-09-01 Thread Amir Habibi
How can I serialize a Queryset along with the related records. For example, in Poll and Choice case, I need each poll to have the choices encoded in json format. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Database connection closed after each request?

2009-09-01 Thread Ed Menendez
Just to throw my two cents in. My background is high-traffic fantasy sports websites (a different sort of geekness) and I've dealt with connection pooling and connection persistence separately on other ancient platforms. I will +1 Alex's observation that connection pooling and persistent

Re: user disappearing when saved

2009-09-01 Thread Joshua Russo
On Tue, Sep 1, 2009 at 10:09 AM, buttman wrote: > > On Sep 1, 4:52 am, Joshua Russo wrote: > > > > Why are you using commit=False? > > If I don't, I get a database error saying "user_id column can't be > null". You might want to look at the clean

Re: EmailMessage and TSL - problems?

2009-09-01 Thread Katja
Ooops, sorry - I used port 587, port 465 was only my last try before I posted the message, so I copied the wrong part ... It also does not work with 587. 587 works with send_mail (but not on the Win server with Django 1.0.2) but not with the EmailMessage object.

Re: EmailMessage and TSL - problems?

2009-09-01 Thread Karen Tracey
On Tue, Sep 1, 2009 at 2:26 PM, Katja wrote: > > I have the following settings: > EMAIL_HOST = "smtp.gmail.com" > EMAIL_PORT = 465 > EMAIL_HOST_USER = MYLOGIN > EMAIL_HOST_PASSWORD = MYPASSWORD > EMAIL_USE_TLS = True > > And the mailing part: > subject = "New data

turning login off in admin

2009-09-01 Thread knight
Hi, I want to turn off the login when going to the admin page url. I want to enter to admin pages as anonymous/no user and require login only in 2 specific urls. How can I turn off the login request in the beginning? Thanks, Arshavski Alexander.

EmailMessage and TSL - problems?

2009-09-01 Thread Katja
I have the following settings: EMAIL_HOST = "smtp.gmail.com" EMAIL_PORT = 465 EMAIL_HOST_USER = MYLOGIN EMAIL_HOST_PASSWORD = MYPASSWORD EMAIL_USE_TLS = True And the mailing part: subject = "New data outputs are available" recipients = ["m...@here.com"] sender = "some...@else.com" email

Re: Using cmemcache - not a good idea?

2009-09-01 Thread Ricky
I just ran into the same issue this past weekend, same stack as you. The apache error log was full of memcache related errors (see below for examples), so I tried to switch to version 0.91 based on recommendations I saw. But the errors didn't stop until I switched to python-memcache. Now, it is

Re: tagging problems

2009-09-01 Thread Japan Shah
yes problem is django version missmatch. django 1.0 final and its not compatible with tagging 2.* for it you must use tagging 0.3 On Jul 26, 1:23 pm, todd12 wrote: > Hi T, > > I found this in the tagging issues from 2008 but it worked: > > if your like me then you get

Re: unique=True and IntegrityError

2009-09-01 Thread aa56280
> The check for unique fields is done in the base ModelForm clean method.  By > overriding clean without calling the superclass clean you are causing the > checks to be bypassed. I read up on it while you were posting your reply :)

Django dev server (runserver) takes 5 seconds after reloading new code?

2009-09-01 Thread Jumpfroggy
I have a strange problem that's popped up just recently, and it's puzzling to me. I'm running the "manage.py runserver" dev server for development. Normally, right after I save a file, the server reloads the new code and is ready to go right away. However, recently one of my apps has a strange

Re: Need help getting the company I work for to go with django

2009-09-01 Thread mrsource
Two points: - Django has good performance and scales well. - It has many tools for safety, with a normal opensource CMS you have many more issues with security holes because all the code is public. On 1 Set, 18:52, "Rob B (uk)" wrote: > I work as a web developer at a

Re: unique=True and IntegrityError

2009-09-01 Thread Karen Tracey
On Tue, Sep 1, 2009 at 12:51 PM, aa56280 wrote: > > You're right, I did leave out something - the clean() method. Nothing > unusual there. In fact, if I take out everything from the method and > leave the shell: > > def clean(self): > return self.cleaned_data > > It still

Re: how to make admin app use templates from app templates folder?

2009-09-01 Thread Bill Freeman
Add the filesystem template loader, put it before app directories loader, and put the (absolute) path to your templates directory (e.g.; /home/moho/myapp/templates) in TEMPLATES_DIR. Bill On Tue, Sep 1, 2009 at 11:52 AM, Aljosa Mohorovic < aljosa.mohoro...@gmail.com> wrote: > > admin app uses

Need help getting the company I work for to go with django

2009-09-01 Thread Rob B (uk)
I work as a web developer at a reasonably large company in London. We are just about to completely re brand and rebuild the companies website (s) and implement a CMS. I'm having a meeting tomorrow to discuss different avenues we can go down in regards to what technologies we can use. I'm hoping

Re: unique=True and IntegrityError

2009-09-01 Thread aa56280
You're right, I did leave out something - the clean() method. Nothing unusual there. In fact, if I take out everything from the method and leave the shell: def clean(self): return self.cleaned_data It still craps out. However, if I take away the entire method, then I do get the validation

Re: model validation errors

2009-09-01 Thread alain31
Ok so I will write a custom form. I think that I will also write a custom field to do some specific things (for example add a url method to get png ...). I need to understand better the methods : - contribute_to_class, -validate, validate_full -formfield I found nothing in django's doc, and

More elegant way to dump/load Django model data?

2009-09-01 Thread David Moss
Hi, I'm saving and loading snapshots of a database (controlled and accessed via Django models) to and from source control. I've written routines using django.core.management.call_command and the serialization framework to dump and load the database contents periodically. This is usually just

make-messages.py : no permission

2009-09-01 Thread arbi
I want to run internationalization. I get into /django/ and enter bin/make-messages.py -a (because already done one time). I don't have the permission and when I want to change the permission for xrw, my Mac computer tells me I can't change it. So I make "su" and enter a password, but my mac

Re: how to make admin app use templates from app templates folder?

2009-09-01 Thread Ramiro Morales
On Tue, Sep 1, 2009 at 12:52 PM, Aljosa Mohorovic wrote: > > admin app uses templates/admin/base_site.html but when i move that > file in myapp/templates/admin/base_site.html it is ignored. > is there an additional step to ensure admin app uses templates from > app

Re: context processors in 404 errors

2009-09-01 Thread Karen Tracey
On Tue, Sep 1, 2009 at 12:02 PM, Alessandro Ronchi < alessandro.ron...@soasi.com> wrote: > When I return a 500 error I need to have my context_processor, in which I > store some important vars used in my template. Is it possible? > Your subject line says 404 errors but your text says 500. Which

context processors in 404 errors

2009-09-01 Thread Alessandro Ronchi
When I return a 500 error I need to have my context_processor, in which I store some important vars used in my template. Is it possible? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~~~---~--~~ You received

Re: Access to postgresql with Django, in Apache server not work, but in Django server work(pyton manage.py ruserver)

2009-09-01 Thread Karen Tracey
On Tue, Sep 1, 2009 at 10:54 AM, NMarcu wrote: > > Hello all, > > I'm very new in python, Django... I have a Django project. If I run > it like: python manage.py runserver, everything is OK. When I run it > in Apache2 I got this error: > OperationalError at /login > >

how to make admin app use templates from app templates folder?

2009-09-01 Thread Aljosa Mohorovic
admin app uses templates/admin/base_site.html but when i move that file in myapp/templates/admin/base_site.html it is ignored. is there an additional step to ensure admin app uses templates from app templates folder? i do have 'django.template.loaders.app_directories.load_template_source' in

Using cmemcache - not a good idea?

2009-09-01 Thread Ryan Mark
Hey Folks - I did load testing on my amazon ec2 ubuntu+django+postgresql+memcached setup. I discovered that under load, cmemcache seems to fail on get cache requests. It causes django to make a bunch of set cache calls, even though the key exists in memcached. switching to python-memcache fixed

Re: name error not defined in models

2009-09-01 Thread Alex Gaynor
On Tue, Sep 1, 2009 at 11:19 AM, Joru wrote: > > Hi > > I got name error in my models when using models.ManyToManyField > Here are my models > > class Ank(models.Model): >    route = models.ManyToManyField(Dek) >    intercity = models.BooleanField() > > class

Access to postgresql with Django, in Apache server not work, but in Django server work(pyton manage.py ruserver)

2009-09-01 Thread NMarcu
Hello all, I'm very new in python, Django... I have a Django project. If I run it like: python manage.py runserver, everything is OK. When I run it in Apache2 I got this error: OperationalError at /login FATAL: Ident authentication failed for user "nmarcu" How can be this possible? In

name error not defined in models

2009-09-01 Thread Joru
Hi I got name error in my models when using models.ManyToManyField Here are my models class Ank(models.Model): route = models.ManyToManyField(Dek) intercity = models.BooleanField() class Dek(models.Model): ank = models.ManyToManyField(Ank) How come I got "NameError: name 'Dek' is

Re: ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread ANIL KARADAĞ
2009/9/1 Daniel Roseman > > On Sep 1, 12:17 pm, ANIL KARADAĞ wrote: > > 2009/9/1 Daniel Roseman > > > > > On Sep 1, 10:35 am, ANIL KARADAĞ wrote: > > > > hello everbody, > > > > > > i have en error

Re: how to use postgresql8.4 in django1.1

2009-09-01 Thread tungliang.han...@gmail.com
thanks,I have solved it by using python2.5. thank you again. On 9月1日, 下午8时18分, mrsource wrote: > I suppose that you have downloaded the latest version of psycopg2: > psycopg2-2.0.12.win32-py2.6-pg8.4.0-release.exe. > In that case use the previous release

Re: Django and SSL Deployment using mod_wsgi

2009-09-01 Thread Vitaly Babiy
Thanks guys for all the feedback, I have done what Francis said, we are using nginx and apache/mod_wsgi in the back. Nginx handles the ssl and it works great. Thanks for the help. Vitaly Babiy On Tue, Sep 1, 2009 at 9:30 AM, Alex Robbins wrote: > > Graham, > > I'm

Problems with custom permissions

2009-09-01 Thread Sandra Django
Hi friends, I haver another problem. I created a custom permission, but when I write a condition, always return False. For example: ---models.py class Book(models.Model): title = models.CharField(verbose_name = "Title", max_length = 150) author =

Re: unique=True and IntegrityError

2009-09-01 Thread Karen Tracey
On Tue, Sep 1, 2009 at 1:20 AM, aa56280 wrote: > > ### Model ### > class School(models.Model): >url = models.SlugField(max_length=50, unique=True) >name = models.CharField(max_length=255) >... > > > ### Form ### > class SchoolForm(ModelForm): > >class Meta: >

Re: Django and SSL Deployment using mod_wsgi

2009-09-01 Thread Alex Robbins
Graham, I'm interested in understanding what you just said. It seems like you are saying you can get the X-Forwarded-SSL environment variable to automatically be set, without needing the django middleware. Seems simple enough. The middleware also handles redirects, so that someone accidentally

Re: FormWizard: how to pass in extra keyword arguments into a form's __init__?

2009-09-01 Thread Alex Robbins
I guess the question is when you know the additional keyword argument. If you already know what that extra keyword is when you are constructing the form list, you could use a partial[1] to put in the arguments you know already. Partials are python 2.5+ only, you can use a lambda instead if you

Custom manager on abstract model

2009-09-01 Thread Paolo Ferretti
Hi, I've got a problem with a custom manager on an abstract model. I've something like this: class CommonModelManager(models.Manager): def get_query_set(self): return super(CommonModelManager, self).get_query_set().filter (time_deleted__isnull=True).filter

Problems with filter_horizontal

2009-09-01 Thread Sandra Django
Hi friends, I'm using Django 1.1, and I want to change the widget by default on ManyToManyField for it looks as user permissions field in Django. For that, in my admin.py I wrote: from django.contrib import admin from myproject.app.models import Book class BookAdmin(admin.ModelAdmin):

Re: model validation errors

2009-09-01 Thread Thomas Guettler
Hi, Up to now Model Validation is not possible with django. You need to use a ModelForm. The documentation contains examples how to do custom validation. alain31 schrieb: > Hello, I wrote a model to manage small TeX fragments: > > class LaTeX(models.Model): > latex =

Overriding choices in abstract model's subclasses

2009-09-01 Thread akaariai
Hi, I have the following (pseudocode) models.py: class Attachment: file = FileField(upload_to=...) type = CharField(max_length=2, choices=ABSTRACT_CHOICES) lang = CharField(max_length=2, choices=LANG_CHOICES) # some other fields, too... class Meta: abstract = True

Re: how to use postgresql8.4 in django1.1

2009-09-01 Thread mrsource
I suppose that you have downloaded the latest version of psycopg2: psycopg2-2.0.12.win32-py2.6-pg8.4.0-release.exe. In that case use the previous release psycopg2-2.0.10.win32-py2.6- pg8.3.7-release.exe that you can find here http://stickpeople.com/projects/python/win-psycopg/index.2.0.9.html,

Re: Renaming displayed django application name in admin

2009-09-01 Thread patrickk
I don´t think it´s possible to change an app-name. you can change the name of the models though. regards, patrick On 1 Sep., 10:50, Joshua Russo wrote: > On Tue, Sep 1, 2009 at 1:10 AM, Joshua Partogi > wrote: > > > Dear all, > > How do we

Re: ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread Daniel Roseman
On Sep 1, 12:17 pm, ANIL KARADAĞ wrote: > 2009/9/1 Daniel Roseman > > > On Sep 1, 10:35 am, ANIL KARADAĞ wrote: > > > hello everbody, > > > > i have en error for a week. i did not resolve and i did not find it's > > >

Re: Call a custom python function during each model save

2009-09-01 Thread ankit rai
def save_model(self, request, obj, form, change): obj.save() urfunction(aa,aa,aa,a) On Tue, Sep 1, 2009 at 3:59 PM, ANIL KARADAĞ wrote: > you can override model save method: > > for example > > class Student(models.Model): > name = models.CharField(blabla) >

Re: Call a custom python function during each model save

2009-09-01 Thread ankit rai
just overide save method and inside that method call ur function ,*do import it * for ex def save_model(): call ur function here myfunction(xx,aaa,aa) obj.save() On Tue, Sep 1, 2009 at 3:59 PM, ANIL KARADAĞ wrote: > you can override model save method: > > for

Re: Localized timesince template tag?

2009-09-01 Thread LaundroMat
On Aug 31, 1:55 pm, LaundroMat wrote: > I seem to remember being able to have template tags and filters > localized in Django, but I can't find any information on this back. > Did I misremember, or have my search skill deteriorated? > > I'm particularly looking for a Dutch

Re: ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread ANIL KARADAĞ
2009/9/1 Daniel Roseman > > On Sep 1, 10:35 am, ANIL KARADAĞ wrote: > > hello everbody, > > > > i have en error for a week. i did not resolve and i did not find it's > > solution. > > > > Sometimes system is sent an error: > > > > File >

Re: user disappearing when saved

2009-09-01 Thread buttman
On Sep 1, 4:52 am, Joshua Russo wrote: > > Why are you using commit=False? If I don't, I get a database error saying "user_id column can't be null". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

ValueError: invalid literal for int() with base 10: '42596/img/admin/icon_calendar.gif'

2009-09-01 Thread ANIL KARADAĞ
hello everbody, i have en error for a week. i did not resolve and i did not find it's solution. Sometimes system is sent an error: File "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py", line 353, in get_db_prep_value return int(value) ValueError: invalid literal for

Re: Call a custom python function during each model save

2009-09-01 Thread ANIL KARADAĞ
you can override model save method: for example class Student(models.Model): name = models.CharField(blabla) def save(self, *force_insert=False*, *force_update=False*): # call spesific python method # operations super(Student,

Call a custom python function during each model save

2009-09-01 Thread Harish
Hi Friends, I want to call a python function, while saving each model... How can I do this? For example I have many application in a project I have field in each model of the application and I have to access the field just before the any model object is saved and alter a value of that

how to use postgresql8.4 in django1.1

2009-09-01 Thread tungliang.han...@gmail.com
hi,guys According to the django documents(http://docs.djangoproject.com/en/dev/ topics/install/),I have downloaded the psycopg(http://stickpeople.com/ projects/python/win-psycopg/) and switched the database in the settings. However,when I sync the database or run server,there are some error

Re: Custom form validation request or user-based

2009-09-01 Thread Enrico Sartorello
Wait a moment: this solution doesn't solve my problem. Remember that the form I need has to be used on the admin site, so I can't deal with it directly (in fact, I can't instantiate it and provide additional arguments). Are there any other way to accomplish that? On Tue, Sep 1, 2009 at 10:48 AM,

Re: user disappearing when saved

2009-09-01 Thread Joshua Russo
On Tue, Sep 1, 2009 at 5:52 AM, nbv4 wrote: > > (Pdb) f0 > > (Pdb) f0.cleaned_data > {'ipc': False, 'xc': 0, 'app': 0, 'pic': 0, 'cfi_checkride': False, > 'dual_r': 0, 'date': datetime.date(2009, 9, 5), 'dual_g': 0, 'total': > 5.5996, 'id': None, 'sic': 0,

Re: Renaming displayed django application name in admin

2009-09-01 Thread Joshua Russo
On Tue, Sep 1, 2009 at 1:10 AM, Joshua Partogi wrote: > Dear all, > How do we change the displayed application name in django admin? Let's say > I have an application called foo, I wanted it to be displayed as bar instead > of foo in the admin system. > > I've searched

Re: Custom form validation request or user-based

2009-09-01 Thread Enrico Sartorello
Thank you very much, your solution is simple and efficient :-) On Mon, Aug 31, 2009 at 10:57 PM, Matthias Kestenholz < matthias.kestenh...@gmail.com> wrote: > > On Fri, Aug 28, 2009 at 10:34 AM, Enrico > Sartorello wrote: > > Hi, > > i'm developing a Django

Re: SQL query with complex WHERE clause

2009-09-01 Thread esatterwh...@wi.rr.com
Probably want to look into using Q http://docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with-q-objects On Aug 31, 7:18 pm, Gyanit wrote: > Hi All, > > I don't seem to find good source to help me write a complex where condition > in the django. > > The where

user disappearing when saved

2009-09-01 Thread nbv4
(Pdb) f0 (Pdb) f0.cleaned_data {'ipc': False, 'xc': 0, 'app': 0, 'pic': 0, 'cfi_checkride': False, 'dual_r': 0, 'date': datetime.date(2009, 9, 5), 'dual_g': 0, 'total': 5.5996, 'id': None, 'sic': 0, 'night_l': 0, 'holding': False, 'act_inst': 0, 'pilot_checkride': False, 'solo': 0,

Re: django-tinymce problem on server

2009-09-01 Thread Joost Cassee
Hi Sonal, On 27 aug, 14:13, Sonal Breed wrote: > I have django-tinymce spellchecker working perfectly on my local > machine which is Ububtu. > But as soon as, I deploy it on a web host (CentOS), it gives me > problems. Specifically, when I click the specllchecker