Re: new user having trouble connecting django to postgres with psycopg2

2011-01-08 Thread Jeff Tchang
Can you try logging into the database and running: SELECT * FROM pg_timezone_names; Maybe try picking something from that list? -Jeff On Sat, Jan 8, 2011 at 8:19 PM, Mark Brazil wrote: > Same error > > Traceback (most recent call last): >   File "manage.py", line 11, in >     execute_manager(

Re: new user having trouble connecting django to postgres with psycopg2

2011-01-08 Thread Mark Brazil
Same error Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/usr/lib/pymodules/python2.6/django/core/management

Re: Debugging Deeper Into Django

2011-01-08 Thread Russell Keith-Magee
On Sunday, January 9, 2011, octopusgrabbus wrote: > I would like to see more from Django on what it chooses to, > specifically around the loading or not loading of pages. I am running > Django on RHEL 5 WS, with mod_python. I want to stick with mod_python, > despite the testimonies its replacement

Re: i18n django models

2011-01-08 Thread Mo J. Al-Mughrabi
Yes, I did that part, How can I navigate transmeta source for that function? I used python setup.py install, Sent from my iPhone On Jan 9, 2011, at 1:12 AM, Alessandro Pasotti wrote: 2011/1/8 Mo Mughrabi > Transmeta is much nicer and much simpler. I just installed it and I already > like t

Re: i18n django models

2011-01-08 Thread Alessandro Pasotti
2011/1/8 Mo Mughrabi > Transmeta is much nicer and much simpler. I just installed it and I already > like the way it is designed, > > I just ran into a small problem with the ./manage.py sync_transmeta_db not > working. Any idea how it can be solved? > > Am just getting an unknown command, > > >

templating best practices in django

2011-01-08 Thread Mo Mughrabi
Hi, I'm wondering what would be the best practice for templating in django. I plan on having a single theme in which heads and footers will almost be the same across my project, 1. Should I great an app only for this purpose, in the sense, an app will host a header and footer functions (methods)

Re: i18n django models

2011-01-08 Thread Mo Mughrabi
Transmeta is much nicer and much simpler. I just installed it and I already like the way it is designed, I just ran into a small problem with the ./manage.py sync_transmeta_db not working. Any idea how it can be solved? Am just getting an unknown command, Cheers, On Sat, Jan 8, 2011 at 4:23 P

Re: Filtering related objects in template

2011-01-08 Thread +shaun
>From Stackoverflow - How do I perform query filtering in django >templates : You can't do this, which is by design. The Django framework authors intended a strict separation of presentation code from

Re: Can I add custom field to ModelForm?

2011-01-08 Thread Brian Neal
On Jan 7, 8:55 am, robos85 wrote: > Is it possible to add field (I want it to be visible in generated form and > after post) to form which is not included in Model? I need it to make a > check after form.is_valid(), but this field won't go to DB. > > If yes - how can I do that? It is possible. Go

Re: Debugging Deeper Into Django

2011-01-08 Thread vikalp sahni
for custom logging you can always your python logging module, which is just like log4j. Also if you need any specifics regarding db queries etc. you can try out. Django Debug Toolbar: https://github.com/robhudson/django-debug-toolbar Hope it helps. Regards, //Vikalp On Sun, Jan 9, 2011 at 12:2

Filtering related objects in template

2011-01-08 Thread BigBlogMaker
Can I filtering of related objects in a template? Explained: Now I make so {% for image in product.image_set.all %} {% if image.image_type.id == 777 %} {% endif %} {% endfor %} And I would like to: {% for image in product.image_set.all | image_type.id : 777 %} {% endfor %} ---

Debugging Deeper Into Django

2011-01-08 Thread octopusgrabbus
I would like to see more from Django on what it chooses to, specifically around the loading or not loading of pages. I am running Django on RHEL 5 WS, with mod_python. I want to stick with mod_python, despite the testimonies its replacement is better. Are there switches I can set to get more granu

Translation files are not generated

2011-01-08 Thread Roel Veldhuizen
When I run "manage.py makemessages -l en" a LC_MESSAGES dir is created for the language "en" but no files are created. One of the files that should contain a translation looks like: {% load i18n %} {% trans "Profile" %} In the settings the USE_I18N is set to true and added 'django.middleware.lo

Creating a image gallery form model

2011-01-08 Thread Simon W
Hi, I have a 'project' model. Each project can have a gallery (im using the photologue-app as model). Now, when I want to let my users edit his project I want to show him all the photos in the gallery and for each photo he can tick a "Remove"-checkbox and/or check a radio button that says "Use as

Re: slugify override

2011-01-08 Thread Andy Mikhailenko
> How can I override slugify function globally? I want to add some other > letters actions especially form my language. You can try django-autoslug for your own code. Existing code can be (?) fixed via monkey-patching but that's not a good idea. -- You received this message because you are subsc

Re: A few beginner questions

2011-01-08 Thread Mike Ramirez
On Saturday, January 08, 2011 02:07:22 am Ondřej Mirtes wrote: > Thank you all for your responses. > > I have one more question - what is the purpose of "apps" in > "projects" (when I create new app in a project via manage.py > startapp)? Are they something like sections of a web (articles, forum,

Re: i18n django models

2011-01-08 Thread Alessandro Pasotti
2011/1/8 Mo Mughrabi > This is not exactly what I need. > > this library is not done as per the common best practices for i18nlizing > data. > > All you have to do is declare an object (field) as an i18n field and the > engine takes care of the rest. This example you can see in java struct and >

Re: i18n django models

2011-01-08 Thread Mo Mughrabi
This is not exactly what I need. this library is not done as per the common best practices for i18nlizing data. All you have to do is declare an object (field) as an i18n field and the engine takes care of the rest. This example you can see in java struct and php symphony, when executing the equi

Re: ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form.

2011-01-08 Thread gintare
I did not understand what was the a reason, but i changed order of items in admin.py fields to be similar to items order in the model. Maybe mistake was some mistyping. Anyway error disappeared. regards, gintare On Jan 2, 6:47 pm, Ramiro Morales wrote: > On Sun, Jan 2, 2011 at 12:49 PM,gintare w

Re: A few beginner questions

2011-01-08 Thread Mike Thon
I've had this question too, when I'm designing a project. So far, I have dumped all of my own code into the one app that I create for the project and then add external apps that can be found on the internet to extend my project's functionality. For example, I needed to download articles from

Re: A few beginner questions

2011-01-08 Thread Ondřej Mirtes
Thank you all for your responses. I have one more question - what is the purpose of "apps" in "projects" (when I create new app in a project via manage.py startapp)? Are they something like sections of a web (articles, forum, user administration?) or are they rather something like modules, reusabl