admin app date format: locale dependent

2009-09-20 Thread Tim Bowden
I'm getting started with django (& python), and having a bit of a play with the admin app while doing the tutorial. So far all good, but how do I set the date field to be locale dependent, ie, display & accept dates using a format that makes sense for my locality, ie, DD/MM/? Thanks, Tim

About using django-tinymce

2009-09-20 Thread taijirobot
Hi, guys, I'm learning django recently and I am trying to add a rich text editor to the places where long formated text like blog post are needed (the site is running on local machine with the default django server). I tried to use django-tinymce : http://code.google.com/p/django-tinymce/ and

Form Select Selected Choice

2009-09-20 Thread Leonel Nunez
Hello: I'm using form.base_fields['MYFIELD'].widget=widgets.Select(choices=CA) to fill a tag, all works fine but I can't find how to add a SELECTED value, been with this issue all day .. Thank you leonel --~--~-~--~~~---~--~~ You received this

Re: Using Psycopg2 on Windows

2009-09-20 Thread walty
hi, you may also try to install the visual C++ 2005 redistributable package: http://www.microsoft.com/downloads/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2=en have a nice day walty On Aug 14, 10:08 pm, James Walmsley wrote: > Just in case anyone happens to be

www.myyshop.com NIKE AIR JORDAN FORCE FUSION SHOES AJF 5 V JORDANs 5 FUSION NIKE

2009-09-20 Thread dong maomao
http://www.myyshop.com Quality is our Dignity; Service is our Lift. you can securely buy the goods that you like in my myyshop.I will serve you all day. ..._|\__ _,__ ../ `(MyShopsBetterThanHisShop=) ) ]___ .

Editable sitemap priority

2009-09-20 Thread Chris Moffitt
I'm curious if anyone has done any work in making certain aspects of the sitemap framework editable via the admin. For instance, someone might want their marketing folks to tweak the various priorities or changrefreq's of specific urls. I know it can be done by editing code and subclassing Sitemap

limiting the scope of a ForeignKey relation to within a model?

2009-09-20 Thread Doug
Lets say for instance that I have the following model, Project, which is related to an Image model in the following ways: class Project(models.Model): ... images = models.ManyToManyField(Image, related_name='image') lead_image = models.ForeignKey(Image, related_name='lead_image')

Naming and scoping guidelines to make apps that are actually 'pluggable'?

2009-09-20 Thread Hostile Fork
Hello all, Page one of the tutorial features a large picture of a lightbulb, next to a statement of Philosophy: "Django apps are 'pluggable': You can use an app in multiple projects, and you can distribute apps, because they don't have to be tied to a given Django installation." The

Re: Translating App Names

2009-09-20 Thread Ramiro Morales
On Sun, Sep 20, 2009 at 4:22 PM, SaiaGo wrote: > > I'm trying to make an Israeli site (which means it should be written > in Hebrew) using the latest SVN and so far Django made it so easy I > can't believe it's free. I got a simple magazine app with up and > running in less

Re: Saving ModelForm with commit=False seems to be generating an INSERT in the database

2009-09-20 Thread Andrew Mckay
> Why is an INSERT statement being generated even though I have > commit=False? The two inserts are causing an Exception which prevent > the actual user data from being saved (a row in the > courses_userprofile table does get created, but with all columns > except the id being blank) Its odd

ImportError: Could not import settings 'WWlove.settings'

2009-09-20 Thread Jose Sibande
Hi, I get this error in /var/log/apache2/error.log: [Mon Sep 21 01:38:14 2009] [error] [client 41.157.12.3] ImportError: Could not import settings 'WWlove.settings' (Is it on sys.path? Does it have syntax errors?): No module named settings And my /home/jose/WWlove/apache/django.wsgi Looks like

Re: Translating App Names

2009-09-20 Thread SaiaGo
I have already read it in the docs. My problem isn't model names, it's the app's name I can't figure how to translate. Thanks for trying to help. On Sep 20, 10:41 pm, Joshua Russo wrote: > On Sun, Sep 20, 2009 at 6:22 PM, SaiaGo wrote: > > > I'm trying

