Re: first project taking it too production server

2009-11-16 Thread Amit Sethi
yes I do have ssh access and the server does have python on it. On Tue, Nov 17, 2009 at 7:02 AM, Kenneth Gonsalves wrote: > On Monday 16 Nov 2009 7:41:47 pm Amit Sethi wrote: >> Hi , I just developed my first small app using django , I wish to >> deploy it . I have a apache

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread andreas schmid
hi mike, sry i dont want to be unkind but could you please turn the mail delivery confirmation off when you write to a list?! thx Mike Ramirez wrote: > On Monday 16 November 2009 20:12:57 Kenneth Gonsalves wrote: > >> anyway, in pitching for django (in particular), python and postgresql in

Re: Help with manage.py syncdb

2009-11-16 Thread Kenneth Gonsalves
On Tuesday 17 Nov 2009 11:10:15 am jd_python wrote: > raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > module: No module named MySQLdb > you did not install MySQLdb which is the python module used to

Re: Django and reportlab table question

2009-11-16 Thread Kenneth Gonsalves
On Tuesday 17 Nov 2009 11:29:25 am adelaide_mike wrote: > Can anyone give me a push in the right direction? Thanks for any > help. > practical example: http://bitbucket.org/gopalasivam/fida/src/tip/web/views.py line 194 onwards (not necessarily good code, but there are a lot of things like

Help with manage.py syncdb

2009-11-16 Thread jd_python
Hello there, I am a newbie learning Python/Django... Am using the following tutorial located at: http://bit.ly/eIdT Created a mysite database in MySQL 5 running on Snow Leopard. Edited the settings.py file to look like this: DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2',

Django developer needed in Sydney

2009-11-16 Thread roxitman
Hi, we are looking to install and setup Django for our school in Sydney, Australia. Looking for advice as well as someone to help design, install and configure it. Please contact me at roxit...@gmail.com if you live in Sydney and have skills with Django. Paul Lister Director ICT, The Scots

Re: Django and reportlab table question

2009-11-16 Thread Andy McKay
On 09-11-16 9:59 PM, adelaide_mike wrote: > I am attempting to user ReportLab with Django to make a report > displaying my data in a tabular format. [..] > ['Conclusion','Run!'] Loop through your vehicles as your simple naive start, eg: data = [] for vehicle in vehicles:

Django and reportlab table question

2009-11-16 Thread adelaide_mike
I am attempting to user ReportLab with Django to make a report displaying my data in a tabular format. An example model is: class Vehicle(models.Model): ve_name = models.CharField(max_length=20) ve_type = models.CharField(max_length=20) My report generating view a copy of the example in

Re: mod_wsgi error which i have no idea how to fix

2009-11-16 Thread Graham Dumpleton
On Nov 17, 10:58 am, Damon Jablons wrote: > Hey, > > I'm running Nginx which proxies Apache and on my website, I get the > following error when I tail the Apache log: > > [Mon Nov 16 23:51:08 2009] [error] [client 127.0.0.1] No WSGI daemon > process called

Re: Confusing error: AttributeError: 'Settings' object has no attribute 'rindex'.

2009-11-16 Thread Gene
Thanks for your help! Indeed a {% url %} tag was calling a view directly with the unfortunate name 'settings', which I had renamed. (named url patterns ftw) On Nov 16, 9:05 pm, Karen Tracey wrote: > On Mon, Nov 16, 2009 at 8:02 PM, Gene wrote: > > I'm

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Melvyn Sopacua
On Tue, 17 Nov 2009 07:38:35 +0530, Kenneth Gonsalves wrote: > On Monday 16 Nov 2009 10:44:27 pm Mike Ramirez wrote: >> > it is precisely this assumption that does not seem logical to me. But >> > frankly I do not know how to counter it ;-) >> > >> >> How is it not logical?

Re: DB table hook/callback

2009-11-16 Thread Andy McKay
On 09-11-16 9:01 PM, Ishwor Gurung wrote: > "Django includes a “signal dispatcher” which helps allow decoupled > applications get notified when actions occur elsewhere in the > framework." The word "framework" is I think the key here. Right? Correct, signals won't help spot changes in the

Re: Confusing error: AttributeError: 'Settings' object has no attribute 'rindex'.

