HELP! python in free(): error: free_pages: pointer to wrong page

2009-02-14 Thread django
All, Since upgrading to 1.0.2, and now to pre-alpha SVN-9832, my manage.py runserver crashes with: jer...@host396:/home/jerome/ccoa$ manage.py runserver 8077 Validating models... 0 errors found Django version 1.1 pre-alpha SVN-9832, using settings 'ccoa.settings' Development server

How to change add user interface for admin site

2008-02-07 Thread django
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 more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: How to change add user interface for admin site

2008-02-07 Thread django
Thanks On Feb 7, 6:52 pm, Reed Bailey <[EMAIL PROTECTED]> wrote: > On Thu, 2008-02-07 at 02:36 -0800, django wrote: > > hi, > > I wanted to know how can I change the add user interface for admin > > site. > > I suggest you begin here at this > link:http://ww

Admin page problem

2008-02-14 Thread django
Hi, I just want to use admin interface for adding and editing user. I have a tab for adding and editing user. But the problem here is how can I direct my tab clicking to django admin add or edit user page. I dont wont to hard code it by writting view function for it. I want to use default django

Re: Admin page problem

2008-02-14 Thread django
Hi, I am not getting you. Can u please explain me what my href=? should be for adding user or for editing user. Thanks... On Feb 14, 4:15 pm, Julien <[EMAIL PROTECTED]> wrote: > How about: (assuming > that "model" designates the user...) > > On Feb 14, 10:01

Re: Admin page problem

2008-02-14 Thread django
For adding user, I guess the url would be: "/admin/auth/user/add/" > > ...or maybe I just don't understand what you're after... > > On Feb 14, 10:36 pm, django <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am not getting you. > > Can u please exp

Implement 2 templates in 1

