Re: Cannot resolve keyword into field
On Apr 24, 1:45 am, "Jason McVetta" <[EMAIL PROTECTED]> wrote: > > TypeError: Cannot resolve keyword 'book' into field > > This is a long-standing, well-known bug that apparently no one (including > me) knows how to fix. > > Any time one defines a ManyToMany relationship, then calls all() on that > relationship from a script, a "cannot resolve keyword into field" error > results. The problem involves some deep voodoo about how and when modules > are imported, which is why it occurs only in scripts but not in the admin > interface or the manage.py shell. If you google around the django-users > archives and bug tickets, you'll see some (imho truly hideous) hacks for > working around it by mangling your import statements. Jason, I have observed that if I add the directory containing my django project to PYTHONPATH, this problem doesn't come (something similar was mentioned in one of the tickets). For example if my project resides in /home/ram/mysite-, adding this line at the top of my script make it work- sys.path.append('/home/ram') May be, that can provide some hint. -Ram --~--~-~--~~~---~--~~ 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: Linux web server + MSSQL database
Check out this link http://www.time-travellers.org/shane/howtos/MS-SQL-Express-Python-HOWTO.html You need some tweaks Regards Alok Tiwari On Apr 25, 2:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > All, > > I have Django running on a Linux machine, and I want to connect to a > MSSQL database running on a windows machine. Is there any progress on > making this possible using pymssql or something else? I have been > searching around the documentation and haven't found anything. Thanks > for the help. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
+=+ Want To Be An Astronaut =+=
*if you want to be an Astronaut of NASA please read this guaid* http://information.100stuff.com/want-to-be-astronaut/ Thanks Rania --~--~-~--~~~---~--~~ 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: select_related() does not span apps?
My mistake -- I had unintentionally set 'null=True' in the ForeignKey definition. -Paul On Apr 24, 1:08 pm, Paul Smith <[EMAIL PROTECTED]> wrote: > I have a model defined with a ForeignKey that points to another model > in a different installed app. select_related() does not seem to follow > the relationship and retrieve the additional object data in a single > database query with additional join statements. (I inspected the 'sql' > item in the appropriate django.db.connection.queries item to verify.) > > Is this the expected behavior? Have others managed to get this to > work? > > Cheers, > -Paul --~--~-~--~~~---~--~~ 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: Help with queryset
Looks like my earlier reply got dropped. Sorry if this ends up being a double post. Check out the Model API docs: http://www.djangoproject.com/documentation/db-api/#isnull You want to do something like: Year.objects.filter(event__isnull=False) - Robin On Apr 24, 11:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'll apologize in advance, as I just know this is a dumb question... > > I have queryset=Year.objects.all() > > But I want to limit that years in which event is not Null. > > I'm assuming I want something like Year.objects.filter(event != Null) > > but I'm unsure about the syntax. --~--~-~--~~~---~--~~ 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: Need guidance on multiple domain site configuration.
Awesome. Thanks Doug. That's precisely what I've been working towards over the last couple of hours, but didn't know about search paths in Postgres. I was trying to handle it within Django by prefixing a "SCHEMA_PREFIX" to the table name on my own app models (of which there aren't many). Unfortunately it didn't work anyway. Django's escaping of the SQL arguments means you end with a table called "SCHEMA_PREFIX.model" in the public schema. I'll do it your way. Nick On Apr 25, 1:29 pm, Doug Van Horn <[EMAIL PROTECTED]> wrote: > On Apr 24, 5:59 pm, Nick Tidey <[EMAIL PROTECTED]> wrote: > > > Thanks for the help Robin. I'm new to Python also, so wasn't too sure > > about how to reuse the apps. > > > I'll see if I can't use triggers to propagate the user information > > between databases. Unless there's a better way? > > You could install your common django applications (auth, sites, > sessions, etc.) into the public schema. Then give each domain their > own schema in which to install their tables (say, foo_tld). Then, set > each domain database user's "search_path" equal to "foo_tld,public". > Give each domain their own settings.py and their own database user, > and you should be good to go. > > That would let you share the common tables across the different > projects, but each domain/schema/database user would have their own > set of tables and data. > > I've done this before in PostgreSQL. I don't know how MySql would > handle something like this. > > FWIW, > > doug. --~--~-~--~~~---~--~~ 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: paginator.has_next_page error?
On 4/24/07, Moses Ting <[EMAIL PROTECTED]> wrote: > Has anyone run into errors with the paginator.has_next_page function? > It seems to be returning false even though I am certain that there's a > next page. Could you post some more details about the situation you're encountering? Without knowing things like how many objects you have, how many you're asking for per page, etc., it's hard to guess at the problem. Off the top of my head, the only explanation that occurs is that you might be running into an "orphan"; IIRC a patch went in a while back which will munge the pagination a bit if the last page would have only one object. So, for example, if you had sixteen objects, displaying five per page, you'd only get three pages -- instead of a fourth page with one object, the third page would be the last and would have six objects. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ 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: import problem
Thanx Michael for your attention. I'm using todays build from svn trunk. I started project from the beginning to eliminate possibility that its something wrong with my code. when I run "python manage.py runserver" everything seams OK. when I hit any page I got error I mentioned Yes I'm runnung it as the same user as shell. I tried to run it as root and it comes the same. It starts to desesperate me. After tomorrow I got meeting with my client to show him my project :¿ and I'm stacked with this. Help would be greatly appreciated On Apr 24, 3:34 pm, Michael K <[EMAIL PROTECTED]> wrote: > On Apr 24, 5:41 am, kamil <[EMAIL PROTECTED]> wrote: > > > Hi. I'm using developement built-in django server. > > Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25) [GCC 4.1.2 > > (Ubuntu 4.1.2-0ubuntu4)] on linux2 > > on fresh Kubuntu Feisty (7.04) > > Kamil, > > I'm assuming you're just running "python manage.py runserver" for your > command line? > > Are you using Django 0.96, or the svn trunk? Sorry to add questions, > I was hoping it would be a simple problem of too many Python binaries > on a system. :) > > Are you getting an exception on the server output? > > And lastly, are you running the server as the same user you're running > the python shell? > > Thanks, > > Michael --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Linux web server + MSSQL database
All, I have Django running on a Linux machine, and I want to connect to a MSSQL database running on a windows machine. Is there any progress on making this possible using pymssql or something else? I have been searching around the documentation and haven't found anything. Thanks for the help. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Need guidance on multiple domain site configuration.
Hello all. I'm creating a CMS/e-commerce Django project for a client which will ultimately be used to handle content for three different domains. In terms of sharing of resources: - content will not be shared between sites - public templates will differ between sites - the administration interface is the same for all sites (a customised version of the Django administration interface) - each site will use the same group of Django apps - the client would like administration user accounts to be shared across all sites - I would like each site to at least use a separate set of tables; preferably separate databases I'm new to Django and I've read up on Django's site framework; read about various Apache configurations, searched for information on multiple database connections in Django, etc. There's a lot to take in. I'm hoping someone can suggest a way to handle this. I'm looking to host the sites on a WebFaction shared account. Thanks Nick --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
QUESTION .-
Hi all : I am newbie in django world. I developed an application not using admin model with version 0.96 and using postgresql as RBDMS .- I wish that all users will use my django application log into postgres database with your own user ( obviously these accounts will be created ) instead user defined in settings.py of my site .- Is possible to do this and if this is affirmative how i can to do it ? Thanks in advance .- Best regards .- -- Jorge Dominguez --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
paginator.has_next_page error?
Has anyone run into errors with the paginator.has_next_page function? It seems to be returning false even though I am certain that there's a next page. 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 -~--~~~~--~~--~--~---
Re: Help with queryset
Not a dumb question, but one that has been answered in the Django docs. Have a look at http://www.djangoproject.com/documentation/db-api/#isnull It sounds like you want: Year.objects.filter(event__isnull=False) - Robin On Apr 24, 11:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'll apologize in advance, as I just know this is a dumb question... > > I have queryset=Year.objects.all() > > But I want to limit that years in which event is not Null. > > I'm assuming I want something like Year.objects.filter(event != Null) > > but I'm unsure about the syntax. --~--~-~--~~~---~--~~ 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: Please help, strange errors crashing my site
Stupid Google groups seems to have trashed my last response, now I have to type it all in again. Apologies if this is a duplicate. Anyway, for one explanation, see description on access rights of Apache user in mod_wsgi documentation at: http://code.google.com/p/modwsgi/wiki/ApplicationIssues Although not mod_python the issue is exactly the same. In mod_python, only practical way of solving it without modifying Apache startup scripts is to use PythonImport directive to reference module containing: import os os.environ['PYTHON_EGG_CACHE'] = '/some/directory' Where '/some/directory' is writable to user that Apache runs as. When using PythonImport you need to name the Python interpreter that your Django application is running in, usually the name of the VirtualHost under mod_python. If you can't work it out, use PythonInterpreter to explicitly name what interpreter you want Django instance to use and use same name with PythonImport. See mod_python documentation for more details on these directives. Graham On Apr 24, 4:15 pm, [EMAIL PROTECTED] wrote: > Hi, > > I have a django site that just launched using mod_python, apache2, and > redhat. It's a medium sized site, everything worked great for a couple > days, yesterday I suddenly got error after error in my apache logs > such as the ones below. This happens even though there are no code > changes. The site stays down until I restart reload apache and the > site works again. But today the site went down and I got very similar > errors. The old site used to have different urls, could people/bots > trying to retrieve old urls be confusing django? > > Thanks, any help would be greatly appreciated, > > Leon > > [Mon Apr 23 19:09:18 2007] [error] [client 66.249.65.230] > PythonHandler django.core.handlers.modpython: ExtractionError: Can't > extract file(s) to egg cache\n\nThe following error occurred while > trying to extract file(s) to the Python egg\ncache:\n\n [Errno 13] > Permission denied: '/.python-eggs'\n\nThe Python egg cache directory > is currently set to:\n\n /.python-eggs\n\nPerhaps your account does > not have write access to this directory? You can\nchange the cache > directory by setting the PYTHON_EGG_CACHE environment\nvariable to > point to an accessible directory.\n > > [Mon Apr 23 19:11:31 2007] [error] [client 24.215.224.50] > PythonHandler django.core.handlers.modpython: File "/usr/lib/ > python2.3/site-packages/django/core/handlers/base.py", line 35, in > load_middleware\nraise exceptions.ImproperlyConfigured, > 'Middleware module "%s" does not define a "%s" class' % (mw_module, > mw_classname) > [Mon Apr 23 19:11:31 2007] [error] [client 24.215.224.50] > PythonHandler django.core.handlers.modpython: ImproperlyConfigured: > Middleware module "django.contrib.sessions.middleware" does not define > a "SessionMiddleware" class --~--~-~--~~~---~--~~ 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: import problem
On Apr 24, 5:41 am, kamil <[EMAIL PROTECTED]> wrote: > Hi. I'm using developement built-in django server. > Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25) [GCC 4.1.2 > (Ubuntu 4.1.2-0ubuntu4)] on linux2 > on fresh Kubuntu Feisty (7.04) > Kamil, I'm assuming you're just running "python manage.py runserver" for your command line? Are you using Django 0.96, or the svn trunk? Sorry to add questions, I was hoping it would be a simple problem of too many Python binaries on a system. :) Are you getting an exception on the server output? And lastly, are you running the server as the same user you're running the python shell? Thanks, Michael --~--~-~--~~~---~--~~ 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: Rendering a template according to model type
On Tue, 2007-04-24 at 10:49 -0700, Jeremy Teale wrote: > I'm struggling with the template system. > > I have a Display model. This model will render its elements, which are > of different model types. They are of type Addressbook, Schedule, > Whiteboard, and so on. > > I'm trying to figure out how I can loop in the Display template and > call each element's respective template tag to render the snippet. > > For instance, > {% for e in elements %} >{{ e.call_respective_model_rendering_function }} > {% endfor %} > > elements is a list of model objects of differing type The standard object-oriented solution here is that the rendering function would have the same name for each model. It sounds like you are getting into difficulties because you need to call a different function each time. If a group of functions serve exactly the same functional purpose, give them the same name! > I've been playing with inclusion tags, but what would be the proper > way to determine the element's model type and then call the proper > method? > > Here's an example of one of the inclusion tags I wrote to give a > better idea of what I've been trying to do. > > @register.inclusion_tag('addressbook/display.html') > def show_addressbook(addressbook): > contacts = addressbook.contact_set.all() > return {'name': addressbook.name, 'contacts': contacts} Since you probably want to use different display templates in each case, I think the inclusion tag shortcut isn't going to help you here. Instead, you could create a tag that passed the model instance as a parameter. Based on the type of that instance, you can then lookup the right template fragment to populate and the right arguments to use. I would probably write this so that the template tag function just called another function based on the type of the argument. Each of these other functions can then do something like this: param_dict = {} template_name = 'addressbook/display.html' t = Template(template_name) return t.render(Context(param_dict)) Of course, you can compact that a lot more if you want to and refactor it in a number of different ways (e.g. the model-specific functions return a template name and param dict and the main template tag function loads the template, renders it to a string and then returns the rendered result. Remember, a template tag just returns a string back to the template framework, so you can happily use things like Template.render(...) to create those strings. That is all the inclusion tag is doing under the covers, for example. Regards, Malcolm --~--~-~--~~~---~--~~ 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: Named URL patterns to use prefix?
On Tue, 2007-04-24 at 15:21 +, Ryan Kanno wrote: > I'm just curious if named URL patterns will be able to use the prefix > given (or if there's any reason not to) ie, > > urlpatterns += patterns('my_pattern', > url(r'^(?P[\d]+)/$', 'details', > name="my-details"), > > Right now, I have to pass into url the following: > > urlpatterns += patterns('my_pattern_is_useless_right_here', > url(r'^(?P[\d]+)/$', > 'my_pattern.details', name="my-details"), > > because of the code in django.conf.urls.defaults.py. I just picked up > python a few weeks ago (so I'm no expert by any means) but it seems as > though the code just checks to see if it's a list or tuple, then > applies prefix to the url created, but if it's just a url, then it > appends it right along. I haven't stared at python enough to figure > out how to inject prefix into a url passed in as such, but I figure it > wouldn't be that big a deal. :) It's a bug. There's an open ticket about it. It's probably something I'll end up fixing today if I get chance, but if not, it should be fixed in the near future. Regards, Malcolm --~--~-~--~~~---~--~~ 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: Need guidance on multiple domain site configuration.
I think everything could be accomplished by creating a separate settings.py file for each site, and pointing to them in your virtual hosts. By installing your apps outside the project dirs, but still in the PYTHON_PATH, you can refer to the same app dirs in all settings files. The only problem I can see is if you specify a different DB in each settings.py, you'll need to create the same admin accounts in each. -Robin On Apr 24, 7:22 am, Nick Tidey <[EMAIL PROTECTED]> wrote: > Hello all. > > I'm creating a CMS/e-commerce Django project for a client which will > ultimately be used to handle content for three different domains. > > In terms of sharing of resources: > - content will not be shared between sites > - public templates will differ between sites > - the administration interface is the same for all sites (a customised > version of the Django administration interface) > - each site will use the same group of Django apps > - the client would like administration user accounts to be shared > across all sites > - I would like each site to at least use a separate set of tables; > preferably separate databases > > I'm new to Django and I've read up on Django's site framework; read > about various Apache configurations, searched for information on > multiple database connections in Django, etc. There's a lot to take > in. > > I'm hoping someone can suggest a way to handle this. > > I'm looking to host the sites on a WebFaction shared account. > > Thanks > Nick --~--~-~--~~~---~--~~ 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: QUESTION .-
It isn't immediately available through the django setup - it expects that all accesses to the database from any given application will happen from a single userid that you (typically) specify in settings.py. There's nothing from stopping you opening your own cursors and doing what you want with other connections, but the framework focuses on using just one. At least at this point. -joe On 4/24/07, Jorge Dominguez <[EMAIL PROTECTED]> wrote: > > > Hi all : > I am newbie in django world. I developed an application not using admin > model > with version 0.96 and using postgresql as RBDMS .- > I wish that all users will use my django application log into postgres > database with your own user ( obviously these accounts will be created ) > instead user defined in settings.py of my site .- > Is possible to do this and if this is affirmative how i can to do it ? > Thanks in advance .- > Best regards .- > > -- > Jorge Dominguez > > > > --~--~-~--~~~---~--~~ 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: Need guidance on multiple domain site configuration.
On Apr 24, 5:59 pm, Nick Tidey <[EMAIL PROTECTED]> wrote: > Thanks for the help Robin. I'm new to Python also, so wasn't too sure > about how to reuse the apps. > > I'll see if I can't use triggers to propagate the user information > between databases. Unless there's a better way? > You could install your common django applications (auth, sites, sessions, etc.) into the public schema. Then give each domain their own schema in which to install their tables (say, foo_tld). Then, set each domain database user's "search_path" equal to "foo_tld,public". Give each domain their own settings.py and their own database user, and you should be good to go. That would let you share the common tables across the different projects, but each domain/schema/database user would have their own set of tables and data. I've done this before in PostgreSQL. I don't know how MySql would handle something like this. FWIW, doug. --~--~-~--~~~---~--~~ 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: Cannot resolve keyword into field
On 4/24/07, Jason McVetta <[EMAIL PROTECTED]> wrote: > Ben posted patches for the management shell and for mod_python. The case > where I am experiencing this bug is running a script from the command line > (or from cron). I tried including his work around code ... > at the beginning of my script, but it did not help the problem. Jason, I've posted a modified script of what I'm using internally for a script that had encountered this problem. [0] I'll be curious to hear if it this helps you out at all. - Ben [0] http://dpaste.com/hold/9014/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
apache with mod python and vista
Not sure which is the culprit but I am trying to setup mod_python with apache on my vista home computer. When I tried and access http://localhost/mysite I always get 404 error. Looking at the logs it is expecting mysite to be under C:/ Program Files/Apache Group/Apache2/htdocs even though I have modified the document root in the httpd config file. I am using the same config file from an windows xp machine and that works fine. BTW, when I access http://localhost that brings up the apache page Any direction to help resolve this issue would be greatly appreciated. Thanks, Jeff --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
IndexError at /admin/auth/user/1/- String index out of range & TypeError at /admin/auth/user/1/ - 'int' object is unsubscriptable
Hello, For one of my models, I did the following thing : """ Civil state """ class Civilstate(models.Model): CIVILITY_CHOICES = ( ('single', 'Célibataire'), ('taken', 'Marié'), ) who = models.ForeignKey(User, unique=True, verbose_name='Personne', edit_inline=models.STACKED, num_in_admin=1, max_num_in_admin=1) photo = models.ImageField('Photo', height_field=80, width_field=80, upload_to="photos", blank=True) street = models.CharField('Adresse 1', maxlength=100, core=True) street_bis = models.CharField('Adresse 2', maxlength=100, core=True, blank=True) zipcode = models.IntegerField('Code postal', maxlength=5, core=True) city = models.CharField('Ville', maxlength=100, core=True) phone = models.CharField('Téléhone', maxlength=20, core=True) mobile = models.CharField('Portable', maxlength=20, core=True, blank=True) civility = models.CharField('Statut matrimonial', maxlength=20, choices=CIVILITY_CHOICES, core=True) birthdate = models.DateField('Date de naissance', core=True) children = models.IntegerField('Nombre d\'enfants', core=True, blank=True) def __str__(self): return self.city class Admin: list_display = ('who',) list_filter = ['who',] search_fields = ['who',] class Meta: verbose_name = "Etat civil" verbose_name_plural = "Etats civils" When I edit the form in Django admin (running vanillia 0.96 version) in a standalone mode, it works well. When I edit and save from "User" form and if it's empty, it fails with the following traceback which I do not understand : Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/ decorators.py" in _checklogin 55. return view_func(request, *args, **kwargs) File "/usr/lib/python2.5/site-packages/django/views/decorators/ cache.py" in _wrapped_view_func 39. response = view_func(request, *args, **kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/ main.py" in change_stage 329. new_object = manipulator.save(new_data) File "/usr/lib/python2.5/site-packages/django/db/models/ manipulators.py" in save 165. if rel_new_data[related.opts.pk.name][0]: IndexError at /admin/auth/user/1/ string index out of range If I fullfil the form in a standalone mode and then try to edit and save it from User form, I have the following traceback : Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/ decorators.py" in _checklogin 55. return view_func(request, *args, **kwargs) File "/usr/lib/python2.5/site-packages/django/views/decorators/ cache.py" in _wrapped_view_func 39. response = view_func(request, *args, **kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/ main.py" in change_stage 329. new_object = manipulator.save(new_data) File "/usr/lib/python2.5/site-packages/django/db/models/ manipulators.py" in save 172. if f.core and not isinstance(f, FileField) and f.get_manipulator_new_data(rel_new_data, rel=True) in (None, ''): File "/usr/lib/python2.5/site-packages/django/db/models/fields/ __init__.py" in get_manipulator_new_data 289. return new_data.get(self.name, [self.get_default()])[0] TypeError at /admin/auth/user/1/ 'int' object is unsubscriptable If I remove the edit_inline propertie, User form works well. Any idea ? Regards, Nicolas --~--~-~--~~~---~--~~ 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: Django newbie: lost in custom managers
> cursor.execute(""" > SELECT sports_players.city_id, sports_players.team_id, > count(sports_players.team_id) FROM sports_players, > sports_mastercitylist > WHERE sports_players.city_id=sports_mastercitylist.id > AND sports_mastercitylist.cityslug = %s > GROUP BY 1, 2 > ORDER BY 1""" % city) One of the common ways of doing this is described at http://www.djangoproject.com/documentation/db-api/#extra-select-none-where-none-params-none-tables-none where you can use the extra() call of a model to tack on an extra bit in your select clause. Thus, you might use something like (adjusting for conventions of class-names being capitalized) items = MasterTeamList.objects.select_related().extra( select={ 'num_players' : """ SELECT Count(*) FROM sports_players sp WHERE sp.team = sports_masterteamlist.id """}) This automatically returns your list of teams, but they each have an extra attribute of "num_players" to give the number of players on that team. Theoretically, you might even be able to order_by('num_players') if there was reason to. This might obviate the need for the PlayerCounts class, especially as you already seem to have this information tracked elsewhere (the Players have a "team" attribute linking them, so there's not much need to duplicate this). Things might get a bit hairier if it was a M2M relationship (one player can play on more than one team), but then it just involves bringing in the linking table. Since you have a query object-set returned from this, you can then do things like city = items.get(pk=city_id) One other small note...if you stick with your existing scheme, you may have a SQL injection vulnerability with your SQL, as you don't use the standard DB quoting mechanism. Instead of execute("""SELECT ... %s ...""" % city) you should use execute("""SELECT ... ? ...""", (city, )) and let the execute() call take the second parameter (a tuple of values to replace) and use a "?" as the placeholder. I don't know if my top suggestion will solve your problem, but that's at least how I'd do what I understand you're trying to do. And it keeps you a bit closer to the Django ORM which has some added benefits and understandability. -tim --~--~-~--~~~---~--~~ 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: Possible race condition in base.py
On Tue, 2007-04-24 at 21:06 +1200, Enrico de Klerk wrote: > Hi there, > > I've noticed a possible race condition in django/db/models/base.py. > > When a file field is saved in the _save_FIELD_file function it first > checks whether a file with the same name already exists, and then adds > underscores to the filename until it generates a unique name and then > saves the file. > > # If the filename already exists, keep adding an underscore to the name > of > # the file until the filename doesn't exist. > while os.path.exists(os.path.join(settings.MEDIA_ROOT, > filename)): > try: > dot_index = filename.rindex('.') > except ValueError: # filename has no dot > filename += '_' > else: > filename = filename[:dot_index] + '_' + > filename[dot_index:] > > # Write the file to disk. > setattr(self, field.attname, filename) > > full_filename = self._get_FIELD_filename(field) > fp = open(full_filename, 'wb') > fp.write(raw_contents) > fp.close() > > It looks like there may be a timing window where if two files with the > same name are saved at roughly the same time, the first one will be > overwritten. Shouldn't this use something like mkstemp that does this > atomically? The problem is that mkstemp doesn't give you a filename that looks anything like the original. Even if you control the prefix and suffix, there's still a large random block in the filename. Your analysis is correct, though -- it is vulnerable to a race. Worth thinking about if there's something we can do that's even less likely to collide. Regards, Malcolm --~--~-~--~~~---~--~~ 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: Help with queryset
> I have queryset=Year.objects.all() > > But I want to limit that years in which event is not Null. > > I'm assuming I want something like Year.objects.filter(event != Null) I presume you mean Year.objects.filter(event__isnull = False) which you can read about at http://djangoproject.com/documentation/db-api/#isnull -tim --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Sanjaya performs Besame Mucho on Live with Regis and Kelly
Sanjaya performs Besame Mucho on Live with Regis and Kelly http://funnyvideoz.teenwag.com/showvideo/4718 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Named URL patterns to use prefix?
I'm just curious if named URL patterns will be able to use the prefix given (or if there's any reason not to) ie, urlpatterns += patterns('my_pattern', url(r'^(?P[\d]+)/$', 'details', name="my-details"), Right now, I have to pass into url the following: urlpatterns += patterns('my_pattern_is_useless_right_here', url(r'^(?P[\d]+)/$', 'my_pattern.details', name="my-details"), because of the code in django.conf.urls.defaults.py. I just picked up python a few weeks ago (so I'm no expert by any means) but it seems as though the code just checks to see if it's a list or tuple, then applies prefix to the url created, but if it's just a url, then it appends it right along. I haven't stared at python enough to figure out how to inject prefix into a url passed in as such, but I figure it wouldn't be that big a deal. :) --~--~-~--~~~---~--~~ 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: Implementing OpenID in your Django app
I like more your aproach (because mix more naturaly with Django I think)... The code look good but the comments...if my english is bad my russian is inexistent! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How does django interact with memcached?
Hello list, I was wondering if someone can provide some insight into how django interacts with memcached. More specifically, how it interacts with multiple memcached instances. My settings.py has this in it: CACHE_BACKEND = 'memcached:// 10.1.1.1:11211;10.1.1.2:11213;10.1.1.3:11213/' I'm assuming that requests are round-robin'd between the three addresses. How does django behave if one of the memcached servers goes down? What's the failover time for django to realise that it's trying to talk to a non-responsive server? Would it be beneficial to make the memcached cluster HA by using a virtual IP daemon like wackamole [1]? In this case django would never see a dead memcached instance, but it might be directed to a different physical box on each subsequent request. I could see this being a problem if the cache requests are somehow tied into the address of the memcached instance being queried. Thanks in advance, Matt Bennett. [1] http://www.backhand.org/wackamole/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Help with queryset
I'll apologize in advance, as I just know this is a dumb question... I have queryset=Year.objects.all() But I want to limit that years in which event is not Null. I'm assuming I want something like Year.objects.filter(event != Null) but I'm unsure about the syntax. --~--~-~--~~~---~--~~ 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: Need guidance on multiple domain site configuration.
Thanks for the help Robin. I'm new to Python also, so wasn't too sure about how to reuse the apps. I'll see if I can't use triggers to propagate the user information between databases. Unless there's a better way? On Apr 25, 3:02 am, robin_percy <[EMAIL PROTECTED]> wrote: > I think everything could be accomplished by creating a separate > settings.py file for each site, and pointing to them in your virtual > hosts. By installing your apps outside the project dirs, but still in > the PYTHON_PATH, you can refer to the same app dirs in all settings > files. The only problem I can see is if you specify a different DB in > each settings.py, you'll need to create the same admin accounts in > each. > > -Robin > > On Apr 24, 7:22 am, Nick Tidey <[EMAIL PROTECTED]> wrote: > > > Hello all. > > > I'm creating a CMS/e-commerce Django project for a client which will > > ultimately be used to handle content for three different domains. > > > In terms of sharing of resources: > > - content will not be shared between sites > > - public templates will differ between sites > > - the administration interface is the same for all sites (a customised > > version of the Django administration interface) > > - each site will use the same group of Django apps > > - the client would like administration user accounts to be shared > > across all sites > > - I would like each site to at least use a separate set of tables; > > preferably separate databases > > > I'm new to Django and I've read up on Django's site framework; read > > about various Apache configurations, searched for information on > > multiple database connections in Django, etc. There's a lot to take > > in. > > > I'm hoping someone can suggest a way to handle this. > > > I'm looking to host the sites on a WebFaction shared account. > > > Thanks > > Nick --~--~-~--~~~---~--~~ 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: Log out problems
Please see the solution in my blog : http://pragmaticobjects.org/index.php?itemid=23 Let me know if that doesn't work for you. Kevin Hoang Le On Apr 11, 4:39 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 4/11/07, jeffhg58 <[EMAIL PROTECTED]> wrote: > > > The only problem I am having is when Ilogoutand either hit the back > > button or go to my home > > page from the browser it does not give me the login prompt window. > > This is kind of tricky and exposes a pseudo-bug in Django. > > What's happening is this: > > 1. At the time the request starts, you're logged in, and so the > AuthenticationMiddleware sets 'request.user' so that it returns your > User object, which in turn returns True on an 'is_authenticated()' > check. > 2. At the time that you hit the 'login_required' decorator, you > haven't yet hit the view code which logs youout, so you pass that > check and don't get redirected to a login form. > 3. When the 'logout' view logs youout, it doesn't reset > 'request.user', so any template rendering which uses an > 'is_authenticated()' check will get confused (this is the bug). > 4. When the response comes back to your browser, it includes cookie > headers which make the logout persist. > > So if you use the 'logout' view and return a template directly from > it, the template may "think" you're logged in even though you're not > (you can't actually do anything which requires authentication, it's > just that 'request.user' wasn't updated before the template rendered). > If you instead have 'logout' redirect to another URL, you'll see > everything working intuitively, because that involves a new request > which startsoutwith 'request.user' as an AnonymousUser. > > Hitting the back button probably causes the behavior you're seeing > because some browsers don't actually hit the server on a "back" and > instead reload the page from cache, which means you'll see the same > thing you saw when you were logged in previously. > > The confusing aspects of this can be handled by having Django reset > 'request.user' on authentication changes (it also doesn't do so on > login, which can be somewhat counterintuitive when using things like > the registered comments model), so I'll file a ticket for that. > > -- > "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ 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: Django newbie: lost in custom managers
[EMAIL PROTECTED] wrote: > cursor.execute(""" > SELECT sports_players.city_id, sports_players.team_id, > count(sports_players.team_id) FROM sports_players, > sports_mastercitylist > WHERE sports_players.city_id=sports_mastercitylist.id > AND sports_mastercitylist.cityslug = %s > GROUP BY 1, 2 > ORDER BY 1""" % city) try changing that last part to "Order by 1 """, [city]) http://www.djangoproject.com/documentation/model-api/#executing-custom-sql --B --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
select_related() does not span apps?
I have a model defined with a ForeignKey that points to another model in a different installed app. select_related() does not seem to follow the relationship and retrieve the additional object data in a single database query with additional join statements. (I inspected the 'sql' item in the appropriate django.db.connection.queries item to verify.) Is this the expected behavior? Have others managed to get this to work? Cheers, -Paul --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Admin interface, ImageField and models.TABULAR
Hi guys! I have the following models: class Product(models.Model): data = models.TextField() class Admin: pass class Photo(models.Model): product = models.ForeignKey(Product, edit_inline=models.TABULAR) file = models.ImageField(upload_to='', core=True) description = models.CharField(blank=True) My goal is permit the user to add a product and some set of pictures at same time. My problem is that using a file field and django gets confused about it. When I add and object, django insert 3 images, if the filename is missing, it gets a blank string. When I try to edit this object (product), django can't add any more photo. I think on a way to have a checkbox that controls the removal of the photo, if it isn't checked, I don't remove the photo, if it is checked, I remove the photo. Is there a way to accomplish such task? Did someone get troubles like this? Thanks in advance! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Admin interface, ImageField and models.TABULAR
Hi guys! I have the following models: class Product(models.Model): data = models.TextField() class Admin: pass class Photo(models.Model): product = models.ForeignKey(Product, edit_inline=models.TABULAR) file = models.ImageField(upload_to='', core=True) description = models.CharField(blank=True) My goal is permit the user to add a product and some set of pictures at same time. My problem is that using a file field and django gets confused about it. When I add and object, django insert 3 images, if the filename is missing, it gets a blank string. When I try to edit this object (product), django can't add any more photo. I think on a way to have a checkbox that controls the removal of the photo, if it isn't checked, I don't remove the photo, if it is checked, I remove the photo. Is there a way to accomplish such task? Did someone get troubles like this? --~--~-~--~~~---~--~~ 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: Generic Template
On Apr 24, 10:58 am, Moses Ting <[EMAIL PROTECTED]> wrote: > Hello DJ Users, > > I'm trying to write a generic template where I can auto-populate a > html table depending on which model I use. So for example the view > does something like this: > > def genericView(request, model): > context = {} > > fields = model._meta.fields > fieldNames = [] > for field in fields: > fieldNames.append(field.get_attname()) > context.update({'fields': fieldNames}) > > records = model.objects.all() > context.update({'records': records}) > > return render_to_response('template.html', context) > > The problem I'm running into occurs when I'm trying to dynamically > retrieve the field value of a particular record. So let's say I want > to retrieve the values from all the fields of all the records, the > template would look something like this: > > template.html- > > {% for record in records %} > {% for field in fields %} > {{record.field}} > > There's no way to do this because {{record.field}} does not work. > Nesting the curly brackets like {{record.{{field}}} also is no good. > > Any suggestions? I think you're trying to do too much in the template. Instead of passing the two separate lists, you could create a 2D list and pass it instead. For example, def genericView(request,model): fieldNames = [field.attname for field in model._meta.fields] record_rows = [] for rec in model.objects.all(): cur_rec = [ getattr(rec,f_name) for f_name in fieldNames] record_rows.append(cur_rec) context = {'record_rows': record_rows} return render_to_response('test/template.html', context) ) -Template.html--- {% for record in record_rows %} {% for field in record %} {{ field }} {% endfor %} {% endfor %} --~--~-~--~~~---~--~~ 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: Django and file uploads question
Thanks Robin, I checked my permissions and they were messed up. Does any one have any idea what that error is from. I am at work right now, but tonight I am going to dig in and see if I can find it, but if anyone has any ideas they would be much appreciated. Thanks Craig --~--~-~--~~~---~--~~ 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: "mpm-prefork" vs. "mpm-worker"
On Apr 24, 9:22 pm, Filipe Correia <[EMAIL PROTECTED]> wrote: > Hi, > > I think the following thread may help > you:http://groups.google.com/group/django-users/browse_frm/thread/22a6d00... Except that no one has still yet explained why the page: http://www.djangoproject.com/documentation/modpython/ says to use prefork MPM and not to use the worker MPM. If there are valid reasons and you can describe specific problems that the worker MPM creates, please speak up. Otherwise, the page should really be changed by someone with the authority and standing to do it with the Django project developers, to reflect that there aren't any reasons why the worker MPM can't be used. :-( Personally I think that the myth that the worker MPM cannot be used has come up purely because people were using ancient versions of mod_python (ie., 3.1.X), or hit certain limitations in Django when using the worker MPM and thought it was the worker MPM rather than seeing it was an issue with Django that can also affect prefork MPM albeit maybe at a lessor rate of incidence. Some of the limitations that might have contributed to this belief are the fact that Django sessions don't use locking across the whole life of the session object as used by a request handler either within a process or across processes when there are multiple web server processes. This means that two separate request handlers wanting to use the same session object at the same time can interfere with each other and screw up data saved within the session database. An application making heavy use of AJAX techniques and the worker MPM might have a tendency to expose this problem more than when worker is being used. Next limitations is that Django has no way to restrict the session cookie to a specific path within a site. This means that if you are running two Django sites within the same virtual host under Apache, they can interfere with each other unless you set the SESSION_COOKIE_NAME value differently for each. The mod_python documentation doesn't mention this. Django really needs to add support for a SESSION_COOKIE_PATH value that can be used to set the path within a site the session cookie applies to. When using the WSGI adapter, it should also use SCRIPT_NAME properly and perhaps automatically use that as the SESSION_COOKIE_PATH. Another possible cause of problems is someone trying to run multiple Django instances within the one virtual host and not using the PythonInterpreter directive to force them to run in separate Python sub interpreters. This would be an issue because of the fact that Django uses global environment variables from os.environ to specify where the settings file is. This issue is only going to get worse when people using WSGI adapter think they can mount multiple Django instances within one host, especially when mod_python isn't being used and there is no means to separate them. I've also seen some speculation previously, but don't know the outcome, that caching by some database clients was causing problems under mod_python because different child processes were seeing slightly different views of data from the database. What was the final outcome on this issue? Thus, there are various issues with Django that might come up when using Apache and I reckon that someone problem hit them when using the worker MPM and perhaps wrongly thought it was the worker MPM causing the problems when it wasn't. If there truly was a problem with the worker MPM then there should also be problems with running Django on Windows as it works the same as the worker MPM except that there is only one child process and not multiple child processes like there can be on UNIX systems when using the worker MPM. Graham --~--~-~--~~~---~--~~ 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: Django newbie: lost in custom managers
[EMAIL PROTECTED] wrote: > Mr. Fordham, if you are ever within 500 miles of St. Petersburg > Florida, I owe you beer or dinner or my firstborn or something. That > tiny little change is all I needed. It works. Thank you so much for > your help. > I actually live w/in 500 miles (Savannah, Ga) but saying "thanks" is enough 8) --B --~--~-~--~~~---~--~~ 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: Cannot resolve keyword into field
On 4/24/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > I now have to sit down and work out a proper solution. That will take > time and I don't have that at the moment because I have other > priorities. Of course, anybody else should feel free to dive in and > write a fix, too, but that hasn't happened so far. I would be happy to write a fix; but unfortunately, I do not yet understand the bug well enough to do so. Until then, anybody being bitten by the problem might want to try Ben > Slavin's workaround patch in #1796. Ben posted patches for the management shell and for mod_python. The case where I am experiencing this bug is running a script from the command line (or from cron). I tried including his work around code # XXX: (Temporary) workaround for ticket #1796: force early loading of all # models from installed apps. from django.db.models.loading import get_models loaded_models = get_models() at the beginning of my script, but it did not help the problem. This is a bit of an oversimplification, since it occurs more with > reverse relationships and it's not "any time", it's only sometimes and > depends on the code (model names, etc), OS, installation details and > which deployment method you're running under. Typically the reverse to > what you describe occurs: a problem like this is more likely to show up > in the admin interface or when running under mod_python. Interesting -- maybe it's because I am running from svn rather than a release, but I personally have not experienced this bug in the admin interface. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Rendering a template according to model type
I'm struggling with the template system. I have a Display model. This model will render its elements, which are of different model types. They are of type Addressbook, Schedule, Whiteboard, and so on. I'm trying to figure out how I can loop in the Display template and call each element's respective template tag to render the snippet. For instance, {% for e in elements %} {{ e.call_respective_model_rendering_function }} {% endfor %} elements is a list of model objects of differing type I've been playing with inclusion tags, but what would be the proper way to determine the element's model type and then call the proper method? Here's an example of one of the inclusion tags I wrote to give a better idea of what I've been trying to do. @register.inclusion_tag('addressbook/display.html') def show_addressbook(addressbook): contacts = addressbook.contact_set.all() return {'name': addressbook.name, 'contacts': contacts} Can anyone help me, please? --~--~-~--~~~---~--~~ 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: Django and file uploads question
On Apr 24, 9:14 am, "Craig Kuhns" <[EMAIL PROTECTED]> wrote: > Does any one have any idea what that error is from. I am at work > right now, but tonight I am going to dig in and see if I can find it, > but if anyone has any ideas they would be much appreciated. > Craig, It sounds like the bug described here: http://code.djangoproject.com/ticket/2923 . What version of Django are you using? - Robin --~--~-~--~~~---~--~~ 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: Cannot resolve keyword into field
On Apr 22, 7:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Can you post the exact code throwing the error, and copy paste your > exact model code related to the error? The code is exactly the same as I wrote in my OP. # models.py from django.db import models # Create your models here. class Author(models.Model): name = models.CharField(maxlength=100) class Book(models.Model): title = models.CharField(maxlength=100) authors = models.ManyToManyField(Author) # test.py, this is used to retrieve author records of a particular book. import os if not os.environ.has_key('DJANGO_SETTINGS_MODULE'): os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' import settings from test.models import * b = Book.objects.get(id=1) for a in b.authors.all(): print a > > It sounds like you have something like the following: > > .filter(book= > > where it should be something like > > .filter(someobject__book > > But it's hard to tell w/out seeing the code. > I am trying to get authors of a particular book, so b = Book.objects.get(id=1) # Get some book # Get the authors for a in b.authors.all(): print a However, as Jason mentioned below, it seems to be an unsolved bug. :( -Ram --~--~-~--~~~---~--~~ 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: audit trail support
On 4/24/07, robin_percy <[EMAIL PROTECTED]> wrote: > > What about doing both? Write a pre_save record indicating the > operation about to be attempted. And a post_save indicating the > success of the operation, using a unique identifier to identify the > pair. Then if the post_save gets out of sync, you have a record of > transactions that may be at fault. I was considering something like that. But would it require two additional tables for every audited model? Or I could have just one table for writing post_save confirmation -- but how to create an identifier that is unique across several tables? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
QUESTION .-
Hi all : I am newbie in django world. I developed an application not using admin model with version 0.96 and using postgresql as RBDMS .- I wish that all users will use my django application log into postgres database with your own user ( obviously these accounts will be created ) instead user defined in settings.py of my site .- Is possible to do this and if this is affirmative how i can to do it ? Thanks in advance .- Best regards .- -- Jorge Dominguez --~--~-~--~~~---~--~~ 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: Select widget choices
El mar, 24-04-2007 a las 14:28 +1000, Malcolm Tredinnick escribió: > On Mon, 2007-04-23 at 17:26 +0100, Christian Markwart Hoeppner wrote: > > El lun, 23-04-2007 a las 21:22 +1000, Malcolm Tredinnick escribió: > > > On Mon, 2007-04-23 at 12:17 +0100, Christian Markwart Hoeppner wrote: > > > > Hi there! > > > > > > > > When explicitly defining a field to use a Select widget, how do I assign > > > > choices to the dropdown? > > > > > > > > My last attempt: > > > > age = forms.IntegerField(label=_('Age'), widget=widgets.Select, > > > > choices=range(25,90)) > > > > > > You can pass in an instance for the widget parameter, it doesn't have to > > > be a class. So passing in Select(choices = ) should work. > > > > > > Regards, > > > Malcolm > > > > > Doesn't work. When passing a list or tuple, or range(), it complains > > about unpacking a non-iterable. > > I just noticed that your "choices" specification is wrong, by the way. > The choices sequence is a sequence of (value, name) pairs. Not just a > list. It's the same as the "choices" for models. > > Regards, > Malcolm > I just noticed that it needs an iterable ot two-tuples. I wonder if there's a way to automate the creation of such a sequence, when I need a numbered sequence. Something like "for i in range(): list.push((i,i))" or so? I'm pretty new to python :) --~--~-~--~~~---~--~~ 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: Django newbie: lost in custom managers
Mr. Fordham, if you are ever within 500 miles of St. Petersburg Florida, I owe you beer or dinner or my firstborn or something. That tiny little change is all I needed. It works. Thank you so much for your help. Matt On Apr 24, 12:15 pm, "Bryan L. Fordham" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > cursor.execute(""" > > SELECT sports_players.city_id, sports_players.team_id, > > count(sports_players.team_id) FROM sports_players, > > sports_mastercitylist > > WHERE sports_players.city_id=sports_mastercitylist.id > > AND sports_mastercitylist.cityslug = %s > > GROUP BY 1, 2 > > ORDER BY 1""" % city) > > try changing that last part to "Order by 1 """, [city]) > > http://www.djangoproject.com/documentation/model-api/#executing-custo... > > --B --~--~-~--~~~---~--~~ 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: Super long response times/load times: Looking for some guidance on alleviating the issue
That is abysmal performance, though. If your dev server performs okay (i.e. it is not the way you have written your index view) you should probably look for another provider. -rob On Apr 24, 6:44 am, Roboto <[EMAIL PROTECTED]> wrote: > RESOLVED. > > I am on Shared Hosting with GrokThis.Net. The issue is, Debian > organizes the most used processes in cache and keeps the least used > out of it. When the site gains a lot of activity the site moves > relatively quick, when there are no hits for hours Linux has to fetch > my stuff and it takes up to 5 seconds apparently.. lol. > > In any event, a dedicated server would definitely solve this issue, > that or I start getting a lot more hits than I currently am. > > Rob > > On Apr 16, 10:08 am, "Roboto" <[EMAIL PROTECTED]> wrote: > > > ahh =P I'll try. I'm running with Grokthis.net as server right now, > > and I'm relatively new to understanding apache, I'll see what I can > > do. > > > On Apr 16, 9:52 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > > > > On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote: > > > > > serving directly from apache. > > > > Well, I'm out of ideas then :) Probably, you should start putting up > > > some of your more relevant config information (Apache config files), > > > because you haven't given too much information to go on. > > > > Jay P. --~--~-~--~~~---~--~~ 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: Debugging django applications with PyScripter
Has anyone given this a try yet? Does it work well? On Apr 23, 8:50 pm, PyScripter <[EMAIL PROTECTED]> wrote: > PyScripter is a free and open-source Python Integrated Development > Environment (IDE). The recently released version 1.8.5 supports the > debugging of django applications. You can download this version > fromhttp://pyscripter.googlepages.com/and can read about django debugging > athttp://pyscripter.googlepages.com/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 -~--~~~~--~~--~--~---
Django newbie: lost in custom managers
Just when I was getting comfortable with simple views and templates, I've walked into a wall on my first attempt to do something more complicated. Any help anyone can give me will have my undying respect. Let's say my application is a site for youth sports. I have a table of cities, teams and players. I've written a simple view that gives a user a list of cities they can see team and player information for. What I want to have happen when the users clicks the city is for them to be taken to a page that lists each team in that city with a count of the number of players on each team. This is a simple group and count in SQL. So I've created a manager that is pretty much a http://www.djangoproject.com/documentation/model-api/#custom- managers">cut and paste job from the docs. The models and the custom manager I have look like this: class mastercitylist(models.Model): city = models.CharField(blank=True, maxlength=100) cityslug = models.SlugField(prepopulate_from=("city",)) class Admin: pass def get_absolute_url(self): return "http://127.0.0.1:8000/data/sports/cities/%s/"; % self.cityslug def __str__(self): return self.city class masterteamlist(models.Model): name = models.CharField(maxlength=150) name_slug = models.SlugField(prepopulate_from=('name',)) class Admin: pass def __str__(self): return self.name class players(models.Model): ... city = models.ForeignKey(mastercitylist) team = models.ForeignKey(masterteamlist) class Admin: pass class PlayerManager(models.Manager): def with_counts(self, city): from django.db import connection cursor = connection.cursor() cursor.execute(""" SELECT sports_players.city_id, sports_players.team_id, count(sports_players.team_id) FROM sports_players, sports_mastercitylist WHERE sports_players.city_id=sports_mastercitylist.id AND sports_mastercitylist.cityslug = %s GROUP BY 1, 2 ORDER BY 1""" % city) result_list = [] for row in cursor.fetchall(): counts = self.model(city_id=row[0], team_id=row[1]) counts.num_responses = row[2] result_list.append(counts) return result_list class PlayerCounts(models.Model): team = models.ForeignKey(masterteamlist) city = models.ForeignKey(mastercitylist) objects = PlayerManager() Here's the line from my urls.py specific to this problem: (r'^data/sports/cities/(?P\w*)/$', 'data.sports.views.teamcountview'), And here's the view: def teamcountview(request, city): teamcountlist = PlayerCounts.objects.with_counts(city) return render_to_response('sports/teamcountview.html', {'teamcountlist': teamcountlist}) Now, when I put this all together and go to data/sports/cities/ clearwater I get IndexError: list index out of range. Now, if I take the SQL I wrote and run it in MySQL with a valid cityslug in the where clause, it works. I get a list of teams in that city and a count of the players on those teams. Which leads me to believe that where this is going wrong is that I'm not passing the cityslug context from the url to the custom manager correctly, and I'm getting nothing back. But I have no idea where I've gone wrong, or how to fix it. I've blindly stumbled to get to this point. If you see where I've gone wrong, or can tell me a different/easier way than I've cobbled together, I would greatly appreciate it. Matt Matthew Waite www.mattwaite.com --~--~-~--~~~---~--~~ 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: "mpm-prefork" vs. "mpm-worker"
Hi, I think the following thread may help you: http://groups.google.com/group/django-users/browse_frm/thread/22a6d00972359381/ Cheers, Filipe --~--~-~--~~~---~--~~ 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: Super long response times/load times: Looking for some guidance on alleviating the issue
RESOLVED. I am on Shared Hosting with GrokThis.Net. The issue is, Debian organizes the most used processes in cache and keeps the least used out of it. When the site gains a lot of activity the site moves relatively quick, when there are no hits for hours Linux has to fetch my stuff and it takes up to 5 seconds apparently.. lol. In any event, a dedicated server would definitely solve this issue, that or I start getting a lot more hits than I currently am. Rob On Apr 16, 10:08 am, "Roboto" <[EMAIL PROTECTED]> wrote: > ahh =P I'll try. I'm running with Grokthis.net as server right now, > and I'm relatively new to understanding apache, I'll see what I can > do. > > On Apr 16, 9:52 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > > > On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote: > > > > serving directly from apache. > > > Well, I'm out of ideas then :) Probably, you should start putting up > > some of your more relevant config information (Apache config files), > > because you haven't given too much information to go on. > > > Jay P. --~--~-~--~~~---~--~~ 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: Debugging django applications with PyScripter
good news,first heard of it 2007/4/24, PyScripter <[EMAIL PROTECTED]>: > > > PyScripter is a free and open-source Python Integrated Development > Environment (IDE). The recently released version 1.8.5 supports the > debugging of django applications. You can download this version from > http://pyscripter.googlepages.com/ and can read about django debugging > at http://pyscripter.googlepages.com/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 -~--~~~~--~~--~--~---
Re: Redirect middleware
hi rob, i think you are on to something there. i should familiarise myself more with reg ex, certainly one of my weaknesses. basically what we want to match on is anything from the root_uri ("/") to the end of the path. so about/mydir/user1/ would be passed to our view for munging. i kind of thought that the django redirect would happen first so when a request comes in for /about/ the redirect would take it from there and send a redirect to /about/mydir/ for example. unfortunately, the redirect is only invoked after all other options fail. so we must work around the django architecture for redirects. thanks for your help. yours, steve On Apr 23, 8:07 pm, oggie rob <[EMAIL PROTECTED]> wrote: > > (r'^%s(?P[^?#]*)' % (root_url), 'apps.cms.views.render'), > > Note that '?' is a special character, but more importantly your > expression probably matches both the initial request and the > redirected one. Check it out:>>> r = re.compile('/about/(?P[^?#]*)') > >>> r.match('/about/?user1') > > <_sre.SRE_Match object at 0x4d420 r.match('/about/mydir/user1/') > > <_sre.SRE_Match object at 0x4d3a0> > > You should escape the ? and perhaps sure up the expression by > eliminating slashes. e.g. the following *might* be okay, something > similar almost certainly will be.>>> r = > re.compile(r'/about/\?(?P[^\?#/]*)') > >>> r.match('/about/mydir/user1/') > >>> r.match('/about/?user1') > > <_sre.SRE_Match object at 0x4d420> > > -rob --~--~-~--~~~---~--~~ 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: import problem
Hi. I'm using developement built-in django server. Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 on fresh Kubuntu Feisty (7.04) On Apr 23, 4:01 pm, Michael K <[EMAIL PROTECTED]> wrote: > On Apr 22, 4:38 pm, kamil <[EMAIL PROTECTED]> wrote: > > > Hi. I installed Django on Python 2.5 > > and I receive following error on the built in server: > > > Exception Type: ImportError > > Exception Value:No module named utils.text > > Exception Location: /usr/lib/python2.5/site-packages/django/core/ > > urlresolvers.py in _get_urlconf_module, line 178 > > > however utils.text exist in Django directory and importing in shell > > works fine. > > Please help. > > Kamil, > > Can you paste the header you get when you start your Python > interpreter? > > This almost sounds to me like you have more than one version of Python > installed, or your library path settings are incorrect somewhere > (probably in your web server configuration). > > Are you using mod_python to host the project? > > Lots of details missing before we can help much. > > Thanks, > > Michael --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Possible race condition in base.py
Hi there, I've noticed a possible race condition in django/db/models/base.py. When a file field is saved in the _save_FIELD_file function it first checks whether a file with the same name already exists, and then adds underscores to the filename until it generates a unique name and then saves the file. # If the filename already exists, keep adding an underscore to the name of # the file until the filename doesn't exist. while os.path.exists(os.path.join(settings.MEDIA_ROOT, filename)): try: dot_index = filename.rindex('.') except ValueError: # filename has no dot filename += '_' else: filename = filename[:dot_index] + '_' + filename[dot_index:] # Write the file to disk. setattr(self, field.attname, filename) full_filename = self._get_FIELD_filename(field) fp = open(full_filename, 'wb') fp.write(raw_contents) fp.close() It looks like there may be a timing window where if two files with the same name are saved at roughly the same time, the first one will be overwritten. Shouldn't this use something like mkstemp that does this atomically? Cheers Enrico de Klerk --~--~-~--~~~---~--~~ 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: Newforms and Hidden Fields - verifying POST data
Simon, thanks for this post, it is beautifuly succint and comprehensive and is exactly what I was after. It has also enabled me to clean up my code, if I pickle all the date, I don't need to create a dynamic field form object, 2 fields are all that are required (as SmileyChris pointed out). A much better solution and, as you say, it can be used in lots of places. Many thanks, Tim --~--~-~--~~~---~--~~ 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: Implementing OpenID in your Django app
Simon Willison wrote: > Hi all, > > I've just released the first version of an OpenID consumer package for > Django. The idea is to make it ridiculously easy to add OpenID > consumer support to any Django application - and hence allow users of > OpenID to sign in without having to set up a new username and > password. Interesting! Some time ago I've implemented OpenID in my tutorial-like forum app but I took a different approach ([1], link in Russian only, unfortunately). Instead of populating request with '.openid' property I've implemented an auth backend that creates unique Django users and associates them with OpenID. This way users can login with OpenID and then be a first-class citizens in the system (use admin for example). [1]: http://softwaremaniacs.org/blog/2007/03/25/cicero-openid-hcard/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Link Direct to Order Page
Link Direct to Order Pagejavascript and html available http://www.jdoqocy.com/placeholder-2056041?target=_top&mouseover=N --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Link Direct to Order Page
Link Direct to Order Pagejavascript and html available http://www.jdoqocy.com/placeholder-2056041?target=_top&mouseover=N --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---