2009-11-16 Thread Karen Tracey
On Mon, Nov 16, 2009 at 8:02 PM, Gene wrote: > I'm getting an error that has completely perplexed me: AttributeError: > 'Settings' object has no attribute 'rindex'. > > The complete traceback is listed below. I get this for any request but > a root request '/'. I'm, using

DB table hook/callback

2009-11-16 Thread Ishwor Gurung
Hi folks, Is there any way in Django to have a global hook (not Python hook, an architecture hook rather :-) on a database table? I want to get notifications in my django layer of changes in DB i.e. whenever theres an update/delete. Is this feasible or am I heading the wrong way? The doc[1] says

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Mike Ramirez
On Monday 16 November 2009 20:12:57 Kenneth Gonsalves wrote: > anyway, in pitching for django (in particular), python and postgresql in > general, I put safe code as number one in the list. And I personally am > confident (after seeing the work done in the last 5 years in django, python > and

Re: Django i18n

2009-11-16 Thread Carlos Ricardo Santos
I think pt-BR will fit. Just can't understand why the backoffice is translated and the main app not : ( Even in pt-Pt. On Nov 17, 2009 2:30 AM, "Kenneth Gonsalves" wrote: On Monday 16 Nov 2009 9:46:58 pm Carlos Ricardo Santos wrote: > I use to folders at app/locale: > >... I

Re: order_by related models

2009-11-16 Thread Karen Tracey
On Mon, Nov 16, 2009 at 5:41 PM, dave.l wrote: > Hi! > > The following line in my application seems to have stopped working as > I expect: > > for object in self.queryset.select_related().order_by > ("app_building.principal_name", "reference"): > > the first

Re: Django/GoDaddy

2009-11-16 Thread mkumm
Thanks everyone. I was able to resolve my issues by getting the easy_install tools and then using that to update MySQL. phew! On Nov 16, 10:07 am, "Mark (Nosrednakram)" wrote: > I'd check rpmforge > see:http://wiki.centos.org/AdditionalResources/Repositories/RPMForge >

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Kenneth Gonsalves
On Tuesday 17 Nov 2009 8:46:31 am Mike Ramirez wrote: > On Monday 16 November 2009 18:08:35 Kenneth Gonsalves wrote: > > On Monday 16 Nov 2009 10:44:27 pm Mike Ramirez wrote: > > > > it is precisely this assumption that does not seem logical to me. But > > > > frankly I do not know how to

mixing annotations and extra()

2009-11-16 Thread HARRY POTTRER
If you had a model called Flight which has two fields, one called "total_time", and the other called "distance", you could create a "speed" field like so: Flight.objects.extra(select={'speed': 'distance / time'}) Each object will now have a 'speed' field. What if one of those fields is a result

mod_wsgi error which i have no idea how to fix

2009-11-16 Thread Damon Jablons
Hey, I'm running Nginx which proxies Apache and on my website, I get the following error when I tail the Apache log: [Mon Nov 16 23:51:08 2009] [error] [client 127.0.0.1] No WSGI daemon process called 'sub.domain.net' has been configured: /var/www/django/ scribblitt/deploy/domain.wsgi Here's my

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Mike Ramirez
On Monday 16 November 2009 18:08:35 Kenneth Gonsalves wrote: > On Monday 16 Nov 2009 10:44:27 pm Mike Ramirez wrote: > > > it is precisely this assumption that does not seem logical to me. But > > > frankly I do not know how to counter it ;-) > > > > How is it not logical? Product A is widely

Re: Can I change the title of an admin page?

2009-11-16 Thread lzantal
Hi, In your templates/wkw1/lawyer dir extend change_list.html and override the title:: {% extends "admin/change_list.html" %} {% block content_title %}Your Title Here{% endblock %} Hope it helps lzantal http://twitter.com/lzantal On Nov 16, 5:31 pm, Zeynel wrote: > RIDER

Re: Django i18n

2009-11-16 Thread Kenneth Gonsalves
On Monday 16 Nov 2009 9:46:58 pm Carlos Ricardo Santos wrote: > I use to folders at app/locale: > > pt-PT > en-GB > > Any ideas? Someone has implemented a foreign language before? > I have implemented english ;-) I assume you mean implementing a non-english language? This support has been

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Kenneth Gonsalves
On Monday 16 Nov 2009 10:44:27 pm Mike Ramirez wrote: > > it is precisely this assumption that does not seem logical to me. But > > frankly I do not know how to counter it ;-) > > > > How is it not logical? Product A is widely used, Product B is used less. > Bad Guy A. is smart enough to