Re: Translating App Names

2009-09-20 Thread Joshua Russo
On Sun, Sep 20, 2009 at 6:22 PM, SaiaGo wrote: > > I'm trying to make an Israeli site (which means it should be written > in Hebrew) using the latest SVN and so far Django made it so easy I > can't believe it's free. I got a simple magazine app with up and > running in less

Deploying to UserDir

2009-09-20 Thread dijxtra
I'm trying to deploy my first django app (oh no! :-D). I have a user account on a server with Apache2. That is: I don't have root access and I don't have access to apache2 config files. Our server has UserDir enabled, so http://my.server.url/~my_home/ maps to $HOME/ public_html. According to

Re: Saving ModelForm with commit=False seems to be generating an INSERT in the database

2009-09-20 Thread Daniel Roseman
On Sep 20, 6:54 pm, Parag Shah wrote: > Hello, > > I have a UserProfile Model object which has the > django.contrib.auth.models.User as it's ForeignKey. > > There is a register function in the view module, which goes like this: > > def register(request): >   if

Re: mod_python to mod_wsgi

2009-09-20 Thread Daniel Roseman
On Sep 20, 7:57 pm, When ideas fail wrote: > Hello, I've recently updated my setup to use mod_wsgi instead of > mod_python. I'm having some problems with my urls. The home page loads > fine but none of my other urls seems to work (404 errors). They worked > before with

Translating App Names

2009-09-20 Thread SaiaGo
I'm trying to make an Israeli site (which means it should be written in Hebrew) using the latest SVN and so far Django made it so easy I can't believe it's free. I got a simple magazine app with up and running in less then a day, and I barely know Python! My only problem so far is application

mod_python to mod_wsgi

2009-09-20 Thread When ideas fail
Hello, I've recently updated my setup to use mod_wsgi instead of mod_python. I'm having some problems with my urls. The home page loads fine but none of my other urls seems to work (404 errors). They worked before with mod_python. Do i need to include something else in my .wsgi file? import os

Re: django forum

2009-09-20 Thread Brian Neal
On Sep 20, 11:10 am, dijxtra wrote: > Is there a free robust django forum app? Or more precisely, a free and > robust forum app which uses django.contrib.auth for authentication? > > Or should I just try out those several projects enabling django to > access phpBB's user info

Saving ModelForm with commit=False seems to be generating an INSERT in the database

2009-09-20 Thread Parag Shah
Hello, I have a UserProfile Model object which has the django.contrib.auth.models.User as it's ForeignKey. There is a register function in the view module, which goes like this: def register(request): if request.method == 'POST': user_form = UserCreationForm(request.POST)

sqlite3 permissions (osx deployment setup)

2009-09-20 Thread kelley....@gmail.com
I am having troubles with sqlite3 on my OSX 10.6 box, using fastcgi for deployment. On this box, the webserver is called user _www, and that explains some of the tricks I'm doing at the commandline, in the tests I show below. I've given the user _www both read and write permissions for the

Re: date inside url

2009-09-20 Thread dijxtra
Huh, thank you both for in-depth answers. I implemented Gonzalo's idea with context processors and it worked like a charm... and then I realised that I could achieve the same thing with: url(r'^today$', 'today', name='today'), + {% url today %} + def today(request): t = datetime.date.today()

Re: sqlite3+fastcgi setup problem [mac 10.6]

2009-09-20 Thread kelley....@gmail.com
This question is superceded by one I just posted. Rather than waste bandwidth, I'll post an overall solution when I figure one out. -- dk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

formfield_overrides for Auth.User?

2009-09-20 Thread Brandon Taylor
Hello everyone, I've implemented a custom backend to use an email address instead of a username. Unfortunately, this prevents me from using the built-in User change form within admin. I'm looking for a way to override the username form field with my own field, or at least change the validation

Re: django forum

