newforms for idiots and designers?

2007-07-20 Thread Austin Govella
I'm *almost* getting forms to work, but not quite. Can anyone recommend a newforms tutorial written for designers? Something akin to Zoolander's School for Kids Can't Program Good. (And I *have* been reading. What's odd is that I used similar structures when I was coding php and coldfusion,

Re: foreign key on database not created with models referencing from other application

2007-07-20 Thread james_027
Hi, I dont know what you mean by what_I_have_done? I just follow the django tutorial. the one with poll and choice model. I did every step. and that's my result. However I have discover something this setting INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth',

Re: foreign key on database not created with models referencing from other application

2007-07-20 Thread Russell Keith-Magee
On 7/21/07, james_027 <[EMAIL PROTECTED]> wrote: > > I didn't say that the relation aren't working, I just wondering why > foreign key wasn't created in my case. I am using both SQL Manager > 2005 lite and MySQL Administrator just to take a look at the table > created. When I run your example,

Deleting an item out of my dictionary?

2007-07-20 Thread Greg
Hello, I have the following views def showcart(request, style_id, choice_id): s = Style.objects.get(id=style_id) #assert False,s c = Choice.objects.get(id=choice_id) #x = c.size, " ", c.price cart = request.session.get('cart', [])

Re: foreign key on database not created with models referencing from other application

2007-07-20 Thread james_027
I didn't say that the relation aren't working, I just wondering why foreign key wasn't created in my case. I am using both SQL Manager 2005 lite and MySQL Administrator just to take a look at the table created. any idea? james On Jul 21, 11:16 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>

get 5$ cash for free in your paypal account

2007-07-20 Thread newbar
get 5$ cash for free in your paypal account check it !!! http://www.cash-dreams.biz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Newforms - attributes for splitdatetimewidget

2007-07-20 Thread Russell Keith-Magee
On 7/21/07, jeffhg58 <[EMAIL PROTECTED]> wrote: > > I am just digging into the newforms functionality. I am looking at the > splitdatetimewidget. > I am trying to having a different attributes for the first field and > the second field, and would like to know how to go about doing it. I would

Re: foreign key on database not created with models referencing from other application

2007-07-20 Thread Russell Keith-Magee
On 7/21/07, james_027 <[EMAIL PROTECTED]> wrote: > > I am doing this in winxp , mysql 5 , python 2.5 , latest mysql driver > for python. Hope I've provided enough info. Not even close. Perhaps I'm not being clear. I have tried your example. It works for me. The fact that many thousands of other

Re: I have a class in my Models that contains one field which happens to be an integer type

2007-07-20 Thread Russell Keith-Magee
On 7/21/07, jeffself <[EMAIL PROTECTED]> wrote: > > How do I get the season to > display in the select box of my season field on the Game form? > Normally this would be fixed by using def __unicode__(self) but since > its not a CharField, I can't use that. I tried def __integer__(self) > but

Re: foreign key on database not created with models referencing from other application

2007-07-20 Thread james_027
Hi, The table was created fine with only a small problem and it's the foreign key. I have my application listed on settings.py, code my model on models.py, then perform manage.py syncdb my_app as I am aware that if the table exist it wont recreate it. I did a number of times of deleting my

Re: Accessing the backend's string-quoting functionality?

2007-07-20 Thread Russell Keith-Magee
On 7/21/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > >> Is there a way to access the back-end's string-quoting mechanism? > > > > from django.db import backend > > foo_quoted = backend.quote_name('foo') > > This seems to be (browsing the code) the table/field-name > escaping mechanism, not the

Re: Mapping models to CRUD urls?

2007-07-20 Thread Russell Keith-Magee
On 7/21/07, John Matthew <[EMAIL PROTECTED]> wrote: > Given that, I assume that the cache will look at the http://.../model3/add/ > and cache that? meaning it doesn't add the parameters to the cache lookup? Ultimately it will depend on your caching mechanism, but in theory, any page that has

Re: foreign key on database not created with models referencing from other application

2007-07-20 Thread Russell Keith-Magee
On 7/21/07, james_027 <[EMAIL PROTECTED]> wrote: > > When the relationship is within the same namespace (am I using the > right term, pls correct me) the manage.py syncdb create the tables > without a problem if all the tables are create on the same time, but > if the tables weren't created the

