Re: Site testing How-To

2006-06-06 Thread Joseph Kocherhans
On 6/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > Does anyone know of a way to get all attributes of a module into > another module while overriding just a few? I think you want tocreate something like testsettings.py, and in that file do something like: from myproject.settings import *

Re: Site testing How-To

2006-06-06 Thread Todd O'Bryan
On Jun 6, 2006, at 11:10 PM, Don Arbow wrote: > For unit testing, you don't really need a database. You can always > mock the database calls, because you're not testing the data or the > database (if postgres is up, the database is working), you're > testing your code's behavior to the data

Re: Log file analyze

2006-06-06 Thread Adrian Holovaty
On 6/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am using django directly with python manage.py runserver. I do not > need any apache between. Hi Kim, There's no way to alter the log output of Django's runserver. It's not intended to be used for production sites, so adding that functi

Re: Log file analyze

2006-06-06 Thread [EMAIL PROTECTED]
I am using django directly with python manage.py runserver. I do not need any apache between. Kim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Site testing How-To

2006-06-06 Thread Don Arbow
On Jun 6, 2006, at 6:42 PM, Todd O'Bryan wrote:Does anybody have a best practice (or not-too-annoying practice) for  testing?I think I'll use Selenium to test my site, but how should I change to  a test database, populate the test database, etc.?If you want to test your model relationships, I find

Re: Django Article on Developerworks

2006-06-06 Thread Ian Maurer
Thanks guys for the feedback. Hopefully the changes will get incorporated tomorrow. Also, I like the art IBM put together for the front page of the linux section... http://www-128.ibm.com/developerworks/linux/ I hope it meets with the approval of the true fans of both Django's. regards, Ian O

Re: I think I'm doing something wrong...

2006-06-06 Thread Elver Loho
Darn, well, that fixed it :P And to think I had the same problem with TurboGears a while bak. Sheesh. Thanks, everyone! :) Elver On 6/7/06, Max Battcher <[EMAIL PROTECTED]> wrote: > > Elver Loho wrote: > > > > Sadly it seems you, along with so many, many others, have fallen into > the easies

Re: I think I'm doing something wrong...

2006-06-06 Thread Max Battcher
Elver Loho wrote: > Sadly it seems you, along with so many, many others, have fallen into the easiest problem in the book. Your action address should have a following /. http://code.djangoproject.com/wiki/NewbieMistakes#POSTtoviewslosesPOSTdata -- --Max Battcher-- http://www.worldmaker.net

Re: I think I'm doing something wrong...