2009-09-20 Thread dijxtra
On Sep 20, 6:27 pm, Jonas Obrist wrote: > There's django-forum and a couple of others (google them). I'm also > working on a forum system in django which I plan to release one day. But > at the moment I fear it's too unstable and coupled to other parts of my app. I really

Re: django forum

2009-09-20 Thread Jonas Obrist
dijxtra wrote: > Is there a free robust django forum app? Or more precisely, a free and > robust forum app which uses django.contrib.auth for authentication? > > Or should I just try out those several projects enabling django to > access phpBB's user info and use phpBB3? > > > There's

django forum

2009-09-20 Thread dijxtra
Is there a free robust django forum app? Or more precisely, a free and robust forum app which uses django.contrib.auth for authentication? Or should I just try out those several projects enabling django to access phpBB's user info and use phpBB3?

sqlite3+fastcgi setup problem [mac 10.6]

2009-09-20 Thread kelley....@gmail.com
*Background* I am working with python 2.6 and django 1.2 on an OSX 10.6 ("snow leopard") box. I am using fastcgi, not the development server. The machine does not have the python/mysql linkage, and I have had troubles installing it, so I am trying to use sqlite3. I have an existing project,

Re: ImageField anti-duplication

2009-09-20 Thread A. Rossi
Yup, that did it! Thanks for pointing that out! That article was hard to find in the documentation. On Sep 12, 7:58 pm, "A. Rossi" wrote: > I had not considered writing a custom Storage class. I may try that if > there are no other alternatives. > > Any other

Re: passenger_wsgi import error

2009-09-20 Thread Daniel Roseman
On Sep 20, 2:33 am, "neri...@gmail.com" wrote: > I'm trying to use passenger_wsgi on Dreamhost and keeep getting 'An > error occurred importing your passenger_wsgi.py'. I think I've located > the syntax that is causing the problem but I don't know how to resolve > it and

Re: Admin dashboard : hide and merge modules

2009-09-20 Thread patrickk
you can now use GrappelliSite instead of AdminSite which gives you some options for the admin index page. take a look at http://code.google.com/p/django-grappelli/wiki/customizingindex for more information. you can hide and merge modules. renaming is a bit more complicated since it affects

Re: Order_by on greatgrandparent.name

2009-09-20 Thread Daniel Roseman
On Sep 20, 4:24 am, adelaide_mike wrote: > I have a multi-table model, each table related to the next by a one to > many foreign key. > > I wish to do: > > q = Child.objects.filter(date__gte=startdate).order_by > ('parent.grandparent.greatgrandparent__name') > > This

Re: Django error

2009-09-20 Thread Daniel Roseman
On Sep 20, 7:47 am, zweb wrote: > When I try to download a file through django in IE , I get > > [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1]     response = > func(request, response), referer:http://www.com > [Sun Sep 20 05:34:20 2009] [error] [client

Django error

2009-09-20 Thread zweb
When I try to download a file through django in IE , I get [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1] response = func(request, response), referer: http://www.com [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1] File "/home/

Re: Upload image

2009-09-20 Thread Ramos
Hi: At the moment I just solve the problem, the pictures up. To fix the problem I did was: 1 - sudo apt-get install libjpeg62 libjpeg62-dev 2 - sudo easy_install - find-links http://www.pythonware.com/products/pil/ Imaging 3 - sudo invoke-rc.d apache2 restart While in another

Django error

2009-09-20 Thread zweb
When I try to download a file through django in IE , I get [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1] response = func(request, response), referer: http://www.com [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1] File "/home/

Django error

2009-09-20 Thread zweb
When I try to download a file through django in IE , I get [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1] response = func(request, response), referer: http://www.com [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1] File "/home/

Re: Model field help_text

2009-09-20 Thread cerberos
On Sep 20, 1:14 am, cerberos wrote: > I have a ModelForm form, I want to use a different widget than the > default but when I do I lose the help_text. > > The first thing I tried was modelName.fieldName.help_text but it > didn't work, I've tried all sorts in a shell but