Re: Django in production on Windows

2010-12-05 Thread ashdesigner
Thanks Fred, we'll try it. Anthony On Dec 5, 7:16 pm, "Sells, Fred" wrote: > I don't know about IIS, but use django and windows with Apache.  See > "LAMP" for windows or just install pieces which is easy too. > > -Original Message- > From: django-users@googlegroups.com > > [mailto:django

Re: UTF-8 support in custom tags

2010-12-05 Thread Maxim
The exception occurred before this statement, but I changed it anyway. Thanks. --- Maxim On Dec 5, 4:58 pm, Ramiro Morales wrote: > On Sun, Dec 5, 2010 at 4:23 AM, Maxim wrote: > > Hi Ramiro, > > > Thanks for tip. Setting > > > DEFAULT_CHARSET = "UTF-8" > > FILE_CHARSET = "UTF-8" > > > did the

Re: doing validation in admin form

2010-12-05 Thread Wayne Smith
It's hard to say, because I don't know what kind of "validation" or business logic regarding it you are trying to accomplish/employ. However, if you are wanting to ensure you validate a foto during a gallery save, why not call an overridden fotos.save() from your custom galeria.save()? On Sun, De

Re: Comments by guest and foreign key in model

2010-12-05 Thread Wayne Smith
You might want to use some logic involving anonymous users. See here: http://docs.djangoproject.com/en/dev/topics/auth/#anonymous-users On Sun, Dec 5, 2010 at 2:29 PM, andy wrote: > Well you don't have to make the foreign key field required, that way > comments belonging to guest users can have

Re: trouble installing the django-socialregistration app

2010-12-05 Thread Konrad Delong
On 6 December 2010 01:10, Patrick wrote: > Hello, >  I'm new to django and hope I'm not asking an obvious question. > > I've tried to install django-socialregistration. I have the api_key > and secret_key in settings.py, but I keep getting the following error: > File "C:\projects\sample\Pinax-0.7.

trouble installing the django-socialregistration app

2010-12-05 Thread Patrick
Hello, I'm new to django and hope I'm not asking an obvious question. I've tried to install django-socialregistration. I have the api_key and secret_key in settings.py, but I keep getting the following error: File "C:\projects\sample\Pinax-0.7.3-bundle\env\lib\site-packages \django\core\servers\

Re: Comments by guest and foreign key in model

2010-12-05 Thread andy
Well you don't have to make the foreign key field required, that way comments belonging to guest users can have a blank foreign key Possibly you could also create a default guest user that is assign to comments made by guest users. I generally having my application depending on the creation of som

Comments by guest and foreign key in model

2010-12-05 Thread robos85
Hi, I need to create comments system. Either guests and logged users can comment. How can I do that? I want to make a Foreign Key to User model but then, how to add gust's comemnts? I could make it in 2 separate tables, but it would be nice to have it in 1 table. Any ideas? -- You received this

Getting started with generic relations

2010-12-05 Thread mack the finger
I can't quite wrap my brain around how to do generic relations. I have a `Receipt` model which is a receipt of a purchase. One of the fields is `item` which is a foreign key to a product model. I want to be able to not only have products, but other things that the user can buy. What do I need to d

doing validation in admin form

2010-12-05 Thread Daniel Carvalho
hi I have this models: models.py: class Galeria(models.Model): ... class Foto(models.Model): ... galeria = models.ForeignKey(Galeria, null=False) admin.py: class FotoInline(admin.StackedInline): model = Foto class GaleriaAdmin(admin.ModelAdmin): inlines = [FotoInline, Vid

Re: I'm trying to get this code http://paste.pocoo.org/show/300846/ to print a newline *before* each heading, what's the best way to do this?

2010-12-05 Thread wayne
You can just add the html to your template (like ). On Dec 5, 9:01 am, jc wrote: > I need this codehttp://paste.pocoo.org/show/300846/to print a > newline *before* each heading (essentially, wrapping it to the > next line). > Create another loop to do this or is there an easier way? > Thanks, >

Re: How to find what is the current module directory?

2010-12-05 Thread Simon TITE
Ouch, many apologies, I sent the last message to the wrong mailing list! Can an admin delete it please? -- Simon Tite -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsu

How to find what is the current module directory?

2010-12-05 Thread Simon TITE
I'm looking for something analagous to the existing command: sfConfig::get("sf_app_config_dir") which gives me access to the config directory of the current application ("apps/frontend/config"). I would like to do the same to access the config directory of the module, e.g. "apps/frontend/mod

Hello . )--y

2010-12-05 Thread Richard Zehnal
Hey, Are you busy these days? I know a very good company that may be help you to shop something. You can check it: www.sellele.com Recently this company have promotional activity. Most of their products have big discount that will help you save a lot of money. I think you will have a good time ther

I'm trying to get this code http://paste.pocoo.org/show/300846/ to print a newline *before* each heading, what's the best way to do this?

2010-12-05 Thread jc
I need this code http://paste.pocoo.org/show/300846/ to print a newline *before* each heading (essentially, wrapping it to the next line). Create another loop to do this or is there an easier way? Thanks, J. -- You received this message because you are subscribed to the Google Groups "Django us

RE: Django in production on Windows

2010-12-05 Thread Sells, Fred
I don't know about IIS, but use django and windows with Apache. See "LAMP" for windows or just install pieces which is easy too. -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of ashdesigner Sent: Wednesday, December 01, 2010 6:44 A

Re: Need a tip on how to architect this code to be more extensible

2010-12-05 Thread Rodrigo "OreiA" Chacon
Hi. There's a really good talk by James Bennett at the Google I/O 2008 that may help you. James talk mostly about the best practices when writing a "Reusable App". http://www.youtube.com/watch?v=A-S0tqpPga4 I'm sorry for my rusty english. -- Rodrigo Chacon On Dec 5, 3:53 am, Sontek wrote: > I

Re: UTF-8 support in custom tags

2010-12-05 Thread Ramiro Morales
On Sun, Dec 5, 2010 at 4:23 AM, Maxim wrote: > Hi Ramiro, > > Thanks for tip. Setting > > DEFAULT_CHARSET = "UTF-8" > FILE_CHARSET = "UTF-8" > > did the trick, though I thought it is UTF-8 by default and doesn't > have to be set explicitly. Should have pointed to the more specific subsection of t