Re: first project taking it too production server

2009-11-16 Thread Kenneth Gonsalves
On Monday 16 Nov 2009 7:41:47 pm Amit Sethi wrote: > Hi , I just developed my first small app using django , I wish to > deploy it . I have a apache server with drupal running on it . Can > anybody guide me about the procedure i should use to deploy the > project without disturbing the drupal

Re: What would cause an app to not register?

2009-11-16 Thread Ishwor Gurung
2009/11/17 Joshua Kramer : > Thanks a ton Mark! I wish I would have done this much earlier. > > Some of my models had GeoDjango models in them.  For these, I need to have > ctypes and geos installed - neither of which are installed.  When I > commented out the bits requiring

Re: Can I change the title of an admin page?

2009-11-16 Thread Zeynel
RIDER 2: pictures of the title I want to change: http://zeynel.posterous.com/django-template-problem On Nov 16, 3:35 pm, Zeynel wrote: > In case someone else has the same problem: I hard-coded the text I > wanted in between h1 tags in template base.html. > > {% block

Re: What would cause an app to not register?

2009-11-16 Thread Joshua Kramer
Thanks a ton Mark! I wish I would have done this much earlier. Some of my models had GeoDjango models in them. For these, I need to have ctypes and geos installed - neither of which are installed. When I commented out the bits requiring GD, presto - everything is installed properly. On Mon,

Re: Default sort order in admin

2009-11-16 Thread Zeynel
Yes, this is probably true. I am still learning. And I like Django and how it works but it takes time to understand some concepts. I was rushing a little bit because I wanted to meet this challenge >> [the tutorial] is enough to build it in no longer that a few days (learning >> included), >>

Confusing error: AttributeError: 'Settings' object has no attribute 'rindex'.

2009-11-16 Thread Gene
I'm getting an error that has completely perplexed me: AttributeError: 'Settings' object has no attribute 'rindex'. The complete traceback is listed below. I get this for any request but a root request '/'. I'm, using Django 1.1 with mod_wsgi. The only cases I could find por google of others

Re: feature request

2009-11-16 Thread Russell Keith-Magee
On Tue, Nov 17, 2009 at 6:29 AM, Brandon wrote: > How do I request a feature from Django? http://docs.djangoproject.com/en/dev/internals/contributing/#requesting-features It's also worth keeping in mind the release cycle:

Re: Multiple level aggregate

2009-11-16 Thread Tony Czeh
On 11/16/09 1:12 PM, despy wrote: > Hi, > > I'm trying to get my head around a complex aggregate query and I could > do with some help. Say I have the following models > > StockMarket > | > Stock > | > StockPrice > > If StockPrice has price and date fields, and one price entry for every > day for

Re: Default sort order in admin

2009-11-16 Thread Daniel Roseman
On Nov 16, 4:31 pm, Zeynel wrote: > Thanks! > > I noticed that using > > class Lawyer(models.Model): >     ... >     ordering = ('last',) > > did not work. > > But this worked > > class Lawyer(models.Model): >     ... >     class Meta: >         ordering = ('last',) > > copied

order_by related models

2009-11-16 Thread dave.l
Hi! The following line in my application seems to have stopped working as I expect: for object in self.queryset.select_related().order_by ("app_building.principal_name", "reference"): the first ordering term on principal_name is no longer working. by looking at ...query.as_sql() I can see

feature request

2009-11-16 Thread Brandon
How do I request a feature from Django? This one would be simple. I'd like the authenticate method to take an extra boolean argument which would determine if it should treat the username as case sensitive. Default would be True, since it treats it that way already. I understand that passwords

Can I stop the FormWizard sequence?

2009-11-16 Thread konatufe
Hi Guys! Can I stop the forms sequence in a Form Wizard? Doing something like execute an extra function that return a Http response. Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django on Dreamhost internal server error

2009-11-16 Thread Mike Ramirez
On Monday 16 November 2009 12:55:25 Alessandro Ronchi wrote: > If I put Debug = False in my django settings.py I receive an internal > server error with no explanation. > > I'm using mod_passenger. > > What can cause the problem? Is there any way I can debug the error or > get more information?