2006-06-06 Thread Zanchey
Haha, three replies within two minutes. Sorry for the spam. David Adam [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googl

Re: I think I'm doing something wrong...

2006-06-06 Thread Zanchey
Elver, I haven't had much of a play with it, but I get much better results from your little test program if I add a trailing slash to the action field of your form. i.e. - + This avoids the redirect that Django sends when it receives a URL without a trailing slash, trashing your form informat

Re: I think I'm doing something wrong...

2006-06-06 Thread Adrian Holovaty
On 6/6/06, Elver Loho <[EMAIL PROTECTED]> wrote: > Anyhow, the code. > > > URL: > (r'^make/$', 'latestbooks.latest.views.make_sidebar'), > > HTML: > Your form is pointing at /make, but your view is at /make/ (note the trailing slash). Django's CommonMiddleware is automatically adding the slash (

Re: I think I'm doing something wrong...

2006-06-06 Thread Malcolm Tredinnick
On Wed, 2006-06-07 at 05:00 +0300, Elver Loho wrote: [...] > URL: > (r'^make/$', 'latestbooks.latest.views.make_sidebar'), > > HTML: > > > Ainult samal > paeval ilmunud raamatud > Täna ja eile ilmunud > raamatud

Re: Django on Intel mac?

2006-06-06 Thread Jeremy Dunck
On 6/6/06, Greg Harman <[EMAIL PROTECTED]> wrote: > I've tried compiling from source for the i386 architecture, but am > having no luck. :-( What error are you getting? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

I think I'm doing something wrong...

2006-06-06 Thread Elver Loho
...because Django can't be this horribly broken. I'm sure of that much. But I've been beating my head against the wall for quite some time now and worst of all, I've got a deadline. So here's me, on the mailing list. What I'm trying to accomplish here is a simple POST form that posts to the same

Site testing How-To

2006-06-06 Thread Todd O'Bryan
Does anybody have a best practice (or not-too-annoying practice) for testing? I think I'll use Selenium to test my site, but how should I change to a test database, populate the test database, etc.? Any insight appreciated, Todd --~--~-~--~~~---~--~~ You rece

Re: Django on Intel mac?

2006-06-06 Thread Greg Harman
Oliver Kiessler wrote: > --- > > I also tried MysqlDB which compiles fine but throws a runtime error: > > macbookpro:~/mysite oliver$ python manage.py runserverValidating models... > Unhandled exception in thread started by > Traceback (most recent call last): > File > "/Library/Frameworks/P

Problem using django.contrib.sites

2006-06-06 Thread [EMAIL PROTECTED]
I wanted to try and make site that would take advantage of django.contrib.sites but I am having a problem. Both sites I have created are returning the same settings.SITE_ID (1). I created a very simple project and app that just has one model. I copied my settings.py file to a new file called se

Re: Serious Noobie question, what the $ for in urlpatterns.

2006-06-06 Thread John M
WOW! and again WOW! Thank you all for your quick and thorough responses, I now have it, perfect Thanks again, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: syncdb capabilities

2006-06-06 Thread bahund
Thanks Adrian, I appreciate the speedy response ... and that all makes sense for the time being. Keep up the good work over there! bahund --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: syncdb capabilities

2006-06-06 Thread Adrian Holovaty
On 6/6/06, bahund <[EMAIL PROTECTED]> wrote: > I understand that the "manage.py syncdb" command should create any > non-existant tables, but should it also update any individual fields > that have been added to a model/table? > > If the answer is no, which is what I'm seeing, any suggestions on >

syncdb capabilities

2006-06-06 Thread bahund
I understand that the "manage.py syncdb" command should create any non-existant tables, but should it also update any individual fields that have been added to a model/table? If the answer is no, which is what I'm seeing, any suggestions on making changes to the model fieldsets other than droppin

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Don Arbow
On Jun 6, 2006, at 9:53 AM, Umbrae wrote: > > If Django follows symbolic links on upload (and you're running linux), > you could use a symbolic link in the directory that would point to > wherever you'd like to store the files. Just make sure your apache > configuration is set to not follow symb

Re: Django Article on Developerworks

2006-06-06 Thread Don Arbow
On Jun 6, 2006, at 10:25 AM, Ian Maurer wrote: > > IBM has just posted an article on mine on the IBM website (hasn't made > it to the front page, yet): > > http://www-128.ibm.com/developerworks/linux/library/l-django/ Good job. > > If you notice any errors, kindly send them to me via email and

Re: Django Article on Developerworks

2006-06-06 Thread John Sutherland
The article is the top post on digg.com right now - well done :) John. On 6 Jun 2006, at 18:54, Adrian Holovaty wrote: > > On 6/6/06, Ian Maurer <[EMAIL PROTECTED]> wrote: >> IBM has just posted an article on mine on the IBM website (hasn't >> made >> it to the front page, yet): >> >> http://

Re: DateField and DateTimefield do not really validate

2006-06-06 Thread Jeremy Dunck
On 6/6/06, Rudolph <[EMAIL PROTECTED]> wrote: > When providing an invalid date like 2006-2-31 to a DateField or > DateTimeField, the validation doesn't catch that and an unhandled > exception is raised. It shouldn't be too hard to validate for valid > dates since you can rely on the Python datetim

DateField and DateTimefield do not really validate

2006-06-06 Thread Rudolph
Hi, When providing an invalid date like 2006-2-31 to a DateField or DateTimeField, the validation doesn't catch that and an unhandled exception is raised. It shouldn't be too hard to validate for valid dates since you can rely on the Python datetime module. I think this is a bug, or at least a m

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread James Bennett
On 6/6/06, Mike <[EMAIL PROTECTED]> wrote: > Rudolph and James Bennett, did you create your own custom templatetags? > If so, how did you go about doing it? I've been working on building and > adding menus to django templates that are populated with other content > as well, and I'd be interested i

Re: Backing HTML 'Compnents'

2006-06-06 Thread Adrian Holovaty
On 6/6/06, Doug Van Horn <[EMAIL PROTECTED]> wrote: > I have page components that are common across many of my pages. Here > are a few of them: > > == A user specific menu, cached in the session. > == A shopping cart, cached in the session. > == A list of recently visited items, cached in t

Re: Backing HTML 'Compnents'

2006-06-06 Thread Brett Parker
On Tue, Jun 06, 2006 at 12:46:00PM -0700, Doug Van Horn wrote: > My current approach to making these objects available to a template is > to have a 'base_dict(request)' function that returns a dictionary > containing the common things under well known names (e.g., { 'menu': > menu, 'cart': cart, '

Backing HTML 'Compnents'

2006-06-06 Thread Doug Van Horn
I'm not sure if this has been discussed. My searches yielded no fruit. I have page components that are common across many of my pages. Here are a few of them: == A user specific menu, cached in the session. == A shopping cart, cached in the session. == A list of recently visited items, c

Re: Harness our collective opinions -- Digg Django

2006-06-06 Thread Jeremy Dunck
On 6/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Hey everybody, > > The IBM Developer Works article about Django is a good opportunity to > get us some more exposure. If you have a Digg account (digg.com), Digg > it! > > http://digg.com/programming/Develop_for_the_Web_with_Python_Django_W

Re: Harness our collective opinions -- Digg Django

2006-06-06 Thread John Melesky
Adrian Holovaty wrote: > The IBM Developer Works article about Django is a good opportunity to > get us some more exposure. If you have a Digg account (digg.com), Digg > it! Also on reddit (reddit.com): http://programming.reddit.com/info/7bzf/comments -johnn --~--~-~--~~---

Harness our collective opinions -- Digg Django

2006-06-06 Thread Adrian Holovaty
Hey everybody, The IBM Developer Works article about Django is a good opportunity to get us some more exposure. If you have a Digg account (digg.com), Digg it! http://digg.com/programming/Develop_for_the_Web_with_Python_Django_Web_Framework Adrian -- Adrian Holovaty holovaty.com | djangoproje

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread David Robinson
Douglas, James, Wilson, Rudolph: Thanks - that clears things up. It's quite encouraging to see that we were pretty much headed in a viable direction. Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread Mike
Rudolph and James Bennett, did you create your own custom templatetags? If so, how did you go about doing it? I've been working on building and adding menus to django templates that are populated with other content as well, and I'd be interested in learning about your approach. --~--~-~-

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > 1) Create two separate media directories: /media/public and > /media/restricted > 2) Configure Apache to serve /media/public directory directly > 3) Configure Apache to serve the /media/restricted directory using > mod_python > 4) Set a url entry

Re: Easy way to access extra User stuff in templates?

2006-06-06 Thread Jeremy Dunck
On 6/6/06, Steven Armstrong <[EMAIL PROTECTED]> wrote: > Wouldn't that be a use case for djangos built in (but hardly documented) > AUTH_PROFILE_MODULE setting? This was just written up over here: http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model :) --~--~-~--~---

Re: Easy way to access extra User stuff in templates?

2006-06-06 Thread Steven Armstrong
On 06/06/06 17:11, Todd O'Bryan wrote: > On Jun 6, 2006, at 11:03 AM, Adrian Holovaty wrote: > >> >> On 6/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: >>> Here's the problem: How do I get to those in a template? I know >>> there's only one UserInfo object per User object, and ideally I'd >>> lik

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread Rudolph
Just like James Bennett, I would use templatetags for suchs "blocks" with little bits of information. I even generate a menu by using a templatetag. Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: Additional controls in admin interface?

2006-06-06 Thread James Mulholland
Wilson, thanks -- that answers both issues. Really appreciate your website, btw: it was one of the reasons I started learning to use Django. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Django Article on Developerworks

2006-06-06 Thread James Bennett
On 6/6/06, Ian Maurer <[EMAIL PROTECTED]> wrote: > If you notice any errors, kindly send them to me via email and I will > see if I can get them fixed. Couple things I noticed: * The "most recent Python" is 2.3.5? ;) * Right below Listing 9, tt mentions using __repr__ on a model, but the admin n

