Re: Cent OS Deployment

2007-01-28 Thread Filipe Correia
I know a Django app I've developed was deployed in CentOS with python 2.5, so I know it's possible. Can't help you with the details though.. What difficulties are you finding? Filipe --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Multilingual content - yet another idea

2007-01-28 Thread ashwoods
i'll be testing it tonight :) On Jan 26, 2:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I had some time to work on the library today. Man, am I learning > about Django :) > > So far everything seems to be working out nicely. Changes made since > the previous version: > > Tra

New Vim files for Django

2007-01-28 Thread Dave Hodder
Hello, Updated syntax files for the Vim editor are available here: http://www.vim.org/scripts/script.php?script_id=1487 Improvements include: * Support for the new comment syntax, e.g. {# greeting #}. * Better error highlighting, for example "{{ variable %}" (incorrectly termi

Re: Restricting q QuerySet based on ManyToManyField

2007-01-28 Thread Ramashish Baranwal
On 1/28/07, Ramashish Baranwal <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to restrict a QuerySet based on its ManyToManyField. In > particular, based on what the ManyToManyField contains. Consider this > trivial and a bit non-sense example- > > class User: > name = models.CharField(maxl

Re: Multilingual content - yet another idea

2007-01-28 Thread daev
I have trouble in admin list view. Fields under translation has incorrect column header in list. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

OT: .pystartup

2007-01-28 Thread Baurzhan Ismagulov
Hello all, I'm using a .pystartup file as described at http://www.python.org/doc/current/tut/node15.html . When I start "manage.py shell", this file is apparently not read (at least I can't browse any history entries) and I have to paste it manually. Can I make manage.py read the file? Thanks in

Validation of files uploaded via an admin form