Re: Django on Dreamhost internal server error

2009-11-16 Thread Matt Schinckel
On Nov 17, 6:57 am, Christophe Pettus wrote: > On Nov 16, 2009, at 12:55 PM, Alessandro Ronchi wrote: > > > I'm using mod_passenger. > > Isn't that for Ruby rather than Python? You can use mod_passenger for python, with a passenger_wsgi.py file. (I use it on my development

Re: Default sort order in admin

2009-11-16 Thread Preston Holmes
On Nov 16, 8:31 am, Zeynel wrote: > Thanks! > > I noticed that using > > class Lawyer(models.Model): >     ... >     ordering = ('last',) > > did not work. > > But this worked > > class Lawyer(models.Model): >     ... >     class Meta: >         ordering = ('last',) > >

Serving Password Protected Files

2009-11-16 Thread f4nt
Hello, Is there a good way to handle serving files behind django authentication? I'm working on a project right now where people can upload files, and based on certain permissions can download them as well. However, there doesn't seem to be a good way to handle checking authentication, and then

Re: Django on Dreamhost internal server error

2009-11-16 Thread Preston Holmes
do you have error templates defined? http://docs.djangoproject.com/en/dev/topics/http/views/#customizing-error-views -Preston On Nov 16, 12:55 pm, Alessandro Ronchi wrote: > If I put Debug = False in my django settings.py I receive an internal > server error with

Re: Django on Dreamhost internal server error

2009-11-16 Thread Christophe Pettus
On Nov 16, 2009, at 12:55 PM, Alessandro Ronchi wrote: > I'm using mod_passenger. Isn't that for Ruby rather than Python? -- -- Christophe Pettus x...@thebuild.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Django on Dreamhost internal server error

2009-11-16 Thread Alessandro Ronchi
If I put Debug = False in my django settings.py I receive an internal server error with no explanation. I'm using mod_passenger. What can cause the problem? Is there any way I can debug the error or get more information? Dreamhost cannot answer me, maybe someone got similar esperience. --

Re: Can I change the title of an admin page?

2009-11-16 Thread Zeynel
In case someone else has the same problem: I hard-coded the text I wanted in between h1 tags in template base.html. {% block content_title %}{% if title %}Enter last name{% endif %}{% endblock %} but this defeats the purpose of templates. If you know how titles are created in django, please let

Can I change the title of an admin page?

2009-11-16 Thread Zeynel
I found that the base.html template takes the title in admin change page from the title of the page: line 64 in base.html: {% block content_title %}{% if title %}{{ title }}{% endif %} {% endblock %} How can I change the title of the page? Does anyone know? Also mentioned here:

Re: slow tests on 1.1.1 w/ sqlite

2009-11-16 Thread Phlip
Karen Tracey wrote: > http://code.djangoproject.com/ticket/10899 Thanks - I missed that one. Yes it's ugly, yes you can hide it in setUp (), and yes it bypasses the problems in the earlier works-around I looked at. -- Phlip http://code.djangoproject.com/ticket/10899 -- You received this

Re: Trouble setting a form field's value in clean()

2009-11-16 Thread Adam Stein
Ok, thanks for the example. On Mon, 2009-11-16 at 11:27 -0800, pjrhar...@gmail.com wrote: > > if not cleaned.has_key("string2") and > > cleaned.has_key("string1"): > > cleaned["string2"] = string1 > > > > return cleaned > > > I think the problem here is that if string2

Re: slow tests on 1.1.1 w/ sqlite

2009-11-16 Thread Karen Tracey
On Mon, Nov 16, 2009 at 1:37 PM, Phlip wrote: > > Yours, > > Russ Magee %-) > > Yours wouldn't happen to know an answer for this, right? > > > http://groups.google.com/group/django-users/browse_thread/thread/a91f161f386f10da/2eaccb410c4c0692 > > I literally don't know how to

Re: Trouble setting a form field's value in clean()

2009-11-16 Thread pjrhar...@gmail.com
>         if not cleaned.has_key("string2") and > cleaned.has_key("string1"): >             cleaned["string2"] = string1 > >         return cleaned > I think the problem here is that if string2 is not required it will be in the cleaned dictionary but an empty string. So instead you might need: if