2008-03-25 Thread django
display voting status in candidatelist 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 [

Template problem

2008-03-26 Thread django
) So what should I do to display voting status in candidatelist I tried using {% include "template/view_vote.html %} but it doent seems to work.. Thanks.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Template problem

2008-03-26 Thread django
) So what should I do to display voting status in candidatelist I tried using {% include "template/view_vote.html %} in my view_candidate.html... Thanks.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Could not parse the remainder in Template?

2008-03-26 Thread django
I tried using {{ candidate.vote_set.filter(vote='TU').count()}} in my view_candidate.html file but it gives me error Could not parse the remainder: (vote='TU').count() please help me out.. Thanks... django wrote: > hi, > I have a candidate model and a voting model. &

Could not parse the remainder in Template?

2008-03-26 Thread django
How do i convert {{ candidate.vote_set.filter(vote='TU').count()}} in my view_candidate to work it properly Right now it give me templatesyntax error On Mar 27, 10:48 am, django <[EMAIL PROTECTED]> wrote: > I tried using {{ candidate.vote_set.filter(vote=&#

how to convert {{candidate.vote_set.filter(vote='TU').count()}} in template syntax

2008-03-26 Thread django
ge 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 more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Admin customisation

2007-02-22 Thread Django
Hi, Is it possible to customise the django admin so that it only displays certain objects depending on which user has logged in? For example I have a user linked to one or more subject models. Is it possible only to display the subjects which are linked to the user who is logged in in the admin

Re: Admin customisation

2007-02-22 Thread Django
admin change-list page. > > > Please note that at the state of the art, if you choose to customize > > the admin, maybe you will find more and more hacks to do. Every time > > you achieve to customize the admin, It whet your appetite to other new > > things you need, and t

Re: Admin customisation

2007-02-23 Thread Django
I've just attempted the first part using lukeplant's middleware. However I am not getting the following error... Traceback (most recent call last): File "c:\documents and settings\me\django_src\django\core\servers \basehttp.py", line 272, in run self.result = appl

Re: Admin customisation

2007-02-23 Thread Django
Ok got it silly mistake it should have been 'mysite.project.threadlocals.ThreadLocals' not 'mysite.project.threadlocals' On Feb 23, 11:29 am, "Django" <[EMAIL PROTECTED]> wrote: > I've just attempted the first part using lukeplant's middlewar

Re: Problems with User Auth stuff

2005-08-01 Thread Django
I think I mis-read the comment by Mookai. Instead of fighting the existing fraework, I am going to try to use the User from django.models.auth directly (no subclassing) and unset is_staff and is_superuser attributes so that those users can not mess with the admin rights. The Appuser class was only

Re: Problems with User Auth stuff

2005-08-02 Thread Django
I made it work with the users going in django.models.auth. But it is not a very good solution as it becomes project-wide and I cannot have another similar application. I think we need to have a way to tell the auth/sessions framework the correct user tables to use. It is hardcoded to pick the dja

Django HTTP Basic Auth

2012-10-18 Thread django
I am trying to create a Django app, one of the thing I do in that is write a connection.py which connects to a remote server. In that connection string I need to send one of the parameter as "http_auth = http_auth.HTTPBasicAuth(user, password)". I am not sure how to do that in

Beginner question about Postgresql

2011-01-14 Thread Django
I am using Python27, Django and wanted to us Postgresql, but I am having problems. When I start a new project and run syncdb for the first time I get an error. \postgresql_psycopg2\base.py line24."Improperly Configured: Error loading psycopg2 module: no medule named psy

multi model forms

2011-02-28 Thread django
hi guys I am new to django. I have got two model User(Django built in ) and a model customer, user is foreign key in customer class Customer(models.Model): user = models.ForeignKey(User, related_name='customers') street = models.CharField(max_length=200) city = models.CharField(

Apache Setup

2008-11-25 Thread Django Newbie
Hi Everybody, Django newbie here. I'm trying to get it to work under apache with mod_python on a freebsd server but running into problems. I searched the archives and found similar things, but I tried all the suggestions and still no luck. The error: MOD_PYTHON ERROR Proc

Re: Apache Setup

2008-11-26 Thread Django Newbie
Graham Dumpleton wrote: > > On Nov 26, 3:32 pm, Django Newbie <[EMAIL PROTECTED]> wrote: > >> Hi Everybody, >> >> Django newbie here. I'm trying to get it to work under apache with >> mod_python on a freebsd server but running into problems.

rendering DB text in template

2008-11-28 Thread Django Newbie
available. {% endif %} 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

Re: rendering DB text in template

2008-11-28 Thread Django Newbie
Thank you. Alex Koshelev wrote: > Look at this: > http://docs.djangoproject.com/en/dev/topics/templates/#id2 > > > On Fri, Nov 28, 2008 at 21:43, Django Newbie <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > So I have some text fields

Re: Can javascript call a python script?

2008-12-04 Thread Django Newbie
f this is unnecessary or just plain wrong, or if someone has a better > way of editing items directly from the change_list, please let me > know! Thanks much for the help. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to

user_id in admin pages

2008-12-10 Thread Django Newbie
date_hierarchy = 'date_entered' admin.site.register(Recipes,RecipeAdmin) What I want to do is in RecipeAdmin add something like: entered_by = User.user_id So how can set a field equal to the user_id to be entered into the db? Thanks. David Godsey --~--~-~--~~-

Re: user_id in admin pages

2008-12-10 Thread Django Newbie
Found it thanks. http://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-methods James Bennett wrote: > On Wed, Dec 10, 2008 at 6:28 PM, Django Newbie <[EMAIL PROTECTED]> wrote: > >> This is probably an easy one, but I've tried what make sense to me wit

Modules Imported Multiple Times

2008-07-14 Thread django-m712
Hi, I'm having a problem where Python modules are being imported multiple times and I cannot figure out why. I have a simple, standard set up created with the following commands: django-admin.py startproject mytest cd mytest manage.py startapp app1 I would like to run some initialization

Re: Need suggestions on subversion structure for project

2008-09-05 Thread Django users
i18n/',include('rosetta.urls')), ) except: pass which enables rosetta for translations and uses django's own static file server if running local or uses Apache if running on the production site. On Sep 4, 11:10 am, Robert Dailey <[EMAIL PROTECTED]> wrote: >

Re: Which IDE do you choose with django?

2008-10-13 Thread Django users
Geany, small, lighweight, fast, and also supports http, javascript, etc Supports plugins and has basic svn support http://www.geany.org/ On Oct 12, 12:19 pm, zjffdu <[EMAIL PROTECTED]> wrote: > I am a newbie of django, and want to know which IDE is suit for > django? &g

Abstract classes / table lookup

2009-02-11 Thread django...@gmail.com
ject from a TextTable or AudioTable. I thought of using python's 'eval()' to run the code, but this seems like a bad idea maybe from a security point. How can I make this code run on the different tables? Any ideas? Is my database design completely

Saving referential objects

2009-02-18 Thread django...@gmail.com
er and revision object... I saw this example, online: http://www.djangoproject.com/documentation/models/mutually_referential/, but I don't think it works for generic foreign keys. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

issue with simple image ordering view

2009-07-25 Thread django user
mage') but that will only get me a list of the "value" list and I need to correlate each value(photo position) to the photo.id. All help and advice is appreciated!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: issue with simple image ordering view

2009-07-26 Thread django user
How would I make a formset for exactly the # of images I have in a queryset? On Jul 26, 1:37 am, Daniel Roseman wrote: > On Jul 26, 6:13 am, django user wrote: > > > > > I have a basic form with that shows user's uploaded images: > > > > > > >  

python 2.5 --> 2.3, now imagefield error

2009-07-27 Thread Cody Django
ted! Cody --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit

python 2.5 --> 2.3, now imagefield error

2009-07-27 Thread Cody Django
hanks. --~--~-~--~~~---~--~~ 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 django

Re: python 2.5 --> 2.3, now imagefield error

2009-07-27 Thread Cody Django
checked: - pil supports jpgs - permissions set to 775 on upload folders On Jul 27, 7:44 pm, Cody Django wrote: > All imagefields give this error: Upload a valid image. The file you > uploaded was either not an image or a corrupted image. > > I suspect that imagefield itself is com

Re: python 2.5 --> 2.3, now imagefield error

2009-07-27 Thread Cody Django
yes, and it contains the jpg and gif plugins, which I assume means that it does support jpgs. On Jul 27, 9:15 pm, Darryl Ross wrote: > Cody Django wrote: > > ImageFields worked just fine until I moved to a new server. Now I get > > error messages "Upload a valid image"

Re: Multi select field with images

2009-07-31 Thread django user
multiple fields > > >> choices be images and not text. > > > >> ideas/suggestions appreciated > > > >> -- Sent from my Palm Pre > > > -- > > > > Mugisha Moses > > P.O. Box 1420 Kampala, Uganda > >http://appfrica.

Re: Stopping people loging in twice

2009-07-31 Thread django user
tting them know that they have logged in elsewhere and their session at this computer was ended. I don't know if django has a good way to query if the user is logged in or not... On Jul 31, 8:04 am, When ideas fail wrote: > Hello, if i am using this generic view in my urls.py? > >

Re: Stopping people loging in twice

2009-07-31 Thread django user
So is there a viable django solution for this problem? On Jul 31, 7:50 pm, Malcolm Tredinnick wrote: > On Fri, 2009-07-31 at 19:43 -0700, django user wrote: > > I'm interested in a solution for this as well. > > > I am thinking that a good way might be to rewrite the

upgraded to python2.5, but error-reports/traceback still references python2.3?

2009-08-07 Thread Cody Django
traceback that python2.3 is still being referenced. For example: File "/usr/lib/python2.3/site-packages/django/core/handlers/base.py", line 92, in get_response response = callback(request, *callback_args, **callback_kwargs) Could there still be a cache that is holding the old paths?

Weird: the path to the image, retrieved using filebrowser, is rewritten with a wrong relative instead of absolute.

2009-08-17 Thread Cody Django
I really don't know what is going on here. I've checked all my settings for django-filebrowser and django-tinymce. 1) Using tinymce in admin, I'll click on "add image" 2) Click on "filebrowser" icon in the image-prompt window, which opens the filebrowser windo

Re: Weird: the path to the image, retrieved using filebrowser, is rewritten with a wrong relative instead of absolute.

2009-08-17 Thread Cody Django
sorry -- already a fix: http://code.google.com/p/django-tinymce/issues/detail?id=22&can=1&q=image&colspec=ID%20Type%20Status%20Priority%20Milestone%20Reporter%20Owner%20Summary On Aug 17, 7:31 pm, Cody Django wrote: > I really don't know what is going on here.  I've

Problems width templatetags

2009-08-25 Thread Sandra Django
Hi friends, I'm trying to custom the index.html of Django. For that, I'm writing a custom template tag (categories.py). This module should display a list, but don't display anything. Why? I'll describe that I did because if you can you explain me what is the problem, ok? 1) I c

Re: Problems width templatetags

2009-08-25 Thread Sandra Django
Hi Mike, excellent answer, thanks. Look, I followed this example: http://www.djangrrl.com/view/custom-template-tags-in-django/ But my problem is that don't displays list categories, but neither I get error. I copied exactly that appears in that article, but I don't have good results. Ca

Return custom view depending on user

2009-08-26 Thread Sandra Django
Hi friends, another doubt... I have a group, where all users that belongs to this groups only can access to a form, and I want that when anyone is logged, go directly to that form, not to Django view by default. How I can do it? Depending on the group, return that form. Thanks for any help, Sandra

Display user and date in change_list

2009-08-26 Thread Sandra Django
--- class OneAdmin(admin.ModelAdmin): list_display = ['name', 'user', 'date'] But both functions returns (None). Why I can do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

show user and date in change_list

2009-08-27 Thread Sandra Django
--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: show user and date in change_list

2009-08-28 Thread Sandra Django
Thank's Alex, but it don't seem the problem, because I tested with another method name "author" and "pub_date", and returns (None) too. Why? On Thu, Aug 27, 2009 at 5:03 PM, Alex Gaynor wrote: > > On Thu, Aug 27, 2009 at 12:18 PM, Sandra Django > wrote

Problems with filter_horizontal

2009-09-01 Thread Sandra Django
Hi friends, I'm using Django 1.1, and I want to change the widget by default on ManyToManyField for it looks as user permissions field in Django. For that, in my admin.py I wrote: from django.contrib import admin from myproject.app.models import Book class BookAdmin(admin.Model

Problems with custom permissions

2009-09-01 Thread Sandra Django
? I'm wrong? --~--~-~--~~~---~--~~ 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 django-user

Is valid {% ifequal model.name "Mymodelname" %}??

2009-09-02 Thread Sandra Django
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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Add buttons to change_form

2009-09-03 Thread Sandra Django
Hi friends, I have a problem. I want add buttons to change_form, and I did the same thing of Django, I wrote a templatetags, but I have a doubt in the views. I want do something as: def newdescriptor(request): if request.method == 'POST': form = CustomNewForm(request.POST)

Re: are you using mptt, treebeard or something else?

2009-09-03 Thread Sandra Django
Hi Aljosa Mohorovic, I need work with django-mptt or django-treebeard, but neither I'm sure. I think that django-mptt is better, this says all ( http://magicrebirth.wordpress.com/2009/08/06/representing-hierarchical-data-with-django-and-mptt/ ) Sorry, a cuestion because I don't unders

Add buttons to change_form

2009-09-03 Thread Sandra Django
Hi friends, I have a problem. I want add buttons to change_form, and I did the same thing of Django, I wrote a templatetags, but I have a doubt in the views. I want do something as: def newdescriptor(request): if request.method == 'POST': form = CustomNewForm(request.POST)

Add buttons to change_form

2009-09-04 Thread Sandra Django
Hi friends, I have a problem. I want add buttons to change_form, and I did the same thing of Django, I wrote a templatetags, but I have a doubt in the views. I want do something as: def newdescriptor(request): if request.method == 'POST': form = CustomNewForm(request.POST)

Problems with custom Auth Backends: 'NoneType' object has no attribute 'DoesNotExist'

2009-10-02 Thread Sandra Django
Hi, I want add a new attribute in User model and create custom backends. Steep by steep, I did the following: 1) I created an application named "profile" into my project 2) I created, in models.py of "profile" a class named "UserProfile", which inherits from

Problems with custom Auth Backends: 'NoneType' object has no attribute 'DoesNotExist'

2009-10-08 Thread Sandra Django
Hi, I want add a new attribute in User model and create custom backends. Steep by steep, I did the following: 1) I created an application named "profile" into my project 2) I created, in models.py of "profile" a class named "UserProfile", which inherits from