Re: Django, python 2.5 and macports 1.5

2007-07-20 Thread jeffself
On Jul 20, 4:50 am, lars <[EMAIL PROTECTED]> wrote: > Hi all, > > yesterday I tried to install django on my macbook. Since I wanted to > have a more recent python interpreter I installed the one from > macports. > There's a pitfall, however. Because in order to get MD5 running you > have to

I have a class in my Models that contains one field which happens to be an integer type

2007-07-20 Thread jeffself
In my model for my application, I've created a class called Season. There is only one field in this class and that is called year and its of type integer. In another class called Game, I have a field called season which is a ForeignKey to Season. When I bring up the add Game form in the Admin,

foreign key on database not created with models referencing from other application

2007-07-20 Thread james_027
I am very new to django, I am creating a model with a field of models.ForeignKey(User) #django.contrib.auth.models import User. When I look at the database, my table has no foreign key define. Another example is the django.contrib.admin.models.LogEntry model it has user = models.ForeignKey(User)

Re: Which database, and why?

2007-07-20 Thread theju
On Jul 20, 10:50 pm, walterbyrd <[EMAIL PROTECTED]> wrote: > I know that PostgreSQL is recommended, but why? Are the django > developers assuming a high-traffic, database intensive site. Are the > django developers assuming that you will not be using shared hosting? > I seems to me, that if you

Newforms - attributes for splitdatetimewidget

2007-07-20 Thread jeffhg58
Hi, I am just digging into the newforms functionality. I am looking at the splitdatetimewidget. I am trying to having a different attributes for the first field and the second field, and would like to know how to go about doing it. Here is the snippet of my code calendar_widget =

Re: Which database, and why?

2007-07-20 Thread Joe Bloggs
PostgreSQL scales better with more users http://tweakers.net/reviews/649/7 MySQL accepts the date 31st February 2007 and has several other lax views of rounding data or squeezing it in when it should reject it. http://safari.oreilly.com/0596002114/msql2-CHP-16-SECT-3 MySQL only supports

Re: Some questions on Django's authentication system

2007-07-20 Thread Nathan Ostgard
Regarding the first question, you can do this by creating a middleware class which checks for authenticated users by default. You could also created a decorator to tag view functions as public. For example... in file yourproject/yourapp/middleware.py: from django.conf import settings from

Re: removal of Django

2007-07-20 Thread Julio Nobrega
Hi, You probably went to a website and saw a 404 error message saying that Django could not find the page. The thing is that what you're seeing is the message sent by Django installed on the server, not on your computer. There's no Django installed on your PC. On 7/20/07, [EMAIL PROTECTED]

Re: Accessing the backend's string-quoting functionality?

2007-07-20 Thread Tim Chase
>> Is there a way to access the back-end's string-quoting mechanism? > > from django.db import backend > foo_quoted = backend.quote_name('foo') This seems to be (browsing the code) the table/field-name escaping mechanism, not the "escaping/quoting dangerous characters in a string so it can be

Re: removal of Django

2007-07-20 Thread SH
This is awesome. Did it uninstall your rails stack too? UR pwnd On Jul 20, 3:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all.Django auto loaded onto my computer from( I believe) a Harry > Potter web site.I want to remove it,as it is messing up one of the web > sites that I

Some questions on Django's authentication system

2007-07-20 Thread eXt
Hi all! I build an application which will use Django's authentication system. This is my first Django application that uses auth system, so sorry if the questions below are trivial. 1. Do I have to decorate all views with login_required if I want to keep them secured? Isn't there any

IOError: Client read error (Timeout?) - When doing an AJAX Post

2007-07-20 Thread Udi
This seems to only be happening when I perform an ajax request from IE7 using POST. Anyone have any ideas? File "/var/www/html/production/feo/reader/views/rest.py", line 693, in request_has_inputs if not request.has_key(input): File "/usr/local/lib/python2.5/site-packages/django/http/

PILOT__AIR_HOSTESS__SCANDAL__HIDDEN_VIDEO

2007-07-20 Thread Britnee
PILOT__AIR_HOSTESS__SCANDAL__HIDDEN_VIDEO Download video or http://tinyurl.com/32qcql - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Which database, and why?