Re: django basic blog and inlines

2009-11-16 Thread Bobby Roberts
doh! thanks Karen On Nov 16, 2:10 pm, Karen Tracey wrote: > On Mon, Nov 16, 2009 at 1:58 PM, Bobby Roberts wrote: > > ok so i deleted what i had done and did the following: > > > 1.  uploaded the entire basic app directory into django_apps/live/ > >

Re: django basic blog and inlines

2009-11-16 Thread Karen Tracey
On Mon, Nov 16, 2009 at 1:58 PM, Bobby Roberts wrote: > ok so i deleted what i had done and did the following: > > 1. uploaded the entire basic app directory into django_apps/live/ > basic > 2. changed installed apps to load: > basic.blog > basic.inlines > > >

Re: Encoding ISO-8859-1

2009-11-16 Thread ulferik
Hi Hugo. I am using eclipse with pydev and have no idea how it is saved... maybee you know that? Ulferik On 16 Nov, 18:44, Hugo González Monteverde wrote: > What editor are you using  for the template? There's no point in > specifying the encoding as a meta if the actual html

Re: django basic blog and inlines

2009-11-16 Thread Bobby Roberts
ok so i deleted what i had done and did the following: 1. uploaded the entire basic app directory into django_apps/live/ basic 2. changed installed apps to load: basic.blog basic.inlines Now i'm getting a totally different traceback

Re: Disabling site wide actions

2009-11-16 Thread Zeynel
EDIT: In the page source code the title that I want to change shows like this: Select lawyer to change Where do i find this class="flex" ? On Nov 16, 1:34 pm, Zeynel wrote: > Django rocks! I used disable a site-wide action as explained here > >

generator function for repetitive model fields?

2009-11-16 Thread Some Guy
Hi, Is there any functionality, or possibility, to generate many fields in a model file that are all identical and follow an easy (repetitive) naming convention? i.e. locations = (loc1, loc2, lo3) places = (place2, place2) for l in locations: for p in places: l + p + _has_been_checked =

Re: slow tests on 1.1.1 w/ sqlite

2009-11-16 Thread Phlip
> Yours, > Russ Magee %-) Yours wouldn't happen to know an answer for this, right? http://groups.google.com/group/django-users/browse_thread/thread/a91f161f386f10da/2eaccb410c4c0692 I literally don't know how to develop without TDD, and the inability to call any but the most trivial GET actions

Disabling site wide actions

2009-11-16 Thread Zeynel
Django rocks! I used disable a site-wide action as explained here http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/#disabling-a-site-wide-action but now I have the title "Select a lawyer to change" just above my search box. The action box is gone, but it's title is still there. Can

Re: Trouble setting a form field's value in clean()

2009-11-16 Thread Adam Stein
On Mon, 2009-11-16 at 17:57 +0100, Dennis Kaarsemaker wrote: > On Mon, Nov 16, 2009 at 5:12 PM, Adam Stein wrote: > > Running Django v1.1.1 on Apache v2.2.8 with Firefox v3.5.4. > > > > I have a very simplified and unreal example below to demonstrate what's > > happening.

How write unit test for forms that download PDF file

2009-11-16 Thread JohnL
On my website http://www.mathmaster.org, I have a lot of forms that generated a PDF math worksheets file after the user click the submit button. The way I test these pages is using the code similar to this method: def test_addition_post(self): post_data = { 'max_value': 10,

Multiple level aggregate

2009-11-16 Thread despy
Hi, I'm trying to get my head around a complex aggregate query and I could do with some help. Say I have the following models StockMarket | Stock | StockPrice If StockPrice has price and date fields, and one price entry for every day for every stock how would I write a query to get the average

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread CLIFFORD ILKAY
Tom Evans wrote: > On Mon, Nov 16, 2009 at 5:25 AM, Melvyn Sopacua > > wrote: > > On Mon, 16 Nov 2009 08:53:26 +0530, Kenneth Gonsalves > > > wrote: > > On Monday 16

Re: django basic blog and inlines