Problems width add_to_class

2009-11-05 Thread Sandra Django
Hi friends, I have a problem. I'm trying to add to User class of Django an attribute. For that I'm using add_to_class method. I did the following: 1. Delete from Data Base the tables: «auth_user», «auth_user_groups» y «auth_user_user_permissions». 2. In models.py of «main» ap

Help a newbie with his simple foreignkey problem?

2009-11-12 Thread Cody Django
forward? Thank you for your insight! -- 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 unsubscribe from this group, send email to django-users+unsubscr...@goog

Re: Help a newbie with his simple foreignkey problem?

2009-11-12 Thread Cody Django
move(b)#remove from shelf1 request.user.get_profile().shelf.2.add(b) #add to shelf2 -- 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 unsubscribe from

creating formset with unknown number of unique forms

2010-04-20 Thread Cody Django
, marking up the group appropriately. is this possible to achieve with a formset? it seems that I need to pass data to each individual form constructor, but this isn't possible using the "formset_factory" mechanism? -- You received this message because you are subscribed to the Google

adding user instance to the comments constructor for a dynamic comment form

2010-08-29 Thread Cody Django
re subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: adding user instance to the comments constructor for a dynamic comment form

2010-08-29 Thread Cody Django
sure, whatever. maybe you miss the point: I'd like to include the user instance in the constructor. Is there a way to do this without rewriting the comments framework? C On Aug 29, 4:24 pm, "Evan H. Carmi" wrote: > On Sun, 29 Aug 2010 16:08:45 -0700 (PDT) > > Cod