Re: Change cols and row in generic update page textarea

2006-06-06 Thread Wilson Miner
Or specify the dimensions in ems if you want a closer equivalent to rows and columns. On 6/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 6/6/06, tomass <[EMAIL PROTECTED]> wrote: > > Wondering if there's a way to specify how many rows and columns the > > generic update page uses for a t

Re: Django Article on Developerworks

2006-06-06 Thread Adrian Holovaty
On 6/6/06, Ian Maurer <[EMAIL PROTECTED]> wrote: > IBM has just posted an article on mine on the IBM website (hasn't made > it to the front page, yet): > > http://www-128.ibm.com/developerworks/linux/library/l-django/ > > If you notice any errors, kindly send them to me via email and I will > see

Re: Additional controls in admin interface?

2006-06-06 Thread Wilson Miner
You're looking for the "filter_interface" option for the ManyToManyField. You can find out more here: http://www.djangoproject.com/documentation/model_api/#many-to-many-relationships Also, if you specify an ordering meta option on your model, your ManyToManyField will be sorted by the field you s

Additional controls in admin interface?

2006-06-06 Thread James Mulholland
Excuse me if this is a daft question -- I'm new to both Python and Django, but I guess it's a credit to both of them that I'm doing some fairly nifty stuff building a new corporate intranet. One feature I'd like to add is a meeting scheduler, where someone can set up a meeting and invite various

Django Article on Developerworks

2006-06-06 Thread Ian Maurer
IBM has just posted an article on mine on the IBM website (hasn't made it to the front page, yet): http://www-128.ibm.com/developerworks/linux/library/l-django/ If you notice any errors, kindly send them to me via email and I will see if I can get them fixed. Thanks to all of the contributors o

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread [EMAIL PROTECTED]
> I've got an unusual situation with an app, and I'm wondering if anyone > could make a suggestion. The app will have a number of file upload > fields for uploading files that are _not_ supposed to be made > available to the webserver (as they are private). I'd like for > particular FileFields t

Re: Change cols and row in generic update page textarea

2006-06-06 Thread tomass
Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For mo

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread Wilson Miner
Another option is to create it as a flat page with the url "/" and pull in all your content using template tags. On 6/6/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 6/6/06, Douglas Campos <[EMAIL PROTECTED]> wrote: > > 1) create a homepage app to aggregate it all (don't be worried, it can

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread James Bennett
On 6/6/06, Douglas Campos <[EMAIL PROTECTED]> wrote: > 1) create a homepage app to aggregate it all (don't be worried, it can > live without any models) > 2) use whatever app you have, and throw a index() merging it together 3) Have it "belong" to one particular app/model, and use templatetags to

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Umbrae
If Django follows symbolic links on upload (and you're running linux), you could use a symbolic link in the directory that would point to wherever you'd like to store the files. Just make sure your apache configuration is set to not follow symbolic links and you're set. Just a thought. --~--~--

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread Douglas Campos
let's clarify: you have now: myproject polls photos gigs and want to make it all appear at main page right? like this +--+ | home page| +---+-

confused again: a "home page" can't be some special case

2006-06-06 Thread David Robinson
I'm still trying to wrap my head around some basic ideas. I appreciate the patience that has been extended my way already. Having pounded through the tutorial, I have a decent idea of how the poll app works, with a URL being associated with a function in the Poll app's view. That function th

Sanitizing user input

2006-06-06 Thread Rudolph
Hi, I wonder what's the preferred way/best practice for sanitizing user input. Most fields of my models are not allowed to contain HTML tags or javascript. I could use the striptags filter inside my templates but I feel more like sanitizing it before entering the database. I could use the django.

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
"Adrian Holovaty" <[EMAIL PROTECTED]> writes: > Are you using the Django admin for the file uploads? If not, you can > just write your own views that upload the data to a place of your > choosing. You'd be dealing with request.FILES for this. Unfortunately (?), I am using the Django admin for th

Re: Nose about future

2006-06-06 Thread Nagy Károly
Joseph Kocherhans írta: >This is the most up to date plan for 1.0 > > http://code.djangoproject.com/wiki/VersionOneFeatures > > Thanks, i did not see. Charlie. -- "...s minden mestert kinevettem, ki nem nevetett önmagán." GPG public key: http://www.rendszergazda.com/gpg/charlie-gpg-publi

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Adrian Holovaty
On 6/6/06, Jason F. McBrayer <[EMAIL PROTECTED]> wrote: > So, is there some straightforward way to put file uploads outside of > MEDIA_ROOT? Should I write my own field class for the purpose? Move > the file someplace else in the model's save() method? Use the normal > setup, but lock down that

FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
I've got an unusual situation with an app, and I'm wondering if anyone could make a suggestion. The app will have a number of file upload fields for uploading files that are _not_ supposed to be made available to the webserver (as they are private). I'd like for particular FileFields to be able

Re: Easy way to access extra User stuff in templates?

2006-06-06 Thread Adrian Holovaty
On 6/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > Why is it that you can't find stuff until after you send an email > asking about it? > > I actually implemented a context processor, added a > TEMPLATE_CONTEXT_PROCESSORS to my settings.py and then noticed the > line I had missed about list look

Re: Easy way to access extra User stuff in templates?

2006-06-06 Thread Todd O'Bryan
On Jun 6, 2006, at 11:03 AM, Adrian Holovaty wrote: > > On 6/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: >> Here's the problem: How do I get to those in a template? I know >> there's only one UserInfo object per User object, and ideally I'd >> like to type something like >> >> {{ user.userinfo.

Re: Catching a failed response

2006-06-06 Thread Ivan Sagalaev
Jay Parlar wrote: >What I'd like is that if the client closes their browser, >some exception gets raised, and I can cancel the rest of the process >on the server side. > > Ah... This is interesting :-). A web server will know that a client has been disconnected only when it will try to send it

Re: Easy way to access extra User stuff in templates?

2006-06-06 Thread Adrian Holovaty
On 6/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > Here's the problem: How do I get to those in a template? I know > there's only one UserInfo object per User object, and ideally I'd > like to type something like > > {{ user.userinfo.formalName }} > > in the template, but this doesn't work becau

Easy way to access extra User stuff in templates?

2006-06-06 Thread Todd O'Bryan
I've extended User by providing extra fields (a middle name, preferred nickname, etc.) in a UserInfo model with a User foreign key. I've also written methods for UserInfo for things like formalName () and informalName(). Here's the problem: How do I get to those in a template? I know there

Re: Change cols and row in generic update page textarea

2006-06-06 Thread Adrian Holovaty
On 6/6/06, tomass <[EMAIL PROTECTED]> wrote: > Wondering if there's a way to specify how many rows and columns the > generic update page uses for a textarea? > > It seems to default to 10 and 40, and I'd like to make this much > larger. Hi Tom, Each form element gets an ID in its HTML, which you

Re: Nose about future

2006-06-06 Thread Frankie Robertson
On 06/06/06, Nagy Károly <[EMAIL PROTECTED]> wrote: > *snip* > 2. arrival time of 1.0 I believe "When it's ready" is the staple answer. > I do not try to play a sure game (wish i can do), just estimating amount > of troubles. > > Thanks, > Charlie. > > -- > "...s minden mestert kinevettem, ki nem

Re: Serious Noobie question, what the $ for in urlpatterns.

2006-06-06 Thread Jan Claeys
Op ma, 05-06-2006 te 21:44 -0500, schreef Jeremy Dunck: > Kodos is a nice utility for fiddling with regexs: 'Kiki' is another one, written in wxPython. -- Jan Claeys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Nose about future

2006-06-06 Thread Joseph Kocherhans
On 6/6/06, Nagy Károly <[EMAIL PROTECTED]> wrote: > > 1. what are those areas of api or framework where we encounter major > rewrites interfacing with it > 2. arrival time of 1.0 This is the most up to date plan for 1.0 http://code.djangoproject.com/wiki/VersionOneFeatures When will it be

Re: Upgrading to Magic-Removal

2006-06-06 Thread keukaman
Thanks for your help. My hosting company was able to correct the issue and install the magic-removal version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: Help with multiple object added on a single form with addManipulator.

2006-06-06 Thread Frankie Robertson
Oops, I just accidently hit send to early there. Anyway, when messing around with the manipulators in the shell and generate them as shown at http://code.djangoproject.com/wiki/NewAdminChanges I get a dictionary called _related_objects (or something like that) but I am unable to access it in the

Re: Ajax support, there is no need for reinventing the wheel

2006-06-06 Thread wiz
What is 'lack of ajax support'? We couldn't make ajax fodder with templates? We couldn't just slap to one or another pretty ajax lib? Looks like this is the question of lazyness. I'm pretty happy now with my tiny jah.js + data from generic views and heard about some nice ajax packages. So what is

Re: Help with multiple object added on a single form with addManipulator.

2006-06-06 Thread Frankie Robertson
Thanks but that's not what I was looking for. I wasn't interested in the admin. I was interested in manipulators (http://www.djangoproject.com/documentation/forms/), which allow you access to bits of the admin's framework. I was having trouble writing a form to submit both an object and several re

Re: Change cols and row in generic update page textarea

2006-06-06 Thread tomass
But how do I show the value of the field in the textarea: is there such as thing as {{ form.emailbody.value }} or something? This is for an update form, so I need to display the current value Thanks, Tom --~--~-~--~~~---~--~~ You received this message because yo

Re: Change cols and row in generic update page textarea

2006-06-06 Thread Honza Král
simply put there instead of the template tag {{ form.emailbody }} not very ellegant, but works.. On 6/6/06, tomass <[EMAIL PROTECTED]> wrote: > > This is for a generic view. I may have missed this in the doc, but how > do I specify my html? > > I'm currently doing: > > EmailBody: {{ form.ema

Re: Change cols and row in generic update page textarea

2006-06-06 Thread tomass
This is for a generic view. I may have missed this in the doc, but how do I specify my html? I'm currently doing: EmailBody: {{ form.emailbody }} {% if form.emailbody.errors %}*** {{ form.emailbody.errors|join:", " }}{% endif %} And this is what punches out the: How can I control what co

Re: Change cols and row in generic update page textarea

2006-06-06 Thread Honza Král
You mean in the admin page or using a generic view? with the generic view you can specify your HTML, so I don't see a problem there. If you want to add this information to the admin pages, that cannot be done at the moment (please someone correct me if I am wrong), but it would only be a small pat

order_with_respect_to and edit_inline in MR

2006-06-06 Thread Colleen Owens
Hi, I switched my code over to M-R this past weekend and was surprised that it went pretty smoothly. There are a couple things in my models that aren't working anymore though. The first is order_with_respect_to. I have an inline edited object that I want to order with respect to its related objec

Re: User Defined Fields in django

2006-06-06 Thread clkratz
Hello, I appreciate the suggestion, but I think that would give up all the usefullness of the framework for those fields. Also, for reporting purposes the data really needs to be in standard database tables, columns and rows. I think I'm going to hack around in the code a bit and see if I can pa

Internalization: Two DB tables for one Model?

2006-06-06 Thread Aidas Bendoraitis
Hello Django Professionals! I am making a Django-based website that has to be multilingual. Everything is clear about making the admin section and the templates translatable. The problem is multilingual objects. I could think of several approaches to implement internationalization for Django obj

Change cols and row in generic update page textarea

2006-06-06 Thread tomass
Hi Folks, Wondering if there's a way to specify how many rows and columns the generic update page uses for a textarea? It seems to default to 10 and 40, and I'd like to make this much larger. Thanks, Tom --~--~-~--~~~---~--~~ You received this message because y

capistrano/switchtower python equivalent?

2006-06-06 Thread Gábor Farkas
hi, is there something similar to Capistrano (http://wiki.rubyonrails.com/rails/pages/Capistrano) in python? what i'm looking for is a tool which i can configure to do the release-process automatically.. mostly things like: - checkout the newest version of the source code on all the servers -

Re: Not possible activate the admin site

2006-06-06 Thread GinTon
Fernando Gutierrez wrote: > Did you svn update from previous trunk to magic-removal? I experienced > this because svn update left a directory urls in > django/contrib/admin/urls/, so i think there was some type of conflict > with the urls.py that is now directly in the django/contrib/admin/ > Ye

Re: Log file analyze

2006-06-06 Thread David Larlet
2006/6/6, Adrian Holovaty <[EMAIL PROTECTED]>: Are you using Apache? If so, this is something you configure inApache's httpd.conf configuration file, not in Django. See the ApacheLogFormat directive: http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#logformatAdrianWhat about a statistics

Re: Django Quick Start with Schema Evolution Support

2006-06-06 Thread Michael Radziej
Ilias Lazaridis wrote: > http://lazaridis.com/core/eval/index.html Your phone contact is not working. I get the impression you're only a scam. Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Serious Noobie question, what the $ for in urlpatterns.

2006-06-06 Thread Simon Willison
On 6 Jun 2006, at 03:26, John M wrote: > how does that differ from > > (r'^polls/'), > (r'^polls/(\d+)/$') > > Note the $ is missing from the first line of the second example. > > When you don't have a $ in the polls/ setup, it doesn't scan down to > the other entries. > > Since I'm so

Re: combining models in something like a queryset?

2006-06-06 Thread Luke Plant
> One possible method is to create a VIEW in your db that does a UNION of > columns from different tables. I meant to say: ...does a UNION of rows from different tables, selecting columns or calculated columns that are equivalent. Luke --~--~-~--~~~---~--~~ You

Affiliate program

2006-06-06 Thread eleanna filippoglou
Dear friends I have sent a lot of emails to help you understand what DHS CLUB is. The DHS CLUB is a global multistore company where you can find everything you need, from a couple of shoes NIKE with only $25, parfums and fragrances as ESTEE LAUDER with only $25, up to many famous brands of cars

Build your job

2006-06-06 Thread eleanna filippoglou
Dear friend I am glad for your email. From the thousands of e-mails I receive I chose yours too in order to create a group of one from each country. You will be the first from your country and you will have the chance to create successful carrier in your country. By joining this company, you hav

Nose about future

2006-06-06 Thread Nagy Károly
We are starting a new project soon (within a month, after closing a research phase). Django V1.0 means (as far as i can recall from wiki) "do not expect backward compatibility before 1.0". Obviously major design elements and data models are not affected later, but (watching django version number c