2007-07-20 Thread [EMAIL PROTECTED]
I have had some really annoying performance problems with sqlite concerning multiple joins partially over views. The query optimizer did not do his job there and switching two joins brought a performance boost of several orders of magnitude. This is actually a thing that is hard to do with

Re: removal of Django

2007-07-20 Thread Collin Grady
> Hi all.Django auto loaded onto my computer from( I believe) a Harry > Potter web site.I want to remove it,as it is messing up one of the web > sites that I frequent.The site shows a 404 error. That's impossible. --~--~-~--~~~---~--~~ You received this message

Re: Accessing the backend's string-quoting functionality?

2007-07-20 Thread James Bennett
On 7/20/07, Tim Chase <[EMAIL PROTECTED]> wrote: > Is there a way to access the back-end's string-quoting mechanism? from django.db import backend foo_quoted = backend.quote_name('foo') -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct."

removal of Django

2007-07-20 Thread [EMAIL PROTECTED]
Hi all.Django auto loaded onto my computer from( I believe) a Harry Potter web site.I want to remove it,as it is messing up one of the web sites that I frequent.The site shows a 404 error.As I am a newby to computer with NO codeing experience,I am at a loss as to removing it.Hope that this is

Accessing the backend's string-quoting functionality?

2007-07-20 Thread Tim Chase
When working with an extra() call, I need to pass massaged parameters to a subselect using the where=[""]. However, I'd like to be able to access the back-end's quoting abilities. As a stop-gap, I currently am simply doing a replace of a single-quote with two single-quotes. However, I've heard

Re: Which database, and why?

2007-07-20 Thread Tim Chase
> I know that PostgreSQL is recommended, but why? Are the django > developers assuming a high-traffic, database intensive site. Are the > django developers assuming that you will not be using shared hosting? Any of the big three (PostgreSQL, MySQL, and sqlite) are quite well supported in Django.

Re: django-discussion

2007-07-20 Thread Robert
On 20 Lip, 17:40, "Jonathan Buchanan" <[EMAIL PROTECTED]> wrote: > > Hello, > > > Has anybody been using the django-discussion at: > >http://code.google.com/p/django-discussion/? > > So far I've only used it as part of the reddit clone in the demo > project [1] for django-tagging, django-voting

Re: Newbie Question: Static Media With Development Server - Not The Same Old Question

2007-07-20 Thread Nathan Ostgard
Interesting! Didn't know document_root would figure out relative paths. Glad you got it working. Re. media -- yeah, sorry about that, I've taken to renaming the admin's to media_admin. On Jul 20, 12:26 pm, cjl <[EMAIL PROTECTED]> wrote: > Nathan: > > Thank you for your reply. > > Your solution

Re: Blog engine