Add admin action to Django User

2010-11-01 Thread Django-learner
Hi, I want to add an customized action to user management in django admin site. I can see that only delete selected user is available, how can I add more to that? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Show DEBUG page to specific user group?

2010-11-12 Thread Django-learner
I turned off the DEBUG in settings on production server, but still want to show the DEBUG page to specific user groups. How can we make this happen? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Problems with django-ajax-filtered-fields and ManyToManyByRelatedField

2010-03-08 Thread Sandra Django
Hi friends, someone has worked with django-ajax-filtered-fields? I'm having problems with ManyToManyByRelatedField. The syntax is very simple, I think that it isn't the problem. I have an "Author" class that it has a ForeignKey field named "type", and I want to fil

I need django-evolution app

2010-03-12 Thread Sandra Django
Hi friends, I'm trying to download django-evolution app, but I can't from Cuba. Could you send to me this app for this way? Please! Thanks, Sandra -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: I need django-evolution app

2010-03-12 Thread Sandra Django
Thanks friends, regards On Fri, Mar 12, 2010 at 10:28 AM, Shawn Milochik wrote: > South has become the dominant DB migration tool for Django. Have a go at > that. > > http://south.aeracode.org/ > > Shawn > > > -- > You received this message because you are s

modify db records without changing html

2010-03-23 Thread Django Grappelli
Hi Everyone, Django noob here. How do I write a view function that can modify database records without changing the html on the screen? Also, from a best-practices standpoint, is there any reason I shouldn't be attempting this? Cheers, DG -- You received this message because you are subsc