2009-11-16 Thread Karen Tracey
On Mon, Nov 16, 2009 at 12:49 PM, Bobby Roberts wrote: > Karen - > > Thanks for your reply... The path in both my blog and inlines module > was edited and i removed basic. from all the calls (since i wasn't > using the primary basic/ directory with all of the standard apps.

Re: django basic blog and inlines

2009-11-16 Thread Bill Freeman
So then the answer to my question is "no", you do not have a file inlines.py in a directory named "templatetags" which is itself in an app directrory recognizable by the presence of a models.py, the path such that the models.py file is importable as appname.models, and the app mentioned in

Re: django basic blog and inlines

2009-11-16 Thread Bobby Roberts
Karen - Thanks for your reply... The path in both my blog and inlines module was edited and i removed basic. from all the calls (since i wasn't using the primary basic/ directory with all of the standard apps. The error was there even if when i was using basic/blog or basic/inlines structure as

Re: Encoding ISO-8859-1

2009-11-16 Thread Hugo González Monteverde
What editor are you using for the template? There's no point in specifying the encoding as a meta if the actual html template files has not been saved in that encoding. Use the same encoding in your editor settings as you are using in your meta specification. Either your template file has a BOM

Re: Odd problem with modelformset_factory, a missing field

2009-11-16 Thread Malcolm MacKinnon
On Sun, Nov 15, 2009 at 4:35 PM, Malcolm MacKinnon wrote: > Hi, > > I'm new to django and am having a problem with the modelformset factory not > rendering all my form fields.For some odd reason, when I exclude the primary > key field, prim, it does not render this field in

Re: django basic blog and inlines

2009-11-16 Thread Mike Ramirez
On Monday 16 November 2009 09:20:03 Bobby Roberts wrote: > the path to inlines.py is: > > /django_apps/live/inlines/inlines.py > > > live is on my pythonpath (my main application) > > blogs and inlines were pulled out of the basic app and put into these > directories > >

Re: django basic blog and inlines

2009-11-16 Thread Karen Tracey
On Mon, Nov 16, 2009 at 12:20 PM, Bobby Roberts wrote: > the path to inlines.py is: > > /django_apps/live/inlines/inlines.py > > > live is on my pythonpath (my main application) > > blogs and inlines were pulled out of the basic app and put into these > directories > >

Re: django basic blog and inlines

2009-11-16 Thread Bobby Roberts
the path to inlines.py is: /django_apps/live/inlines/inlines.py live is on my pythonpath (my main application) blogs and inlines were pulled out of the basic app and put into these directories /django_apps/live/blog/ (works) /django_apps/inlines/(doesn't work) you can view the full

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Mike Ramirez
On Sunday 15 November 2009 19:23:26 Kenneth Gonsalves wrote: > On Monday 16 Nov 2009 6:50:10 am Christophe Pettus wrote: > > On Nov 15, 2009, at 5:10 PM, Kenneth Gonsalves wrote: > > > I do also point out to plone vs drupal, but there again the > > > argument is the drupal is more widely used and

Re: Trouble setting a form field's value in clean()

2009-11-16 Thread Dennis Kaarsemaker
On Mon, Nov 16, 2009 at 5:12 PM, Adam Stein wrote: > Running Django v1.1.1 on Apache v2.2.8 with Firefox v3.5.4. > > I have a very simplified and unreal example below to demonstrate what's > happening. > >8 -- > >    def clean(self): >        cleaned = self.cleaned_data > >

Object Edition Moderation

2009-11-16 Thread lfrodrigues
Hello, I've been using admin to create/change some objects in my company. Now I have a new set of users that will be able to change objects but a moderator needs to approve the changes. Do you have any suggestion on how to implement this? Best regards, Luis -- You received this message

Re: Django i18n

2009-11-16 Thread Antoni Aloy
2009/11/16 Carlos Ricardo Santos : > Hi: > I tried all the ways possible and impossible to make my Django project have > i18n... > Put all settings (INSTALLED_APPS, CONTEXT_PROCESSORS), generated languages, > compiled messages, edited the ".po" files, setted the

Changing the admin templates

2009-11-16 Thread Zeynel
My app is almost done but before I send it out to get some feedback I want to make a couple of more design tweaks. I changed the branding on the login dialogue box and on the dark blue band on top, by changing the template base_site.html. On the home page (www.swimswith.com/admin/) I want to

Re: Default sort order in admin

2009-11-16 Thread Zeynel
Thanks! I noticed that using class Lawyer(models.Model): ... ordering = ('last',) did not work. But this worked class Lawyer(models.Model): ... class Meta: ordering = ('last',) copied from http://www.djangoproject.com/documentation/models/ordering/ What is the

Using Sass with Django makes CSS so much easier to maintain

2009-11-16 Thread Jason
I had been eyeing Sass for a while, hoping to get to use it on a project. When we chose Django instead of Rails for FeedMagnet, I was bummed that we wouldn't have access to the Rails Sass gem. Thankfully I found Compass - it let's us generate all our CSS from Sass source files and it works really

Django i18n

2009-11-16 Thread Carlos Ricardo Santos
Hi: I tried all the ways possible and impossible to make my Django project have i18n... Put all settings (INSTALLED_APPS, CONTEXT_PROCESSORS), generated languages, compiled messages, edited the ".po" files, setted the ugettext to "_", in views all the strings are like this: toSend= _("Hello"),

Trouble setting a form field's value in clean()

2009-11-16 Thread Adam Stein
Running Django v1.1.1 on Apache v2.2.8 with Firefox v3.5.4. I have a very simplified and unreal example below to demonstrate what's happening. class MyForm(forms.Form): string1 = forms.CharField() string2 = forms.CharField(widget = forms.HiddenInput()) def clean(self):

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Tom Evans
On Mon, Nov 16, 2009 at 5:25 AM, Melvyn Sopacua < msopa...@warp10.thruhere.net> wrote: > On Mon, 16 Nov 2009 08:53:26 +0530, Kenneth Gonsalves > wrote: > > On Monday 16 Nov 2009 6:50:10 am Christophe Pettus wrote: > >> On Nov 15, 2009, at 5:10 PM, Kenneth Gonsalves wrote: > >>

Re: first project taking it too production server

2009-11-16 Thread Mike Ramirez
On Monday 16 November 2009 06:11:47 Amit Sethi wrote: > Hi , I just developed my first small app using django , I wish to > deploy it . I have a apache server with drupal running on it . Can > anybody guide me about the procedure i should use to deploy the > project without disturbing the drupal

Re: django basic blog and inlines

2009-11-16 Thread Bill Freeman
Do you have among your installed apps a name identifying a directory on the python path having both a models.py and a subdirectory named templatetags, that subdirectory containing a file inlines.py ? Or was that in the stuff you excluded from basic.app? Bill On Sun, Nov 15, 2009 at 10:34 PM,

Re: Encoding ISO-8859-1

2009-11-16 Thread ulferik
Karen I did as you said and it is amazing what know-how can do. I am yours forever. Ulferik On 16 Nov, 16:20, Karen Tracey wrote: > On Mon, Nov 16, 2009 at 10:08 AM, ulferik wrote: > > Thank's Karen for your reply. > > With php+smarty I do the same I make

Re: Making the case for Django (vs. Drupal)

2009-11-16 Thread Melvyn Sopacua
On Mon, 16 Nov 2009 08:53:26 +0530, Kenneth Gonsalves wrote: > On Monday 16 Nov 2009 6:50:10 am Christophe Pettus wrote: >> On Nov 15, 2009, at 5:10 PM, Kenneth Gonsalves wrote: >> > I do also point out to plone vs drupal, but there again the >> > argument is the drupal is more

Re: Default sort order in admin

2009-11-16 Thread Karen Tracey
On Mon, Nov 16, 2009 at 10:11 AM, Zeynel wrote: > Hi, > > Is there a way to change the default sort order in admin of my sqlite > db? At this point it sorts the table in the order entered (last > entered item first). > >

Re: Encoding ISO-8859-1

2009-11-16 Thread Karen Tracey
On Mon, Nov 16, 2009 at 10:08 AM, ulferik wrote: > Thank's Karen for your reply. > With php+smarty I do the same I make a base template on which I have > some > stuff that is the same for all. In the template I place a meta tag > with charset=ISO-8859-1 > and everything is

Default sort order in admin

2009-11-16 Thread Zeynel
Hi, Is there a way to change the default sort order in admin of my sqlite db? At this point it sorts the table in the order entered (last entered item first). Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Encoding ISO-8859-1

2009-11-16 Thread ulferik
Thank's Karen for your reply. With php+smarty I do the same I make a base template on which I have some stuff that is the same for all. In the template I place a meta tag with charset=ISO-8859-1 and everything is fine. With Django it doesn't make any difference what I place in meta or xml tags.

Re: setup python, django for web development

2009-11-16 Thread Zeynel
This site has instructions http://www.webmonkey.com/tutorial/Install_Django_and_Build_Your_First_App that appear to be simpler than the official django tutorial http://docs.djangoproject.com/en/dev/intro/install/#intro-install On Nov 16, 1:20 am, harshad wrote: > hello All,

Re: Django/GoDaddy

2009-11-16 Thread Mark (Nosrednakram)
I'd check rpmforge see: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge for centos notes On Nov 15, 3:27 pm, mkumm wrote: > Colin thanks - I will try installing all of the -devel stuff. ha - 2.4 > - thanks! > > On Nov 15, 2:32 pm, Colin Bean

Re: What would cause an app to not register?

2009-11-16 Thread Mark (Nosrednakram)
Hello, I'm not expert but have seen this behavior when I have a bad import. I would start by trying ./manage.py shell and copy past your imports from models and then views or other imports. It's almost always been a bad import when I've seen this and ./manage.py syncd will fail silently and

Re: Confirm email by matching on form

2009-11-16 Thread Daniel Roseman
On Nov 16, 2:06 pm, Andy wrote: > Thank you all for your replies.  Karen, both good points.  pjrharley, > I agree with Dennis.  If the user is required to re-type their email > address, then that in combination with Django's simple built in email > validation should be

Re: Confirm email by matching on form

2009-11-16 Thread Dirk Uys
On Mon, Nov 16, 2009 at 4:06 PM, Andy wrote: > Thank you all for your replies. Karen, both good points. pjrharley, > I agree with Dennis. If the user is required to re-type their email > address, then that in combination with Django's simple built in email > validation

first project taking it too production server

2009-11-16 Thread Amit Sethi
Hi , I just developed my first small app using django , I wish to deploy it . I have a apache server with drupal running on it . Can anybody guide me about the procedure i should use to deploy the project without disturbing the drupal installation in any way... -- A-M-I-T S|S -- You received

Re: Confirm email by matching on form

2009-11-16 Thread Andy
Thank you all for your replies. Karen, both good points. pjrharley, I agree with Dennis. If the user is required to re-type their email address, then that in combination with Django's simple built in email validation should be sufficient. I am using a ModelForms right now. If I remove

Re: Encoding ISO-8859-1

2009-11-16 Thread Karen Tracey
On Mon, Nov 16, 2009 at 3:59 AM, ulferik wrote: > My problem is that when I put one of these characters (´ Å Ä Ö) in the > template I get an error like this "UnicodeDecodeError: 'utf8' codec > can't decode bytes in position 578-579: invalid data" > Normally I specify

Re: PostgreSQL triggers with Django?

2009-11-16 Thread Daniel Quinn
On Monday 16 November 2009 08:43:35 Alessandro Pasotti wrote: > after banging my head for a few hours, I've found a solution to this > problem with a snippet: > > http://www.djangosnippets.org/snippets/1338/ > > This works for me with the standard SQL syntax (dollar quoting), just put > your

Re: updating parent model on inline creation

2009-11-16 Thread Viktor
On nov. 14, 02:13, Preston Holmes wrote: > I'm setting up a conference website where a submission will have one > or more "reviews" > > I've got the reviews set as inlines for submissions in the admin > > The submission model has a "status" field that needs to go through >

Encoding ISO-8859-1

2009-11-16 Thread ulferik
My problem is that when I put one of these characters (´ Å Ä Ö) in the template I get an error like this "UnicodeDecodeError: 'utf8' codec can't decode bytes in position 578-579: invalid data" Normally I specify the encoding in meta like this "charset=ISO-8859-1" or "xml version="1.0"

Re: Questions about ContentType generic relations

2009-11-16 Thread Daniel Roseman
On Nov 16, 8:12 am, Continuation wrote: > > As the docs show, when you've defined a GenericRelation, querying is > > exactly the same as with a reverse foreign key. So: > > Bookmark.objects.get(tags__tag='django') > > A somewhat related question: > > What if instead of

  1   2   >