2007-07-20 Thread Kai Kuehne
Hi Kyle, On 7/18/07, Kyle Fox <[EMAIL PROTECTED]> wrote: > > It's easy to write a "basic" blog in Django. If that's all people > want, then great. Something like that will work perfectly for the > majority of bloggers (who probably won't get that much readership > anyway)... > > But all this

Re: Django advocacy in a commercial environment

2007-07-20 Thread Nic James Ferrier
Rob Hudson <[EMAIL PROTECTED]> writes: > Python and Django wouldn't be my concern when hiring new employees > since they are easy to learn. It's all the other stuff that comes > with web development that together is harder to find (eg: valid > (x)HTML, CSS, Javascript, database, source control,

Re: Blog engine

2007-07-20 Thread James Bennett
On 7/20/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > #2 is particularly interesting to me because I've written a simple > blog in Django and there are some non-obvious things that having a > reference implementation to look at would be nice. Things like: To be fair, though, a lot of these things

Re: Django advocacy in a commercial environment

2007-07-20 Thread Rob Hudson
On Jul 20, 2:09 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote: > I don't mean to pry, but at your workplace have you had any difficulty > hiring into Python/Django roles at your company (compared to PHP)? Do > you get less applicants? A better quality of applicant? We only have 2 developers and

Re: Blog engine

2007-07-20 Thread Rob Hudson
A lot of the same arguments against making a standard blog project could probably be applied to Rails, but here's a blog app in Rails... http://simplelog.net/ I think an open-source Django blog project would be good because 1) It would be Usable to many (as evidenced by this thread and others

Re: Newbie Question: Static Media With Development Server - Not The Same Old Question

2007-07-20 Thread cjl
Nathan: Thank you for your reply. Your solution seems practical, but I found another solution. In 'settings.py' I have: MEDIA_ROOT = './static/' MEDIA_URL = 'static/' and in 'urls.py' I have: (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': 'static'}), Then in the

Re: shortcut for assigning values to model?

2007-07-20 Thread Tim Chase
> I am also new to python, where can I learn more about **kwargs? The python docs have some examples here: http://www.python.org/doc/current/tut/node6.html#SECTION00672 -tim --~--~-~--~~~---~--~~ You received this message because you are

Re: shortcut for assigning values to model?

2007-07-20 Thread james_027
@canen An example is if your forms are dealing with two or more models wherein form_for_model is for one model only. @nathan I am also new to python, where can I learn more about **kwargs? Cheers, james On Jul 21, 12:46 am, canen <[EMAIL PROTECTED]> wrote: > I may be mistaken but isn't this

Re: Can Django call cscript.exe to run vbscripts

2007-07-20 Thread Dennis Allison
actually, look at module subprocess rather than os as the subprocess module contains the current best practice solution. (Check the Python 3000 docs to see what will be going away and avoid using them. :-) ) BUT, the vbscript GUI will not be available throught the web, at least not easily.

Which database, and why?

2007-07-20 Thread walterbyrd
I know that PostgreSQL is recommended, but why? Are the django developers assuming a high-traffic, database intensive site. Are the django developers assuming that you will not be using shared hosting? I seems to me, that if you are using shared hosting, and if your database needs are modest,

What does it mean to restart Apache?

2007-07-20 Thread walterbyrd
As I understand it, if you run django under mod_python, then you have to restart Apache every time you make a change to the django code. Does restarting apache mean that apache is completely shut down? So if I'm on shared hosting, then anybody else using the apache server, will have to wait

Re: Newbie Question: Static Media With Development Server - Not The Same Old Question

2007-07-20 Thread Nathan Ostgard
Assuming cwd is the projects folder: settings.py: import os.path MEDIA_ROOT = os.abspath('./media') urls.py: from django.conf import settings urlpatterns = patterns('', (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), ) On Jul 20, 6:13 am, cjl

Re: Can Django call cscript.exe to run vbscripts

2007-07-20 Thread Andrey Khavryuchenko
b> I'm an Windows System Administrator and for my job i often use b> vbscripts to automate my tasks. I was wondering if Django can call b> cscript.exe to execute a vbscript file (Offcourse django is assumed to b> run under Windows)? I know that i can also script wmi with python but b> i'm

Can Django call cscript.exe to run vbscripts

2007-07-20 Thread braveheart
Hello guys. I'm an Windows System Administrator and for my job i often use vbscripts to automate my tasks. I was wondering if Django can call cscript.exe to execute a vbscript file (Offcourse django is assumed to run under Windows)? I know that i can also script wmi with python but i'm allready

Re: shortcut for assigning values to model?

2007-07-20 Thread canen
I may be mistaken but isn't this what form_for_model is for? On Jul 20, 11:23 am, Nathan Ostgard <[EMAIL PROTECTED]> wrote: > Python also allows you to use ** to unpack a dict into a set of > kwargs: > > b = Book(**bf.cleaned_data) > > On Jul 20, 4:28 am, LaundroMat <[EMAIL PROTECTED]> wrote: >

Re: Mapping models to CRUD urls?

2007-07-20 Thread John Matthew
Russ, This is GREAT stuff, thank you so much. Since I'm so new to this web stuff, and django is really the only thing I've ever used for web programming, I hadn't gotten into the GET dictionary (or parameters as I call them). Given that, I assume that the cache will look at the

Adding permission in admin causes error

2007-07-20 Thread Todd O'Bryan
In the most recent from trunk, I get the following error when I try to add a permission (either default or custom) to a user. Is this a bug or am I doing something wrong? Todd TypeError at /dmi/admin/auth/user/2/ Cannot resolve keyword 'name' into field. Choices are: groups, user_permissions,

Re: shortcut for assigning values to model?

2007-07-20 Thread Nathan Ostgard
Python also allows you to use ** to unpack a dict into a set of kwargs: b = Book(**bf.cleaned_data) On Jul 20, 4:28 am, LaundroMat <[EMAIL PROTECTED]> wrote: > On 20 jul, 10:53, james_027 <[EMAIL PROTECTED]> wrote: > > > > > hi, > > > is there a short cut for assigning input data to model's

Re: template preprocessor ?

2007-07-20 Thread Jannis Leidel
as a matter of fact I just uploaded a new version [1] of the dbtemplates module, which is kind of pieced together from its original patch for a contrib app [2] and some ideas from james' django-registration app :) it's a standalone app now and lives on the python path. installation and

Re: Authentication for application with subdomains

2007-07-20 Thread SH
On Jul 20, 1:06 am, David Marko <[EMAIL PROTECTED]> wrote: > > One possible solution would be to append the domain name to the > > username before authentication. The user types in 'bob', then the > > system munges it to 'bob.sub.domain.com' before doing the validation. > > ### this approach

Re: Updating multiple rows with Django DB API?

2007-07-20 Thread Jeff
cursor.commit() On Jul 15, 9:12 pm, "Steven Hilton" <[EMAIL PROTECTED]> wrote: > On 7/15/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > > > On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote: > > > I could be updating any number of rows in bar. I want to do this > > > without do a select on

Re: form_for_model with custom modifications and save()

2007-07-20 Thread ilDave
Ok, I resolved just adding a 'codice' key with the right value to the f.clean_data dict before saving... Is there a better way or can I stay with this? On Jul 20, 4:35 pm, ilDave <[EMAIL PROTECTED]> wrote: > Hello! > I'm using form_for_model to create a form for a particulary complex > model. >

Terminate HTTP connection

2007-07-20 Thread meledictas
Hi, Can I terminate a connect without receiving all HTTP request package? I have to check if there are some important data, if not, just terminate it. Thank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

form_for_model with custom modifications and save()

2007-07-20 Thread ilDave
Hello! I'm using form_for_model to create a form for a particulary complex model. I don't want to show a particular field of the model in the form, so I did this: PreventivoForm = form_for_model(Preventivo) #Preventivo is the name of the model del PreventivoForm.base_fields['codice'] # codice

Re: How to loop through a Dict to add values?

2007-07-20 Thread Greg
Ok...on to a new problem. I'm able to add stuff to my session and also delete the entire sesssion. However, I'm not sure how to delete a particular entry into my session variable. This is how i add stuff to my session cart = request.session.get('cart', []) cart.append({'style': s, 'choice':

Re: newforms

2007-07-20 Thread Russell Keith-Magee
On 7/20/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > It might be worth finally writing the "form processing" chapter in the > Django Book, Russ :) The Django Book isn't my bailiwick - that's Adrian and Jacob's project. While I'm sure it will be a wonderful tutorial and reference when it is

Re: schema evolution

2007-07-20 Thread Derek Anderson
understandable. i do have both, but not integrated into django's framework. when i finish such, would you suggest a patch posted to the list, or attached to a bug report? (if the latter, a new bug or is there a schema evolution bug already in discussion?) danke, derek Russell Keith-Magee

Re: How to loop through a Dict to add values?

2007-07-20 Thread Greg
Yep...that worked. Thanks for your help Nis and Derek. I'll try to modify my model file with your suggestions On Jul 20, 5:46 am, Nis Jørgensen <[EMAIL PROTECTED]> wrote: > Greg skrev:> Derek, > > Ok...I made the change and I'm now getting the error: > > > TypeError at /rugs/cart/1/4/ > >

django-discussion

2007-07-20 Thread Robert
Hello, Has anybody been using the django-discussion at: http://code.google.com/p/django-discussion/ ? Any thoughts ? Thanks, -- Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Newbie Question: Static Media With Development Server - Not The Same Old Question

2007-07-20 Thread cjl
Djangoholics: I am working on a portable Django development environment for windows, and I'm trying to write a tutorial for newbies to go along with it. My initial -- poorly executed and incomplete -- website is at http://www.instantdjango.com One problem I am trying to overcome is how to make

Many-to-many using intermediary table

2007-07-20 Thread Jarek Zgoda
I have to rewrite large parts of older code where we used plain M2M without defining intermediary table. Now the junction in intermediary table must get few additional fields so I guess we need to create the model for the junction table and add these fields there, defining ForeignKeys to both

Multiple Edit

2007-07-20 Thread Christopher
I've been looking for a way to have a model and in the Admin be able to edit a couple at one. Is this even possible? I know models that have Foreign keys etc to each other this can be done. I want one model, stand-alone, and edit multiple. class Test(models.Model): name =

Re: newforms

2007-07-20 Thread Chris Hoeppner
Russell Keith-Magee escribió: > On 7/20/07, Alper KANAT <[EMAIL PROTECTED]> wrote: >> What is newforms any way ? A new looking (style) of a form or something >> ? If so, can somebody post a screenshot please ? > > Newforms is the replacement for the old manipulator framework. The old > forms

Re: shortcut for assigning values to model?

2007-07-20 Thread LaundroMat
On 20 jul, 10:53, james_027 <[EMAIL PROTECTED]> wrote: > hi, > > is there a short cut for assigning input data to model's data > attribute? > > if Book is a model then > > b = Book(request.POST) > b.save() > > the assignment will be done on all the match key of the request.POST > QueryDict and

Re: newforms

2007-07-20 Thread Russell Keith-Magee
On 7/20/07, Alper KANAT <[EMAIL PROTECTED]> wrote: > > What is newforms any way ? A new looking (style) of a form or something > ? If so, can somebody post a screenshot please ? Newforms is the replacement for the old manipulator framework. The old forms framework was based around the concept of

Re: How to loop through a Dict to add values?

2007-07-20 Thread Nis Jørgensen
Greg skrev: > Derek, > Ok...I made the change and I'm now getting the error: > > TypeError at /rugs/cart/1/4/ > unsupported operand type(s) for +: 'int' and 'Price' > > Is 'a['choice'].price' not an Int? It says it is in my model file. > No it doesn't - "price" is defined as a ForeignKey to

Re: Usage of {% trans ....%} tag in templates related to inclusion tags

2007-07-20 Thread Peter Melvyn
On 7/20/07, eXt <[EMAIL PROTECTED]> wrote: > Do you have: {% load i18n %} in your template? Certainly not - I forgot it - now it works fine. Thank you for help Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Django, python 2.5 and macports 1.5

2007-07-20 Thread Benoit Chesneau
If you look the port source, you will see files/patch-setup.py in which it disable md5 and such things like openssl. The only way to have them back is : 1) modify this patch, 2) increment the release number in portfile 3) reindex all the port tree with portindex 4) finally reinstall the port