Re: modify db records without changing html

2010-03-24 Thread Django Grappelli
view, the user must make a page request. That will result in new data >> > > I guess he is talking about AJAX. > > -- > Omer Barlas > omer.bar...@gmail.com > > > -- > You received this message because you are subscribed to the Google Groups > "Django user

Re: modify db records without changing html

2010-03-24 Thread Django Grappelli
Put another way, how do execute a django function that simply does something with the data in my database? It seems that views are the only way to do this but perhaps I'm missing something. Thanks in advance for all the help. Best, DG On Wed, Mar 24, 2010 at 6:26 PM, Django Grap

download html django docs

2010-03-28 Thread Django Grappelli
hi everyone, quick question: is it possible to download the django docs in html somewhere so that i don't have to use the rest text ones when i'm developing offline? thanks in advance, dg -- You received this message because you are subscribed to the Google Groups "Django users&

Memcache

2007-06-23 Thread Grupo Django
very much. --~--~-~--~~~---~--~~ 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 more options, visit

Re: how to display an error

2007-08-09 Thread Grupo Django
allao" <[EMAIL PROTECTED]> wrote: > if I have a model with save method overrided to check if some values in my > model are ok, how can I display the field(s) with errors in red in admin > like django admin does when an error occur with that field(s)? > > -- > Lic.

Re: Multilingual site best practices

2007-08-10 Thread Grupo Django
in database, is not very useful. 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 more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

FileField / ImageField problem on update

2007-08-11 Thread Grupo Django
file I'm uploading instead the oldone, so I can't access the old file to delete it. Is this a bug or it works like this? How can I solve this problem? I thought even creating a custom procedure in the database (postgre) but I have never done it before, and I prefer to have all the code in

Dynamic default value in models

2007-08-15 Thread Grupo Django
ho is actually creating the content? e.g. author = models.CharField( maxlength=100, default=username) Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Dynamic default value in models

2007-08-15 Thread Grupo Django
I think I found the answer here: http://www.b-list.org/weblog/2006/11/02/django-tips-auto-populated-fields Grupo Django ha escrito: > Hello, I'm writing an application for publishing news, one of the > fields is: > author = models.CharField( maxlength=100) > > I wan

db-api optimization

2007-08-20 Thread Grupo Django
ard to postgre 8.3 with full-text in the core) --~--~-~--~~~---~--~~ 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