2007-01-28 Thread [EMAIL PROTECTED]
Hi, I'm having a little difficulty with validating a file which is uploaded by the user in the admin centre. Basically, I've created a small model which stores data about a music file upload. The documentation for FileField (which I'm using) says (I quote): 'Validate all uploaded files so that

Problems with session middleware

2007-01-28 Thread Almad
Hello, I'd like to ask about session/auth middleware I'm trying to use. I have this view, which tries to act as openid consumer: def prihlas(request): # FIXME: better tmp dir oidconsumer = consumer.Consumer(request.session, FileOpenIDStore('/ tmp/openid')) try: req = oidcon

TinyMCE in Admin and Template page product_form.html

2007-01-28 Thread johnny
Trying to get TinyMCE to work on Admin area of the model and flat template pages. This what I have so far. But I am not getting the TinyMCE textarea for admin or for template field form.description in product_form.html. Thank You in advance. Django TinyMCE setup in admin model class Product

Restricting q QuerySet based on ManyToManyField

2007-01-28 Thread Ramashish Baranwal
Hi, I would like to restrict a QuerySet based on its ManyToManyField. In particular, based on what the ManyToManyField contains. Consider this trivial and a bit non-sense example- class User: name = models.CharField(maxlength=24) related = models.ManyToManyField('self', symmetric=False

Django Template DropDown List

2007-01-28 Thread johnny
I want the category to show up in drop down list, in product app with product_form.html template. In my product_form.html, I have the following: Category: {{ form.category }} {% if form.category.errors %}*** {{ form.category.errors|join:", " }}{% endif %} In my model for product, I sp

Admin page -Loging in problems

2007-01-28 Thread voltron
Hi, I have created my test app with several models, I called syncdb several times to correct some errors in my models, but not once was I asked to create a superuser. No tracebacks, models ok, I run the interanal Django server, I try to log in from the admin page, but I have no username or p

Re: Tools for writing HTML templates

2007-01-28 Thread Andrew Diederich
On 1/27/07, Paulo <[EMAIL PROTECTED]> wrote: > > This could turn into a religious debate... but I give TextMate two thumbs up! > > < http://macromates.com/ > TextMate looks nice, but I don't have a mac. We've primarily been a windows shop, with a handful of linux and solaris servers. Have you r

Re: OT: .pystartup

2007-01-28 Thread Adrian Holovaty
On 1/28/07, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > I'm using a .pystartup file as described at > http://www.python.org/doc/current/tut/node15.html . When I start > "manage.py shell", this file is apparently not read (at least I can't > browse any history entries) and I have to paste it ma

Re: Tools for writing HTML templates

2007-01-28 Thread Paulo
> TextMate looks nice, but I don't have a mac. We've primarily been a > windows shop, with a handful of linux and solaris servers. Have you > run into anything your windows friends like? These have all been recommended to me in the past but I do not have much experience with them since I can't

Re: OT: .pystartup

2007-01-28 Thread Baurzhan Ismagulov
Hello Adrian, On Sun, Jan 28, 2007 at 02:50:43PM -0600, Adrian Holovaty wrote: > The "manage.py shell" command doesn't take into account your > .pystartup file, but that would be a nice improvement if it would. If > you could figure out how to make that happen and provide a patch, > we'll integra

Re: Multilingual content - yet another idea

2007-01-28 Thread [EMAIL PROTECTED]
On 28 Sty, 17:23, "ashwoods" <[EMAIL PROTECTED]> wrote: > i'll be testing it tonight :) Cool :) I just committed a version that does ordering and sorting on the translated fields using the database api, so now it is possible to: * order_by('name'), * order_by('name_en'), * filter(name__conta

Re: Multilingual content - yet another idea

2007-01-28 Thread [EMAIL PROTECTED]
Hi daev, On 28 Sty, 19:03, "daev" <[EMAIL PROTECTED]> wrote: > I have trouble in admin list view. Fields under translation has > incorrect column header in list. you are right, there is a problem with column headers. Unfortunately there is no way around it right now. I changed the library so t

Re: Django Template DropDown List

2007-01-28 Thread johnny
I solved it. Problem was this: category_id = models.ForeignKey(Category) which creates category_id_id in mysql table. In the model, remove _id and it should of been: category = models.ForeignKey(Category) Thank you. On Jan 28, 2:04 pm, "johnny" <[EMAIL PROTECTED]> wrote: > I want the categor

limit_choices_to: getting access to current instance

2007-01-28 Thread qhfgva
I currently have a drop down for a model where I'd only like to show choices that are currently "active". That's easy enough with: foo = models.ForeignKey(Foo, limit_choices_to={'active__exact':True}) But if someone is working with a model where the "foo" that they had previousl

Internal Server Error (Apache+mod_python) - why?

2007-01-28 Thread christoph seiler
Hi there I tried to install mod_python according to this installation guide: http://www.djangoproject.com/documentation/modpython/ However, I get a "Internal Server Error (500)" when calling my url. I do _not_ get any feedback in _any_ apache log file! What could be the cause? My System: Debi

Template Not Displaying INPUT FIELD

2007-01-28 Thread johnny
In my template, I am not getting a input field for start_at. In my MySQL, I have the following: --+---+--+-+- ++ Field| Type | Null | Key | Default | Extra | --+---+--+

Images Won't Include

2007-01-28 Thread NathanWithAnN
When I try to include an image like I would in any other website, the image does not display. How do I configure the urls to treat an image like an image so they can be displayed? --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Images Won't Include

2007-01-28 Thread James Bennett
On 1/28/07, NathanWithAnN <[EMAIL PROTECTED]> wrote: > When I try to include an image like I would in any other website, the > image does not display. How do I configure the urls to treat an > image > like an image so they can be displayed? If you're using Apache and mod_python, then for perfo

Re: OT: .pystartup

2007-01-28 Thread Rubic
On Jan 28, 2:50 pm, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote: > The "manage.py shell" command doesn't take into account your > .pystartup file, but that would be a nice improvement if it would. If > you could figure out how to make that happen and provide a patch, > we'll integrate it into Djan

Re: Admin page -Loging in problems

2007-01-28 Thread Ramdas S
You have obviously not done something right with settings.py. Have you included 'dajngo.contrib.admin' in the installed apps section of settings.py. Please check Ramdas On 1/29/07, voltron <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have created my test app with several models, I called syncdb > s

Re: Internal Server Error (Apache+mod_python) - why?

2007-01-28 Thread Karen Tracey
I think it may be the SetEnv for the settings file. You have: SetEnv DJANGO_SETTINGS_MODULE /home/django/projects/djangotest/ > settings.py > > where I have: SetEnv DJANGO_SETTINGS_MODULE xword.settings (my settings.py file is under a directory named "xword" in the project directory

Re: Images Won't Include

2007-01-28 Thread Perica Zivkovic
Check this out: http://www.djangoproject.com/documentation/static_files/ or simply do: In apache config (under the Location where you set up Django), put SetHandler None and you are done :) On 1/29/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 1/28/07, NathanWithAnN <[EMAIL PROTECTED