HttpRequest.get_full_path() does not work with Apache 2.x

2007-07-20 Thread Mambaragi
Hello, I use HttpRequest.get_full_path() for saving current url. When I use this with Django manage.py runserver, it works perfectly fine. But when I use get_full_path with Apache + mod_python, it does not work. I only gives me HttpRequest.path value without QUERY_STRING. I just use like the

Re: Django advocacy in a commercial environment

2007-07-20 Thread Kenneth Gonsalves
On 20-Jul-07, at 2:39 PM, Jon Atkinson wrote: > I don't mean to pry, but at your workplace have you had any difficulty > hiring into Python/Django roles at your company (compared to PHP)? Do > you get less applicants? A better quality of applicant? my experience is: no qualified applicants -

Re: Django advocacy in a commercial environment

2007-07-20 Thread Jon Atkinson
Thanks for your reply, Rob. Personally, the reason we're looking to push Django is that our business needs very much match a statement Simon made in the talk I mentioned above: 'Web development on journalism deadlines' (that might not be entirely accurate). I was also considering putting

Re: Usage of {% trans ....%} tag in templates related to inclusion tags

2007-07-20 Thread eXt
Hi Do you have: {% load i18n %} in your template? Regards -- Jakub Wisniowski --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

shortcut for assigning values to model?