Re: db-api optimization

2007-08-21 Thread Grupo Django
--~--~~ 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 more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

modpython and python2.5

2007-08-28 Thread Grupo Django
This is not a django related problem, but I thought that maybe someone could help me. I have a Debian 4 server with apache2, modpython 3.3., python2.4 and python2.5 PYthon 2.4 is required by Debian to solve some dependency problem, I have just installed python2.5 and made it the default

Reutilizing views

2007-08-29 Thread Grupo Django
myview data = myview(request,False) Is this ok? Perhaps there is a better way of doing it with django. Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: modpython and python2.5

2007-08-29 Thread Grupo Django
d to recompile your apache/mod-python. When you > > compile the mod-python you'll need ro inform the python path > > that you want to use. > > > Grupo Django escreveu: > > > > This is not a django related problem, but I thought that maybe someone > >

Re: Reutilizing views

2007-08-29 Thread Grupo Django
d "Passing extra options to > view > functions in url_dispatch.txt). > > Here's a quick rewrite for the records: > > def myview(request, *args, **kwargs): > if kwargs['returnHttp']: ># do stuff here >... > > Cheers, > > Etienne

Re: Reutilizing views

2007-08-29 Thread Grupo Django
; Hash: SHA1 > > You're welcome, and thanks for the Spanish tip.. > > (I thought entrada was the appropriate word for front door, > but my Spanish skills arent very sharp..) > > Have to go catch a bus now.. =] > > Gracias, > Etienne > > On Wed, 29 Aug 2007

Multilingual text in db

2008-01-12 Thread Grupo Django
IMHO Internationalization is useless if there is no support for multilingual translations in the database. I've seen different approaches like Django Multilingual ( http://code.google.com/p/django-multilingual/ ) and transdb ( http://code.google.com/p/transdb/ ), but I have no idea wh

Re: Multilingual text in db

2008-01-14 Thread Grupo Django
On 13 ene, 01:24, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Jan 12, 2008 11:04 PM, Grupo Django <[EMAIL PROTECTED]> wrote: > > > > > IMHO Internationalization is useless if there is no support for > > multilingual translations in the dat

How it's ugettext_noop() used?

2008-01-15 Thread Grupo Django
I can't understand how django.utils.translation.ugettext_noop() is used for translation, could someone give me an example please? Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

Re: How it's ugettext_noop() used?

2008-01-15 Thread Grupo Django
in time, such as when the string is presented to the user. > > Grupo Django wrote: > > I can't understand how django.utils.translation.ugettext_noop() is > > used for translation, could someone give me an example please? > > > Thank you! Yes I read that, but still

Internationalization

2008-01-15 Thread Grupo Django
? Thank you. --~--~-~--~~~---~--~~ 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

Re: Internationalization

2008-01-16 Thread Grupo Django
the > fact that adding to the .po file is not enough -- you will need to > compile the .po file and restart the Django application. Translations > get loaded only once when the application/server process starts up. > > If your menu doesn't change at all, you could just add the &

Re: Internationalization

2008-01-16 Thread Grupo Django
this is the reason I think that it's better to keep translations in the po file (if possilbe) I don't have translations in the db. --~--~-~--~~~---~--~~ 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 more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Internationalization

2008-01-16 Thread Grupo Django
trada.nombre), _(entrada.nombre)) > > 3. Lastly, in your .po file, add your translations by hand. For > example: > > msgid "DB Text String" > msgstr "Translated Text String" > > msgid "DB Text String2" > msgstr "Translated Text String2&q

Apache & lighthttpd configuration

2008-01-24 Thread Grupo Django
Thank you. --~--~-~--~~~---~--~~ 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 more options, visit

Cache problem with language

2008-02-02 Thread Grupo Django
y_on_headers(my_view, 'Cookie') but not working at all. the cache doesn't difference the language. Any idea? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Form as table

2008-02-20 Thread Django-fan
Hi All, Is there a way in Django to generate webforms from a simple Database table so that we can "submit" the user inputs to update a database table. In other words, I would like to create a webform on an existing database table. Thanks

Optimizing code for a query

2008-03-04 Thread Grupo Django
Hi, I need to optimize some code related to django db api. Imagine a model like this: class Languages( models.Model ): name = models.CharField( max_length=255 ) ... class Object ( models.Model ): name = models.CharField( max_length=255 ) languages = models.ManyToManyField

  1   2   3   4   5   6   7   8   9   10   >