<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user">
    <title>gmane.comp.python.django.user</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141397"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141396"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141395"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141394"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141393"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141392"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141391"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141390"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141389"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141388"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141387"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141386"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141385"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141384"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141383"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141382"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141381"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141380"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141379"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.django.user/141378"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141397">
    <title>django connect alternate database.</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141397</link>
    <description>&lt;pre&gt;hi,

I have a situation.  currently i have one default django 's database.
but, i wound like to connect to mssql/other database.
- how can i get connected to ms-sql/other database?
- is it we have to create class in models? the database is for read only.
Hope able to get the information.

Regards,
MH

&lt;/pre&gt;</description>
    <dc:creator>Min Hong Tan</dc:creator>
    <dc:date>2012-05-26T04:18:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141396">
    <title>Re: How to call a correct version of python when multiple ones are installed?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141396</link>
    <description>&lt;pre&gt;python2.7 manage.py etc.

On Fri, May 25, 2012 at 11:07 AM, Mohan Boddu &amp;lt;bmohan.boddu&amp;lt; at &amp;gt;gmail.com&amp;gt;wrote:




&lt;/pre&gt;</description>
    <dc:creator>Gerald Klein</dc:creator>
    <dc:date>2012-05-25T21:32:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141395">
    <title>How to call a correct version of python when multiple ones are installed?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141395</link>
    <description>&lt;pre&gt;Hello,

I am very new to python and django. My question is,  since django works on 
python version more than 2.5 and if I am having multiple versions of python 
say 2.4 and 2.6, now how can I call django with the correct version of 
python. Is there any way to do that.

Any help would be appreciated.

Thank you,
Mohan Boddu.

&lt;/pre&gt;</description>
    <dc:creator>Mohan Boddu</dc:creator>
    <dc:date>2012-05-25T16:07:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141394">
    <title>[Django Gig - Sacramento/Bay Area, CA] Help make Django/FOSS a success for independent/local grocery retail</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141394</link>
    <description>&lt;pre&gt;I can read this list and the docs all I want, but there's no substitute for 
experienced code review and pair programming.

*So we, the Sacramento Natural Foods Co-op, are seeking a (preferably 
local) Django guru to help bring best practices to our in-house software 
development.

We have a small I.T. department with one full-time developer and are trying 
to liberate our internal systems using Free Software and Python/Django.  As 
a co-operative, we believe in local/community investment and sharing, which 
is why we are trying to empower in-house staff with custom software and 
tools.  We also hope to share our software with the broader grocery retail 
industry, at some point.  

We have been using Django for about a year for two projects, and are about 
to start a third.  We need someone to help provide support to our in-house 
developer 5-15 hours per week through on-site or remote pair programming 
and other means of collaboration to insure that we are building the best 
Django apps possible.

The curre&lt;/pre&gt;</description>
    <dc:creator>Tony Schmidt</dc:creator>
    <dc:date>2012-05-25T19:12:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141393">
    <title>Re: How to setup Python 2.7 and Virtualenv on a shared host with no root access?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141393</link>
    <description>&lt;pre&gt;I forgot to say something important. In order to make such changes 
permanent you will need to insert in the END of you ~/.bash_profile the 
following commands:

export WORKON_HOME=~/Envs
source ~/python/bin/virtualenvwrapper.sh


Em sábado, 12 de maio de 2012 07h29min39s UTC-3, Dan Santos escreveu:

&lt;/pre&gt;</description>
    <dc:creator>darwin31</dc:creator>
    <dc:date>2012-05-25T16:58:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141392">
    <title>Re: loop over model ids ? possible ?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141392</link>
    <description>&lt;pre&gt;On Thu, 24 May 2012 23:19:16 -0700 (PDT), doniyor
&amp;lt;doniyor.v.j&amp;lt; at &amp;gt;googlemail.com&amp;gt; declaimed the following in
gmane.comp.python.django.user:


This initializer is useless as...


... you just used the name for the loop index ...


...and the first value you attempt to retrieve is "0"(I'm not
familiar with any DBMS that uses 0 as a value for an autoincrement
primary key field; furthermore, looping over the /count/ of records is
erroneous -- since primary keys do not have to be contiguous if there
have been deletions in the database)...


...and which also makes this increment operation void...

&lt;/pre&gt;</description>
    <dc:creator>Dennis Lee Bieber</dc:creator>
    <dc:date>2012-05-25T14:36:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141391">
    <title>Re: Can't add groups in the admin interface</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141391</link>
    <description>&lt;pre&gt;P.S. Adding permissions to each user individually works (and those
permissions are not ignored), and the database validates correctly
according to "django-admin validate".

&lt;/pre&gt;</description>
    <dc:creator>Kevin Cole</dc:creator>
    <dc:date>2012-05-25T14:28:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141390">
    <title>Can't add groups in the admin interface</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141390</link>
    <description>&lt;pre&gt;Hi,

I'm using Django 1.3 with the "stock" admin interface. No customizations.  
In the Site Administration, I can add new users. However, if I try to add a 
group I get the Add Group screen, with the fields for name and selection of 
permissions, and the three save buttons at the bottom ("Save and add", 
"Save and edit", "Save").  After filling out the form, and clicking any of 
the saves I end up at:

ValueError at /admin/auth/group/add/ 

'Group' instance needs to have a primary key value before a many-to-many relationship can be used.

 Request Method: POST  Request URL: 
http://.../resources/admin/auth/group/add/  Django Version: 1.3.1  Exception 
Type: ValueError  Exception Value: 

'Group' instance needs to have a primary key value before a many-to-many relationship can be used.

 Exception Location: /usr/lib/python2.7/dist-packages/django/db/models/fields/related.py 
in __init__, line 493  Python Executable: /usr/bin/python  Python Version: 
2.7.3  Python Path: 

['/usr/lib/python2.7',
 '/usr/lib/pyt&lt;/pre&gt;</description>
    <dc:creator>Kevin Cole</dc:creator>
    <dc:date>2012-05-25T14:21:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141389">
    <title>Re: How to get News by category? - GET method</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141389</link>
    <description>&lt;pre&gt;The query string parameters in your URL need to be in key=value format, such as http://127.0.0.1:8000/news/?category=music

Sent from my iPhone

On May 25, 2012, at 6:01 AM, enemybass &amp;lt;dominikan999&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:


&lt;/pre&gt;</description>
    <dc:creator>Jonathan D. Baker</dc:creator>
    <dc:date>2012-05-25T13:42:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141388">
    <title>Re: How to popup a window from admin site from the admin table's cell html content?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141388</link>
    <description>&lt;pre&gt;You need to be more specific, because the code you have already seems to do 
what you ask. What is your problem?

On Monday, May 21, 2012 5:51:21 AM UTC+2, Aditya Sriram M wrote:

&lt;/pre&gt;</description>
    <dc:creator>francescortiz</dc:creator>
    <dc:date>2012-05-25T13:18:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141387">
    <title>Re: derived fields and getattr</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141387</link>
    <description>&lt;pre&gt;On Fri, May 25, 2012 at 6:42 AM, bruno desthuilliers
&amp;lt;bruno.desthuilliers&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

Like I said in my original post, I didn't write this app. I'm new at
this client, and I'm just tweaking it. It is a field on the screen
that the user can select (from a list of data base columns), and
that's how it get passed into the python code (as field_name).


NP. There's always more to learn.


The way this app is structured, they are 2 different classes. I could
put the mapping in a database table, or create a method in the
database object's class (i.e. the table that both use) that has the
dict and provides the mapping. Yeah, that's the ticket! Thanks for
getting my brain going.

&lt;/pre&gt;</description>
    <dc:creator>Larry Martell</dc:creator>
    <dc:date>2012-05-25T12:56:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141386">
    <title>Re: derived fields and getattr</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141386</link>
    <description>&lt;pre&gt;
Obviously - the attribute name is then "Delta", not self.field_name
(which is rather a misleading name since it's really an sql clause,
not a field name).


Sorry, that's not always the case for peoples posting here.


You can eventually define the dict in one place and use it from both,
but once again it's hard to say without seeing the real code :-|

&lt;/pre&gt;</description>
    <dc:creator>bruno desthuilliers</dc:creator>
    <dc:date>2012-05-25T12:42:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141385">
    <title>Re: derived fields and getattr</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141385</link>
    <description>&lt;pre&gt;On Fri, May 25, 2012 at 2:24 AM, bruno desthuilliers
&amp;lt;bruno.desthuilliers&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

Yes, I realize that.


When I first did:

extra(select={"Delta" : self.field_name})

Then getattr(self.field_name) failed with "object has no attribute
'col1-col2'". When I changed it to:

extra(select={self.field_name : self.field_name})

Then the getattr worked.


Yes, I've been writing python for years too, and I realize I can put
in a dict. But it still has to be in 2 places - the code that
implements the first query that generates the chart, and the code that
does the drill down query when they click on a point. The drill down
code does not get passed the display name 'Delta' just the field as
'col1-col2'

&lt;/pre&gt;</description>
    <dc:creator>Larry Martell</dc:creator>
    <dc:date>2012-05-25T12:32:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141384">
    <title>Django Badges app</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141384</link>
    <description>&lt;pre&gt;Hi,


I have been looking at the Badges app in django - 
https://github.com/eldarion/brabeion/blob/master/docs/usage.txt and while 
it seems to be good at tracking the user's badges It doesn't have an easy 
way to associate images with badges. 

I tried inheriting the BadgeDetails class and using it as levels to the 
extended Badge class but I still am confused as to how to use it properly 
in an app. 

class BadgeIcon(models.Model):

    name = models.CharField(max_length=100)
    description = models.TextField()
    image = models.ImageField(upload_to="badges/", blank=True) 

class ExtraBadgeDetails(BadgeDetail):
    def __init__(self, badgeIcon):
self.name= badgeIcon.name
self.description = badgeIcon.description
self.image = badgeIcon.image 

class PointsBadge(Badge):

    def __init__(self, levels = None):
self.levels = levels

One registers the badges at the class level as badges.register(PointsBadge) 
and I don't really see any way to do it with object instances or how to 
create badges with icons when&lt;/pre&gt;</description>
    <dc:creator>Pratik Mandrekar</dc:creator>
    <dc:date>2012-05-25T12:23:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141383">
    <title>How to get News by category? - GET method</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141383</link>
    <description>&lt;pre&gt;Hi. How to get News by category name? My try: http://dpaste.com/752094/
If I click category name in template, nothing happens -&amp;gt; in web
browser is url: http://127.0.0.1:8000/news/category?music

Thanks!

&lt;/pre&gt;</description>
    <dc:creator>enemybass</dc:creator>
    <dc:date>2012-05-25T12:01:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141382">
    <title>Re: I need a django application to embed a chat javascript in admin site</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141382</link>
    <description>&lt;pre&gt;I solve that using OpenFire ( An XMPP Server with chat , multiuser-chat, 
etc ..) and Strophe (a javascript library for the browser).

Good luck Ariel

El miércoles, 23 de mayo de 2012 16:37:42 UTC+2, Ariel escribió:

&lt;/pre&gt;</description>
    <dc:creator>jmolmo</dc:creator>
    <dc:date>2012-05-25T07:48:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141381">
    <title>Re: Sorl permissions issues in media directory</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141381</link>
    <description>&lt;pre&gt;Sorry I won't be very helpful on that one, I started again from scratch and 
it's working ok. I'm not even sure it was related to Sorl.

On Thursday, May 24, 2012 4:52:11 PM UTC+2, Chet Pilley wrote:

&lt;/pre&gt;</description>
    <dc:creator>Bastian</dc:creator>
    <dc:date>2012-05-25T11:12:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141380">
    <title>Re: track change</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141380</link>
    <description>&lt;pre&gt;
Python has a strong support for computed attributes[1], and offers a
builtin "property" type for the most common use cases[2]. This let you
turn a plain attribute into a computed one (using a getter/setter
pair) without breaking client code. What I had in ming was to turn
your "skill" fields into computed attributes (using either properties
or a custom descriptor) to track change.

Now having looked at django-audit implementation (http://
code.google.com/p/django-audit/), I think their approach using the
__setattr__ hook[3] would be better here. Here's a very Q&amp;amp;D and naïve
implementation example:


import datetime

class SkillChange(models.Model):
    player = models.ForeignKey(Player)
    skill = models.CharField()
    value = models.IntegerField()
    date = models.DatetimeField()

class Player(models.Model):
   # your fields definitions here
   skill_x = models.IntegerField()
   skill_y = models.IntegerField()

   # which fields we want to track
   _tracked_fields = ['skill_x', 'skill_y']

   def __init&lt;/pre&gt;</description>
    <dc:creator>bruno desthuilliers</dc:creator>
    <dc:date>2012-05-25T10:05:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141379">
    <title>Re: sorl.thumbnail is not working</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141379</link>
    <description>&lt;pre&gt;The MEDIA_ROOT is set up correctly: MEDIA_ROOT = '/home/myusername/
myprojectname/uploads/'
And the images are stored here: /uploads/files/img/foldername/file.jpg
The relative path, /uploads/files/img/wahanda/name.jpg works..but not
like this:
{% thumbnail result.object.image_path  "50x50" crop="80% top" as im %}
  &amp;lt;img src="{{ im.url }}"&amp;gt;
{% endthumbnail %}



On May 24, 5:20 pm, krzysiekpl &amp;lt;krzysie...&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Oana Salageanu</dc:creator>
    <dc:date>2012-05-25T09:24:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141378">
    <title>Re: loop over model ids ? possible ?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141378</link>
    <description>&lt;pre&gt;Cool, thanks, i will play with the advices given by you guys.. I will post the solution that has worked for my prob.. 

Thanks thanks 

&lt;/pre&gt;</description>
    <dc:creator>doniyor</dc:creator>
    <dc:date>2012-05-25T08:44:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.django.user/141377">
    <title>Re: derived fields and getattr</title>
    <link>http://permalink.gmane.org/gmane.comp.python.django.user/141377</link>
    <description>&lt;pre&gt;
On May 24, 11:50 pm, Larry Martell &amp;lt;larry.mart...&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

The QuerySet.extra() "select" params is a mapping of
"attribute_name":"SQL clause", so you could just write:

  extra(select={"Delta" : "col1 - col2"})

of for somethin more generic:

  extra(select={self.display_name: self.sql_clause})

or if more than one extra field involved:


  extra(select=self.extra_fields)


where extra_fields = {"displayname1":"sql clause 1", "displayname2",
"sql clause 2"}



???




If you need display names that you don't want to use as field names
(or if you want translatable display names etc), you can maintain a
mapping of fieldname:display_name and then just do a dict lookup, ie:

    display_name = display_names.get(field_name, field_name)


Can't really help more here without seeing the actual code, but from
years of experience with Python, I really doubt you have to write
something as ugly as the above snippet ;)

HTH

&lt;/pre&gt;</description>
    <dc:creator>bruno desthuilliers</dc:creator>
    <dc:date>2012-05-25T08:24:52</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.django.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.django.user</link>
  </textinput>
</rdf:RDF>