2007-07-20 Thread james_027
hi, is there a short cut for assigning input data to model's data attribute? if Book is a model then b = Book(request.POST) b.save() the assignment will be done on all the match key of the request.POST QueryDict and data attribute of the Book Model. or if BookForm is a newform then bf =

Django, python 2.5 and macports 1.5

2007-07-20 Thread lars
Hi all, yesterday I tried to install django on my macbook. Since I wanted to have a more recent python interpreter I installed the one from macports. There's a pitfall, however. Because in order to get MD5 running you have to install the package py25-hashlib as well! Otherwise you will face the

Re: newforms

2007-07-20 Thread james_027
Hi Alper, I am very new to django so I dont know how does the oldform look like, anyway here is what I like in this new form * helps me create the necessary html code to use in my forms very fast (needs some enhancement, I've already create a ticket) * with new forms you can handle forms for

Re: newforms

2007-07-20 Thread Alper KANAT
What is newforms any way ? A new looking (style) of a form or something ? If so, can somebody post a screenshot please ? Alper KANAT ([EMAIL PROTECTED]) http://raptiye.org Thomas Guettler yazmış: > Am Freitag, 20. Juli 2007 07:53 schrieb james_027: >> Which official django apps are using the

Re: Problem with image upload

2007-07-20 Thread ilDave
Thanks, it works! I missed the forms.ModelChoiceField in the documentation! On Jul 20, 10:23 am, Nathan Ostgard <[EMAIL PROTECTED]> wrote: > Use forms.ModelChoiceField instead: > > immagine = > forms.ModelChoiceField(queryset=Pics.objects.all().order_by('immagine'), > cache_choices=False,

Re: Problem with image upload

2007-07-20 Thread Nathan Ostgard
Use forms.ModelChoiceField instead: immagine = forms.ModelChoiceField(queryset=Pics.objects.all().order_by('immagine'), cache_choices=False, label='Pic', required=False) On Jul 20, 1:15 am, ilDave <[EMAIL PROTECTED]> wrote: > I've a form that handles file uploading to the database: it works >

Usage of {% trans ....%} tag in templates related to inclusion tags

2007-07-20 Thread Peter Melvyn
Hi all, I'am embedding a piece of information into each page using inclusion tag and it seems everything works fine except tag {% trans ... %}. Its occurence in the inclusion template raises expcetion TemplateSyntaxError saying "Invalid block tag: 'trans'". Did I miss anything or it is

Re: schema evolution

2007-07-20 Thread Russell Keith-Magee
On 7/20/07, Derek Anderson <[EMAIL PROTECTED]> wrote: > > but i use django > quite a bit now and am surprised some sort of this hasn't been merged > yet, so i figured i'd bring it up to date and re-release. By casting a quick eye over the patch, I caught at least two reasons that this hasn't

Problem with image upload

2007-07-20 Thread ilDave
I've a form that handles file uploading to the database: it works fine, the file is uploaded in the right place and the path is written on the database (I use a models.ImageField field in a model). Than I have another form, that uses newforms, with a field that should be populated with all the

Problems with fastcgi and pidfile

2007-07-20 Thread Nis Jørgensen
I cannot seem to get manage.py runfcgi pidfile=myfile.pid to work unless I have daemonize=false as well. I haven't started investigating what actually happens - thought I'd hear if I am doing something stupid first. Django is [EMAIL PROTECTED], Debian Etch, python 2.4.4, flup 0.2126-1

Re: newforms

2007-07-20 Thread Thomas Guettler
Am Freitag, 20. Juli 2007 07:53 schrieb james_027: > Which official django apps are using the newforms? I just want to take > a look at the coding as I am trying to learn the django's newforms. Hi, there is a newforms admin branch. I think you can use this as an example. I have not look at the

Re: Mapping models to CRUD urls?

2007-07-20 Thread Russell Keith-Magee
On 7/20/07, John M <[EMAIL PROTECTED]> wrote: > > Does caching matter that much in my example, since it's dynamic data > anyway? Don't let the fact that the data is dynamic distract you. All database backed websites are dynamic at some level. However, when you have thousands of requests for a

Re: Mapping models to CRUD urls?

2007-07-20 Thread John M
Russ, Wow, thanks so much for clearing that up, I was never sure about the parameters part of the URL, since this is my first real web program EVER, and I figured django was the right way to go. Does caching matter that much in my example, since it's dynamic data anyway? John On Jul 19, 5:43

Re: Authentication for application with subdomains

2007-07-20 Thread David Marko
> One possible solution would be to append the domain name to the > username before authentication. The user types in 'bob', then the > system munges it to 'bob.sub.domain.com' before doing the validation. ### this approach should work . Do you use it for your app? Any experiences?