<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2093540987347026662</id><updated>2012-01-27T11:08:30.652-08:00</updated><title type='text'>News D</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default?start-index=101&amp;max-results=100'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>41428</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8196909478450027561</id><published>2012-01-27T10:34:00.000-08:00</published><updated>2012-01-27T10:35:13.401-08:00</updated><title type='text'>Problem with Django! Please help</title><content type='html'>please help me out! I&amp;#39;m not getting it! below are my codes:&lt;br&gt;In models.py:&lt;br&gt;class Login(models.Model):&lt;br&gt;    username=models.CharField(max_length=50)&lt;br&gt;    password=models.CharField(max_length=50)&lt;p&gt;    def __unicode__(self):&lt;br&gt;        return u&amp;quot;%s-%s&amp;quot; % (self.username, self.password)&lt;p&gt;class LoginForm(ModelForm):&lt;br&gt;    class Meta:&lt;br&gt;        model=Login&lt;br&gt;        fields=(&amp;#39;username&amp;#39;,&amp;#39;password&amp;#39;)&lt;br&gt;in my views.py:&lt;br&gt;from django.contrib import auth&lt;br&gt;from django.shortcuts import render_to_response&lt;br&gt;from django.http import HttpResponse, Http404&lt;br&gt;from django.template import RequestContext&lt;br&gt;from django.http import HttpResponseRedirect&lt;p&gt;def login_view(request):&lt;br&gt;    username=request.POST.get(&amp;#39;username&amp;#39;, &amp;#39;&amp;#39;)&lt;br&gt;    password=request.POST.get(&amp;#39;password&amp;#39;, &amp;#39;&amp;#39;)&lt;br&gt;    user=auth.authenticate(username=username, password=password)&lt;br&gt;    if user is not None and user.is_active:&lt;br&gt;        auth.login(request,user)&lt;br&gt;        return HttpResponseRedirect(&amp;quot;/homi/&amp;quot;)&lt;br&gt;    else:&lt;br&gt;        return render_to_response(&amp;#39;login.html&amp;#39;,&lt;br&gt;{&amp;#39;LoginForm&amp;#39;:LoginForm},context_instance=RequestContext(request))&lt;p&gt;def logout_view(request):&lt;br&gt;    auth.logout(request)&lt;br&gt;    return HttpResponseRedirect(&amp;quot;/logme/&amp;quot;)&lt;p&gt;in url.py&lt;br&gt;from django.contrib.auth.views import login, logout&lt;br&gt;(r&amp;#39;^accounts/login/$&amp;#39;, login_view),&lt;br&gt;(r&amp;#39;^accounts/logout/$&amp;#39;, login_view),&lt;p&gt;in my template:&lt;br&gt;{% extends &amp;quot;base_meek.html&amp;quot; %}&lt;br&gt;{% block body %}&lt;br&gt;&amp;lt;form action=&amp;quot;&amp;quot; method=&amp;quot;POST&amp;quot; /&amp;gt;&lt;br&gt;&amp;lt;table&amp;gt;&lt;br&gt;{{LoginForm}}&lt;br&gt;&amp;lt;/table&amp;gt;&lt;br&gt;&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Log In&amp;quot; /&amp;gt;&lt;br&gt;(% endblock %}&lt;p&gt;After creating all those codes. I tried to login with my password and&lt;br&gt;username, but if failed! So I added the username and password through&lt;br&gt;Django admin. So after adding it, I tried to login with with username&lt;br&gt;and password, it works!&lt;p&gt;My question is, is that how it&amp;#39;s suppose to be? if that&amp;#39;s the way it&lt;br&gt;should be, so it means I will be adding users manually before they can&lt;br&gt;login? What about other fields like, country, state etc in my&lt;br&gt;RegisterForm, will it be added automatically??&lt;br&gt;Am I doing something wrong? Please I need answers because django is&lt;br&gt;driving me crazy!!!&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8196909478450027561?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8196909478450027561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/problem-with-django-please-help.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8196909478450027561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8196909478450027561'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/problem-with-django-please-help.html' title='Problem with Django! Please help'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2620045967333803315</id><published>2012-01-27T10:29:00.001-08:00</published><updated>2012-01-27T10:29:41.034-08:00</updated><title type='text'>Re: saving in a view</title><content type='html'>On Fri, Jan 27, 2012 at 9:26 AM, MikeKJ &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:mike.jones@paston.co.uk"&gt;mike.jones@paston.co.uk&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;div class="gmail_quote"&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; I have 2 models Count is purely an incremental counter a model called Sale,&lt;br&gt; the reason for the Count models is to increment a reference for Sale and&lt;br&gt; other models&lt;br&gt; &lt;br&gt; In a view I get the latest sale and count then I want to save the incemented&lt;br&gt; count (number) to Count also save number to Sale&lt;br&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;First off, the instances of &amp;quot;0&amp;quot; at the end of the first two lines should be [0] (surrounded by square brackets), but I&amp;#39;m assuming that that&amp;#39;s an artifact of the email transport.&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Past that, your code doesn&amp;#39;t actually *do* anything, other than pull two objects out of the database, and save them again, unmodified. Let&amp;#39;s look at the method you&amp;#39;ve pasted, line by line:&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"&gt; customer = Sale.objects.all().order_by(&amp;#39;-id&amp;#39;).filter(email_address=email).distinct()[0]&lt;br&gt;this = Count.objects.all().order_by(&amp;#39;-id&amp;#39;)[0]&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This part retrieves two objects from the database. You may want to guard these two lines with an exception handler -- if there are no matching Sale objects, or if the Count table is empty, either of these lines could raise a KeyError.&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"&gt; &lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;number = this.number + 1&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;&lt;br&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;This line creates a new local variable called number, and assigns it the value of this.number + 1. It doesn&amp;#39;t do anything to the &amp;#39;this&amp;#39; object at all.&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"&gt; &lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;a = this.save(force_insert=True)&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;&lt;br&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;So this line forces &amp;#39;this&amp;#39; to be re-saved (remember, though, that it hasn&amp;#39;t been modified, so the save doesn&amp;#39;t really do anything). Model.save() doesn&amp;#39;t return anything, so &amp;#39;a&amp;#39; is assigned the value None.&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"&gt; &lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;ref = number&lt;br&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;reference = number&lt;br&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;name = &lt;a href="http://customer.name/" target="_blank" style="color:rgb(17,85,204)"&gt;customer.name&lt;br&gt; &lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;salutation = customer.salutation&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;&lt;br&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;Again, these just create some new local variables, but they don&amp;#39;t actually change your customer object at all, so this line:&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"&gt; &lt;span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"&gt;&lt;span class="Apple-style-span" style="font-family:arial;font-size:small;border-collapse:separate;color:rgb(0,0,0)"&gt;b = customer.save(force_update=True)&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Just forces a re-save of the unmodified customer object.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;quot;m not sure exactly what it is that you&amp;#39;re trying to do with this view, but I think that you are going to need some lines that actually update the &amp;#39;this&amp;#39; and &amp;#39;customer&amp;#39; object. You would do that like this:&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    this.number = this.number + 1&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;or&lt;/div&gt;&lt;div&gt;    customer.reference = number&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Then, when you save the objects (and just use &amp;quot;customer.save()&amp;quot;, the force_update=True isn&amp;#39;t really necessary), then the new values you have assigned will be saved in the database.&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-- &lt;/div&gt;&lt;/div&gt;Regards,&lt;br&gt;Ian Clelland&lt;br&gt;&amp;lt;&lt;a href="mailto:clelland@gmail.com" target="_blank"&gt;clelland@gmail.com&lt;/a&gt;&amp;gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2620045967333803315?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2620045967333803315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-saving-in-view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2620045967333803315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2620045967333803315'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-saving-in-view.html' title='Re: saving in a view'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5387016039099857892</id><published>2012-01-27T09:26:00.001-08:00</published><updated>2012-01-27T09:26:42.740-08:00</updated><title type='text'>saving in a view</title><content type='html'>I have 2 models Count is purely an incremental counter a model called Sale,&lt;br&gt;the reason for the Count models is to increment a reference for Sale and&lt;br&gt;other models&lt;p&gt;In a view I get the latest sale and count then I want to save the incemented&lt;br&gt;count (number) to Count also save number to Sale&lt;p&gt;customer =&lt;br&gt;Sale.objects.all().order_by(&amp;#39;-id&amp;#39;).filter(email_address=email).distinct()0&lt;br&gt;this = Count.objects.all().order_by(&amp;#39;-id&amp;#39;)0&lt;br&gt;number = this.number + 1&lt;br&gt;a = this.save(force_insert=True)&lt;br&gt;ref = number&lt;br&gt;reference = number&lt;br&gt;name = &lt;a href="http://customer.name"&gt;customer.name&lt;/a&gt;&lt;br&gt;salutation = customer.salutation&lt;br&gt;b = customer.save(force_update=True)&lt;p&gt;I know the field names are rubbish but can anyone spot where I am going&lt;br&gt;wrong please &lt;p&gt;--&lt;br&gt;View this message in context: &lt;a href="http://python.6.n6.nabble.com/saving-in-a-view-tp4343606p4343606.html"&gt;http://python.6.n6.nabble.com/saving-in-a-view-tp4343606p4343606.html&lt;/a&gt;&lt;br&gt;Sent from the django-users mailing list archive at Nabble.com.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5387016039099857892?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5387016039099857892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/saving-in-view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5387016039099857892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5387016039099857892'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/saving-in-view.html' title='saving in a view'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-3228228581377827686</id><published>2012-01-27T08:44:00.000-08:00</published><updated>2012-01-27T08:45:16.815-08:00</updated><title type='text'>Re: How do you pass dissimilar data from view to template?</title><content type='html'>If the data is presented as table, datatables is a really nice jquery &lt;br&gt;plugin for such stuff:&lt;p&gt;&lt;a href="http://datatables.net/"&gt;http://datatables.net/&lt;/a&gt;&lt;p&gt;On 27.01.2012 17:31, BillB1951 wrote:&lt;br&gt;&amp;gt; Thanks for the additional thought on this.  It is a much appreciated&lt;br&gt;&amp;gt; confirmation to me.  Last night I was torturing my brain over the&lt;br&gt;&amp;gt; logistics of what I had conceived, and by this morning I had pretty&lt;br&gt;&amp;gt; much concluded that I would have to go the route you are suggesting.&lt;br&gt;&amp;gt; Now I just have to find an existing solution ... or learn Javascript.&lt;br&gt;&amp;gt; --Bill&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Jan 27, 11:19 am, Dennis Lee Bieber&amp;lt;&lt;a href="mailto:wlfr...@ix.netcom.com"&gt;wlfr...@ix.netcom.com&lt;/a&gt;&amp;gt;  wrote:&lt;br&gt;&amp;gt;    &lt;br&gt;&amp;gt;&amp;gt; On Thu, 26 Jan 2012 14:01:50 -0800 (PST), BillB1951&amp;lt;&lt;a href="mailto:wjbur...@gmail.com"&gt;wjbur...@gmail.com&lt;/a&gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;      &lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Brett, Thanks.  That is what I needed.  BillB1951&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        &lt;br&gt;&amp;gt;&amp;gt;          Just an aside: seems like a convoluted plan to keep round-tripping&lt;br&gt;&amp;gt;&amp;gt; to the server/database each time you refine the filter.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;          I&amp;#39;m presuming the initial data set being sent is the &amp;quot;full&amp;quot; list. If&lt;br&gt;&amp;gt;&amp;gt; so, might it not be useful to somehow (Caveat: I&amp;#39;m /not/ skilled at&lt;br&gt;&amp;gt;&amp;gt; this, only toyed with Javascript too many years ago) embed a Javascript&lt;br&gt;&amp;gt;&amp;gt; action to count the categories, render the filter selections and, when&lt;br&gt;&amp;gt;&amp;gt; one is picked, have the Javascript modify the page in-place to display&lt;br&gt;&amp;gt;&amp;gt; only the filtered data?&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;          Granted, adding another language on top of Python, Django, and the&lt;br&gt;&amp;gt;&amp;gt; template language, may be more than desirable.&lt;br&gt;&amp;gt;&amp;gt; --&lt;br&gt;&amp;gt;&amp;gt;          Wulfraed                 Dennis Lee Bieber         AF6VN&lt;br&gt;&amp;gt;&amp;gt;          &lt;a href="mailto:wlfr...@ix.netcom.com"&gt;wlfr...@ix.netcom.com&lt;/a&gt;    &lt;a href="HTTP://wlfraed.home.netcom.com/"&gt;HTTP://wlfraed.home.netcom.com/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;      &lt;br&gt;&amp;gt;    &lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-3228228581377827686?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/3228228581377827686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-how-do-you-pass-dissimilar-data-from_1834.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3228228581377827686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3228228581377827686'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-how-do-you-pass-dissimilar-data-from_1834.html' title='Re: How do you pass dissimilar data from view to template?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5467943258539607195</id><published>2012-01-27T08:31:00.000-08:00</published><updated>2012-01-27T08:32:11.925-08:00</updated><title type='text'>Re: How do you pass dissimilar data from view to template?</title><content type='html'>Thanks for the additional thought on this.  It is a much appreciated&lt;br&gt;confirmation to me.  Last night I was torturing my brain over the&lt;br&gt;logistics of what I had conceived, and by this morning I had pretty&lt;br&gt;much concluded that I would have to go the route you are suggesting.&lt;br&gt;Now I just have to find an existing solution ... or learn Javascript.&lt;br&gt;--Bill&lt;p&gt;On Jan 27, 11:19&amp;#160;am, Dennis Lee Bieber &amp;lt;&lt;a href="mailto:wlfr...@ix.netcom.com"&gt;wlfr...@ix.netcom.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; On Thu, 26 Jan 2012 14:01:50 -0800 (PST), BillB1951 &amp;lt;&lt;a href="mailto:wjbur...@gmail.com"&gt;wjbur...@gmail.com&lt;/a&gt;&amp;gt;&lt;br&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;Brett, Thanks. &amp;#160;That is what I needed. &amp;#160;BillB1951&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Just an aside: seems like a convoluted plan to keep round-tripping&lt;br&gt;&amp;gt; to the server/database each time you refine the filter.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; I&amp;#39;m presuming the initial data set being sent is the &amp;quot;full&amp;quot; list. If&lt;br&gt;&amp;gt; so, might it not be useful to somehow (Caveat: I&amp;#39;m /not/ skilled at&lt;br&gt;&amp;gt; this, only toyed with Javascript too many years ago) embed a Javascript&lt;br&gt;&amp;gt; action to count the categories, render the filter selections and, when&lt;br&gt;&amp;gt; one is picked, have the Javascript modify the page in-place to display&lt;br&gt;&amp;gt; only the filtered data?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Granted, adding another language on top of Python, Django, and the&lt;br&gt;&amp;gt; template language, may be more than desirable.&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Wulfraed &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; Dennis Lee Bieber &amp;#160; &amp;#160; &amp;#160; &amp;#160; AF6VN&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;a href="mailto:wlfr...@ix.netcom.com"&gt;wlfr...@ix.netcom.com&lt;/a&gt; &amp;#160; &amp;#160;&lt;a href="HTTP://wlfraed.home.netcom.com/"&gt;HTTP://wlfraed.home.netcom.com/&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5467943258539607195?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5467943258539607195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-how-do-you-pass-dissimilar-data-from_6735.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5467943258539607195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5467943258539607195'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-how-do-you-pass-dissimilar-data-from_6735.html' title='Re: How do you pass dissimilar data from view to template?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5960618189383801014</id><published>2012-01-27T08:19:00.000-08:00</published><updated>2012-01-27T08:20:26.343-08:00</updated><title type='text'>Re: How do you pass dissimilar data from view to template?</title><content type='html'>On Thu, 26 Jan 2012 14:01:50 -0800 (PST), BillB1951 &amp;lt;&lt;a href="mailto:wjburris@gmail.com"&gt;wjburris@gmail.com&lt;/a&gt;&amp;gt;&lt;br&gt;wrote:&lt;p&gt;&amp;gt;Brett, Thanks.  That is what I needed.  BillB1951&lt;br&gt;&amp;gt;&lt;br&gt;	Just an aside: seems like a convoluted plan to keep round-tripping&lt;br&gt;to the server/database each time you refine the filter.&lt;p&gt;	I&amp;#39;m presuming the initial data set being sent is the &amp;quot;full&amp;quot; list. If&lt;br&gt;so, might it not be useful to somehow (Caveat: I&amp;#39;m /not/ skilled at&lt;br&gt;this, only toyed with Javascript too many years ago) embed a Javascript&lt;br&gt;action to count the categories, render the filter selections and, when&lt;br&gt;one is picked, have the Javascript modify the page in-place to display&lt;br&gt;only the filtered data?&lt;p&gt;	Granted, adding another language on top of Python, Django, and the&lt;br&gt;template language, may be more than desirable.&lt;br&gt;-- &lt;br&gt;	Wulfraed                 Dennis Lee Bieber         AF6VN&lt;br&gt;        &lt;a href="mailto:wlfraed@ix.netcom.com"&gt;wlfraed@ix.netcom.com&lt;/a&gt;    &lt;a href="HTTP://wlfraed.home.netcom.com/"&gt;HTTP://wlfraed.home.netcom.com/&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5960618189383801014?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5960618189383801014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-how-do-you-pass-dissimilar-data-from_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5960618189383801014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5960618189383801014'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-how-do-you-pass-dissimilar-data-from_27.html' title='Re: How do you pass dissimilar data from view to template?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8413390737327310871</id><published>2012-01-27T07:20:00.001-08:00</published><updated>2012-01-27T07:20:21.726-08:00</updated><title type='text'>RE: Determine gender from first name</title><content type='html'>&lt;div dir='ltr'&gt; All depends on how many users you have and how accurate you want your data to be. If your language uses specific morphemes for women (usually non-european languages have marked feminine morphemes; male names and pronouns are not marked), then you could write a parser for these names. Yet I doubt your data will be any better than 90% accurate. Don't forget people construct virtual identities and often use loanwords. You could also parse their content (blogs, comments,... *is this legal?) and see which first person pronouns, verbs, etc. they use. If the latter are explicit feminine forms, use a feminine welcome.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style="font-size: 10pt; "&gt;So, I would just work around the gender-specific welcome. Replace it somehow. Convince your client it is somehow spooky to directly address the visitor.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 10pt; "&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Or, even better, add a gender category to your db and register form and convince your client that some day it will prove interesting for data mining purposes.&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 10pt; "&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 10pt; "&gt;greetings,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;djinja&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;div id="SkyDrivePlaceholder"&gt;&lt;/div&gt;&amp;gt; Subject: Re: Determine gender from first name&lt;br&gt;&amp;gt; From: lawgon@thenilgiris.com&lt;br&gt;&amp;gt; To: django-users@googlegroups.com&lt;br&gt;&amp;gt; Date: Wed, 25 Jan 2012 15:20:36 +0530&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; On Wed, 2012-01-25 at 09:49 +0100, Demetrio Girardi wrote:&lt;br&gt;&amp;gt; &amp;gt; How can I go about this? Is there a publicly available database of&lt;br&gt;&amp;gt; &amp;gt; first names divided by language and gender? A public web-service that&lt;br&gt;&amp;gt; &amp;gt; guesstimates the gender? &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; not possible in my opinion. There may be some languages where a name&lt;br&gt;&amp;gt; *has* to have gender specific suffix. All the languages I know do not.&lt;br&gt;&amp;gt; Maria, Rama, Krishna, for example are not gender specific.&lt;br&gt;&amp;gt; -- &lt;br&gt;&amp;gt; regards&lt;br&gt;&amp;gt; Kenneth Gonsalves&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; -- &lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br&gt;&amp;gt; To post to this group, send email to django-users@googlegroups.com.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br&gt;&amp;gt; For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br&gt;&amp;gt; &lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8413390737327310871?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8413390737327310871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-determine-gender-from-first-name_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8413390737327310871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8413390737327310871'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-determine-gender-from-first-name_27.html' title='RE: Determine gender from first name'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-32071618616654938</id><published>2012-01-27T04:44:00.001-08:00</published><updated>2012-01-27T04:44:32.880-08:00</updated><title type='text'>ipaddress</title><content type='html'>Hi all,&lt;br&gt;&lt;br&gt;First am sorry ,its a python specific question not django based.&lt;br&gt; I am developing a mobile application, using  python in server side. I want to get user&amp;#39;s ipaddress(Now user&amp;#39;s request not sending ipaddress as a parameter to my server). I am using cherrypy server , Now I take IPaddress using following code,&lt;br&gt;    ipaddress = cherrypy.request.remote.ip&lt;br&gt;  I have a doubt whether this generate an ipaddress in the form  &lt;a href="http://10.0.0.0/32" target="_blank"&gt;xx.0.0.0/32&lt;/a&gt;   ( a private range ).?&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-32071618616654938?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/32071618616654938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/ipaddress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/32071618616654938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/32071618616654938'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/ipaddress.html' title='ipaddress'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-9083541011753658597</id><published>2012-01-27T00:31:00.001-08:00</published><updated>2012-01-27T00:31:53.381-08:00</updated><title type='text'>Re: django docs __unicode__ return u'%s %s</title><content type='html'>Hey Petr, thats what I&amp;#39;m trying to say. Just that I didnt construct my&lt;br&gt;sentences well. Thanks.&lt;p&gt;JohnA wrote:&lt;br&gt;&amp;gt; Just to fill in some more info,  __unicode__  methods are also part of&lt;br&gt;&amp;gt; core python and just happen to appear a lot in django code because of&lt;br&gt;&amp;gt; its preference for 16-bit unicode strings (though I think the methods&lt;br&gt;&amp;gt; are actually mostly invoked in the admin).  There is also a __str__&lt;br&gt;&amp;gt; function for &amp;quot;ordinary&amp;quot; (8 bit potentially mbcs) strings.  (This is&lt;br&gt;&amp;gt; Python 2.x; Python 3.x is somewhat different.)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; User-defined __unicode__ methods are overrides of builtin methods that&lt;br&gt;&amp;gt; all objects are guaranteed to have.  As the __...__ in the name&lt;br&gt;&amp;gt; suggests, these methods are called implicitly in certain kinds of&lt;br&gt;&amp;gt; expressions.  Two cases I know of in Python 2.7 are expressions of&lt;br&gt;&amp;gt; form unicode(obj) and expressions of form u&amp;#39;...%s...&amp;#39; % obj (and I&lt;br&gt;&amp;gt; assume other format expression tyopes where the format string is&lt;br&gt;&amp;gt; unicode).  In both, obj is converted to a unicode string using&lt;br&gt;&amp;gt; whatever __unicode__ method is defined for the object.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Jan 24, 6:04&amp;#160;pm, Krondaj &amp;lt;&lt;a href="mailto:c.d.smi...@gmail.com"&gt;c.d.smi...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; &amp;gt; Hi,&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; in the django docs about __unicode__ &amp;#160;it says the following:&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; class Person(models.Model):&lt;br&gt;&amp;gt; &amp;gt; &amp;#160; &amp;#160; first_name = models.CharField(max_length=50)&lt;br&gt;&amp;gt; &amp;gt; &amp;#160; &amp;#160; last_name = models.CharField(max_length=50)&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;#160; &amp;#160; def __unicode__(self):&lt;br&gt;&amp;gt; &amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; return u&amp;#39;%s %s&amp;#39; % (self.first_name, self.last_name)&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; what does the u&amp;#39;%s %s&amp;#39; % mean... I cannot find any exaplanation of&lt;br&gt;&amp;gt; &amp;gt; this in the docs?&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; i&amp;#39;ve seen this in someones code that was kindly lent to me by one of&lt;br&gt;&amp;gt; &amp;gt; the RC chat room people:&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; return u&amp;#39;ID%s: %s - %s - %s - %s&amp;#39; % (&lt;a href="http://self.id"&gt;self.id&lt;/a&gt;, self.user,&lt;br&gt;&amp;gt; &amp;gt; self.question, self.answer, self.get_status_display())&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; but all this u&amp;#39; %s &amp;#160;%s&amp;#39; &amp;#160; %%%sss or what ever is most confusing....&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; is there a document or help guide some where that explains this&lt;br&gt;&amp;gt; &amp;gt; nomenclature, or method, system???&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; as I believe if you take the top example you should be able to do:&lt;br&gt;&amp;gt; &amp;gt; &amp;#160;def __unicode__(self):&lt;br&gt;&amp;gt; &amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; return(self.first_name, self.last_name)&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; If there is no documentation (for dummies) can anyone explain it to&lt;br&gt;&amp;gt; &amp;gt; me??&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; Thanks&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; Krondaj&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-9083541011753658597?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/9083541011753658597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/9083541011753658597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/9083541011753658597'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_27.html' title='Re: django docs __unicode__ return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-9049700877896185321</id><published>2012-01-26T22:37:00.001-08:00</published><updated>2012-01-26T22:37:25.399-08:00</updated><title type='text'>Changes to Google Privacy Policy and Terms of Service</title><content type='html'>&lt;font face="Arial,Helvetica,sans-serif" size="2"&gt; &lt;table width="700" border="0" bordercolor="none"&gt; &lt;tbody&gt;  &lt;tr&gt;&lt;td colspan="4" valign="top"&gt;&lt;/td&gt; &lt;td valign="top"&gt; &lt;p style="line-height:14px;"&gt;&lt;font size="1" color="#777"&gt;Is this email not displaying properly?&lt;br&gt; &lt;a href="http://www.google.com/policies"&gt;View it in your browser.&lt;/a&gt;&lt;/font&gt;&lt;/p&gt; &lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td colspan="5" valign="top"&gt; &lt;font color="#222"&gt; &lt;p style="line-height:18px;"&gt;Dear Google user,&lt;/p&gt;  &lt;p style="line-height:18px;"&gt;We're getting rid of over 60 different privacy policies across Google and replacing them with one that's a lot shorter and easier to read. Our new policy covers multiple products and features, reflecting our desire to create one beautifully simple and intuitive experience across Google.&lt;/p&gt;  &lt;p style="line-height:18px;"&gt;We believe this stuff matters, so please take a few minutes to read our updated Privacy Policy and Terms of Service at &lt;a href="http://www.google.com/policies"&gt;http://www.google.com/policies&lt;/a&gt;. These changes will take effect on March 1, 2012. &lt;/p&gt;&lt;/font&gt; &lt;br&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="5" height="40"&gt; &lt;font size="4" color="#222"&gt;One policy, one Google experience&lt;/font&gt; &lt;hr noshade="noshade" size="1"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width="200"&gt;&lt;img src="https://www.gstatic.com/policies/email/images/intl/en/products.png" width="200" height="113" alt="Easy to work across Google" vspace="16" border="1" style="border:1px solid #ccc;"&gt;&lt;/td&gt; &lt;td width="40"&gt;&lt;/td&gt; &lt;td width="200"&gt;&lt;img src="https://www.gstatic.com/policies/email/images/intl/en/you.png" width="200" height="113" alt="Tailored for you" vspace="16" border="1" style="border:1px solid #ccc;"&gt;&lt;/td&gt; &lt;td width="40"&gt;&lt;/td&gt; &lt;td width="200"&gt;&lt;img src="https://www.gstatic.com/policies/email/images/intl/en/share.png" width="200" height="113" alt="Easy to share and collaborate" vspace="16" border="1" style="border:1px solid #ccc;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;&lt;font size="3" color="#222"&gt;Easy to work across Google&lt;/font&gt; &lt;p style="line-height:18px;"&gt;Our new policy reflects a single product experience that does what you need, when you want it to. Whether you're reading an email that reminds you to schedule a family get-together or finding a favorite video that you want to share, we want to ensure you can move across Gmail, Calendar, Search, YouTube, or whatever your life calls for with ease.&lt;/p&gt;&lt;/td&gt; &lt;td width="40"&gt;&lt;/td&gt; &lt;td valign="top"&gt; &lt;font size="3" color="#222"&gt;Tailored for you&lt;/font&gt; &lt;p style="line-height:18px;"&gt;If you're signed into Google, we can do things like suggest search queries &amp;ndash; or tailor your search results &amp;ndash; based on the interests you've expressed in Google+, Gmail, and YouTube. We'll better understand which version of Pink or Jaguar you're searching for and get you those results faster.&lt;/p&gt;&lt;/td&gt; &lt;td width="40"&gt;&lt;/td&gt; &lt;td valign="top"&gt; &lt;font size="3" color="#222"&gt;Easy to share and collaborate&lt;/font&gt; &lt;p style="line-height:18px;"&gt;When you post or create a document online, you often want others to see and contribute. By remembering the contact information of the people you want to share with, we make it easy for you to share in any Google product or service with minimal clicks and errors.&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="5" height="40"&gt; &lt;hr noshade="noshade" size="1"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;  &lt;font size="3" color="#222"&gt;Protecting your privacy hasn't changed&lt;/font&gt; &lt;p style="line-height:18px;"&gt;Our goal is to provide you with as much transparency and choice as possible, through products like Google Dashboard and Ads Preferences Manager, alongside other tools. Our privacy principles remain unchanged. And we'll never sell your personal information or share it without your permission (other than rare circumstances like valid legal requests). &lt;/p&gt;  &lt;/td&gt;  &lt;td width="40"&gt;&lt;/td&gt;  &lt;td valign="top"&gt;  &lt;font size="3" color="#222"&gt;Got questions?&lt;br&gt; We've got answers.&lt;/font&gt; &lt;p style="line-height:18px;"&gt;Visit our FAQ at &lt;a href="http://www.google.com/policies/faq"&gt;http://www.google.com/policies/faq&lt;/a&gt; to read more about the changes. (We figured our users might have a question or twenty-two.)&lt;/p&gt;  &lt;/td&gt;  &lt;td width="40"&gt;&lt;/td&gt;  &lt;td valign="top"&gt;  &lt;p&gt; &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="5" height="40"&gt; &lt;hr noshade="noshade" size="1"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td colspan="5" valign="top"&gt; &lt;font size="3" color="#222"&gt;Notice of Change&lt;/font&gt; &lt;p style="line-height:18px;"&gt;March 1, 2012 is when the new Privacy Policy and Terms will come into effect. If you choose to keep using Google once the change occurs, you will be doing so under the new Privacy Policy and Terms of Service.&lt;/p&gt; &lt;p style="line-height:18px;"&gt;&lt;font size="1"&gt;Please do not reply to this email. Mail sent to this address cannot be answered. Also, never enter your Google Account password after following a link in an email or chat to an untrusted site. Instead, go directly to the site, such as mail.google.com or www.google.com/accounts. Google will never email you to ask for your password or other sensitive information.&lt;/font&gt;&lt;/p&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/font&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-9049700877896185321?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/9049700877896185321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/changes-to-google-privacy-policy-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/9049700877896185321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/9049700877896185321'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/changes-to-google-privacy-policy-and.html' title='Changes to Google Privacy Policy and Terms of Service'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1117448635950664141</id><published>2012-01-26T21:23:00.001-08:00</published><updated>2012-01-26T21:23:47.714-08:00</updated><title type='text'>Re: Question mark in Django URL Mapping</title><content type='html'>On 27.1.2012 4:15, Chen Xu wrote:&lt;br&gt;&amp;gt; When I type the following as the normal python function, it returns the&lt;br&gt;&amp;gt; correct things:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;  &amp;gt;&amp;gt;&amp;gt; pattern =&lt;br&gt;&amp;gt; re.compile(r&amp;#39;^account_activation\?user_id=(?P&amp;lt;user_id&amp;gt;[0-9]+)&amp;amp;auth_key=(?P&amp;lt;auth_key&amp;gt;[0-9a-zA-Z]+)$&amp;#39;)&lt;br&gt;&amp;gt;  &amp;gt;&amp;gt;&amp;gt; match =&lt;br&gt;&amp;gt; pattern.match(&amp;quot;account_activation?user_id=36&amp;amp;auth_key=f9717d96aa4e3452a47955225a60862d07119702&amp;quot;)&lt;br&gt;&amp;gt;  &amp;gt;&amp;gt;&amp;gt; match.groupdict()&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; {&amp;#39;auth_key&amp;#39;: &amp;#39;f9717d96aa4e3452a47955225a60862d07119702&amp;#39;, &amp;#39;user_id&amp;#39;: &amp;#39;36&amp;#39;}&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; However, when I do this in the Django URL mapping:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; url(r&amp;#39;^account_activation?user_id=(?P&amp;lt;user_id&amp;gt;[0-9]+)&amp;amp;auth_key=(?P&amp;lt;auth_key&amp;gt;[0-9a-zA-Z]+)$&amp;#39;,&lt;br&gt;&amp;gt; &amp;#39;activate_registration&amp;#39;),&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; It seems like the question mark is causing the url mapping not found issue.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Does anyone know why.&lt;p&gt;Django URL mapping parses only path part of the url. Query string part &lt;br&gt;(part after question mark) are not parsed by url parser but passed in &lt;br&gt;request GET dictionary.&lt;p&gt;More information in &lt;br&gt;&lt;a href="https://docs.djangoproject.com/en/1.3/topics/http/urls/#what-the-urlconf-searches-against"&gt;https://docs.djangoproject.com/en/1.3/topics/http/urls/#what-the-urlconf-searches-against&lt;/a&gt;&lt;p&gt;-- &lt;p&gt;Jani Tiainen&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1117448635950664141?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1117448635950664141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-question-mark-in-django-url-mapping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1117448635950664141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1117448635950664141'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-question-mark-in-django-url-mapping.html' title='Re: Question mark in Django URL Mapping'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2235281115521146446</id><published>2012-01-26T18:15:00.001-08:00</published><updated>2012-01-26T18:15:40.007-08:00</updated><title type='text'>Question mark in Django URL Mapping</title><content type='html'>&lt;div&gt;When I type the following as the normal python function, it returns the correct things:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;gt;&amp;gt;&amp;gt; pattern = re.compile(r&amp;#39;^account_activation\?user_id=(?P&amp;lt;user_id&amp;gt;[0-9]+)&amp;amp;auth_key=(?P&amp;lt;auth_key&amp;gt;[0-9a-zA-Z]+)$&amp;#39;)&lt;/div&gt; &lt;div&gt;&amp;gt;&amp;gt;&amp;gt; match = pattern.match(&amp;quot;account_activation?user_id=36&amp;amp;auth_key=f9717d96aa4e3452a47955225a60862d07119702&amp;quot;)&lt;/div&gt;&lt;div&gt;&amp;gt;&amp;gt;&amp;gt; match.groupdict()&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;{&amp;#39;auth_key&amp;#39;: &amp;#39;f9717d96aa4e3452a47955225a60862d07119702&amp;#39;, &amp;#39;user_id&amp;#39;: &amp;#39;36&amp;#39;}&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;However, when I do this in the Django URL mapping:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;url(r&amp;#39;^account_activation?user_id=(?P&amp;lt;user_id&amp;gt;[0-9]+)&amp;amp;auth_key=(?P&amp;lt;auth_key&amp;gt;[0-9a-zA-Z]+)$&amp;#39;,&lt;/div&gt; &lt;div&gt;      &amp;#39;activate_registration&amp;#39;),&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;It seems like the question mark is causing the url mapping not found issue.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Does anyone know why.&lt;/div&gt;&lt;div&gt; &lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks very much&lt;/div&gt;&lt;div&gt;Best regards&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;br clear="all"&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;-- &lt;br&gt;&lt;font color="#888888"&gt;⚡ Chen Xu &lt;/font&gt;&lt;font color="#888888"&gt;⚡&lt;/font&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2235281115521146446?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2235281115521146446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/question-mark-in-django-url-mapping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2235281115521146446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2235281115521146446'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/question-mark-in-django-url-mapping.html' title='Question mark in Django URL Mapping'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6820329612244617795</id><published>2012-01-26T14:30:00.001-08:00</published><updated>2012-01-26T14:30:48.829-08:00</updated><title type='text'>Re: MySQL limit sub-query problem</title><content type='html'>Works! Great! thanks!!! Lazy querysets!&lt;p&gt;On Thu, Jan 26, 2012 at 12:32 PM, Alasdair Nicol &amp;lt;&lt;a href="mailto:alasdair@memset.com"&gt;alasdair@memset.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hi RJ,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On 26/01/12 20:10, rahul jain wrote:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; All,&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; I have a query. Its working fine on sqlite server but not working fine&lt;br&gt;&amp;gt;&amp;gt; on mysql server.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; This is the error message on mysql server: &amp;#160;&amp;quot;This version of MySQL&lt;br&gt;&amp;gt;&amp;gt; doesn&amp;#39;t yet support &amp;#39;LIMIT&amp;amp; &amp;#160;IN/ALL/ANY/SOME subquery&amp;quot;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; This is the query:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; inner_q = obj_unassigned.values_list(&amp;#39;pk&amp;#39;, flat=True)[:diff]&lt;br&gt;&amp;gt;&amp;gt; total_objects = (obj_assigned | obj_class.objects.filter(pk__in=inner_q))&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Any help appreciated on how to fix this.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Thanks.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; RJ&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; You can prevent the error by using `list()` to fetch the inner queryset in a&lt;br&gt;&amp;gt; separate query:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; total_objects = (obj_assigned |&lt;br&gt;&amp;gt; obj_class.objects.filter(pk__in=list(inner_q)))&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Alasdair&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; Alasdair Nicol&lt;br&gt;&amp;gt; Developer, MEMSET&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; mail: &lt;a href="mailto:alasdair@memset.com"&gt;alasdair@memset.com&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;#160;web: &lt;a href="http://www.memset.com/"&gt;http://www.memset.com/&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Memset Ltd., registration number 4504980. 25 Frederick Sanger Road,&lt;br&gt;&amp;gt; Guildford, Surrey, GU2 7YD, UK.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6820329612244617795?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6820329612244617795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-mysql-limit-sub-query-problem_26.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6820329612244617795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6820329612244617795'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-mysql-limit-sub-query-problem_26.html' title='Re: MySQL limit sub-query problem'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5867582421644343340</id><published>2012-01-26T14:01:00.000-08:00</published><updated>2012-01-26T14:02:16.470-08:00</updated><title type='text'>Re: How do you pass dissimilar data from view to template?</title><content type='html'>Brett, Thanks.  That is what I needed.  BillB1951&lt;p&gt;On Jan 26, 4:55&amp;#160;pm, Brett Epps &amp;lt;&lt;a href="mailto:Brett.E...@quest.com"&gt;Brett.E...@quest.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; It sounds like you&amp;#39;re confused about how to add more than one piece of&lt;br&gt;&amp;gt; information to a template. &amp;#160;When you render a template, the template is&lt;br&gt;&amp;gt; given a context, which is a Python dict object. &amp;#160;A dict is a bunch of&lt;br&gt;&amp;gt; key-value pairs. &amp;#160;So, right now, you&amp;#39;re probably doing something like:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; return render_to_response(&amp;#39;path/to/template.html&amp;#39;, {&amp;#39;items&amp;#39;: items})&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Where items is a list of item objects. &amp;#160;You can simply add more key-value&lt;br&gt;&amp;gt; pairs to the dict to add your counts:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; items_25_to_50_count = Item.objects.filter(price__gte=25,&lt;br&gt;&amp;gt; price__lte=50).count()&lt;br&gt;&amp;gt; return render_to_response(&amp;#39;path/to/template.html&amp;#39;,&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; {&amp;#39;items&amp;#39;: items, &amp;#39;items_25_to_50_count&amp;#39;: items_25_to_50_count})&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Hopefully this helps with your question.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Brett&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On 1/26/12 3:12 PM, &amp;quot;BillB1951&amp;quot; &amp;lt;&lt;a href="mailto:wjbur...@gmail.com"&gt;wjbur...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;I am a relatively new to Django, and have just run into a wall, but I&lt;br&gt;&amp;gt; &amp;gt;am sure this will be a cake walk for you veterans out there. &amp;#160;I have a&lt;br&gt;&amp;gt; &amp;gt;list of items I am displaying in a table in a template. &amp;#160;That is no&lt;br&gt;&amp;gt; &amp;gt;problem I create an object (list of values) in my view send it to the&lt;br&gt;&amp;gt; &amp;gt;template and render the table. &amp;#160;However, I would like to also show on&lt;br&gt;&amp;gt; &amp;gt;my template a bunch of count()&amp;#185;s displayed as links, that when clicked&lt;br&gt;&amp;gt; &amp;gt;will further filter the list of items displayed. &amp;#160;For example, I may&lt;br&gt;&amp;gt; &amp;gt;have items in the list that cost between $25 and $50, my link would&lt;br&gt;&amp;gt; &amp;gt;show that there are say 20 items that match that criteria. &amp;#160;When the&lt;br&gt;&amp;gt; &amp;gt;link is selected in sends a request to the url.py that in turn&lt;br&gt;&amp;gt; &amp;gt;executes a view that further filters the queryset then renders&lt;br&gt;&amp;gt; &amp;gt;template again.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;How do I get the count() info to the template? &amp;#160;I do not think I can&lt;br&gt;&amp;gt; &amp;gt;send two separate lists (objects) to the template (at least I have not&lt;br&gt;&amp;gt; &amp;gt;been able to figure out how yet). &amp;#160;I think I need to get the counts at&lt;br&gt;&amp;gt; &amp;gt;the view and then somehow append them to my list object, but I&amp;#185;m not&lt;br&gt;&amp;gt; &amp;gt;sure how to do that and also, not quite sure how to parse those values&lt;br&gt;&amp;gt; &amp;gt;in the template. &amp;#160;I want the counts to show separate from the table&lt;br&gt;&amp;gt; &amp;gt;generated from my list object, and I am somewhat concerned I&amp;#185;m going&lt;br&gt;&amp;gt; &amp;gt;to mess up my table that is working fine now.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;I would appreciate any suggestions you have about how to tackle this,&lt;br&gt;&amp;gt; &amp;gt;and I would really appreciate code examples because I am still&lt;br&gt;&amp;gt; &amp;gt;somewhat Python/Django code challenged.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;Thanks.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;--&lt;br&gt;&amp;gt; &amp;gt;You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;gt;&amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; &amp;gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; &amp;gt;To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &amp;gt;&lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; &amp;gt;For more options, visit this group at&lt;br&gt;&amp;gt; &amp;gt;&lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5867582421644343340?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5867582421644343340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-how-do-you-pass-dissimilar-data-from_26.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5867582421644343340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5867582421644343340'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-how-do-you-pass-dissimilar-data-from_26.html' title='Re: How do you pass dissimilar data from view to template?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5501640085091396181</id><published>2012-01-26T13:55:00.001-08:00</published><updated>2012-01-26T13:55:56.275-08:00</updated><title type='text'>Re: How do you pass dissimilar data from view to template?</title><content type='html'>It sounds like you&amp;#39;re confused about how to add more than one piece of&lt;br&gt;information to a template.  When you render a template, the template is&lt;br&gt;given a context, which is a Python dict object.  A dict is a bunch of&lt;br&gt;key-value pairs.  So, right now, you&amp;#39;re probably doing something like:&lt;p&gt;return render_to_response(&amp;#39;path/to/template.html&amp;#39;, {&amp;#39;items&amp;#39;: items})&lt;p&gt;Where items is a list of item objects.  You can simply add more key-value&lt;br&gt;pairs to the dict to add your counts:&lt;p&gt;items_25_to_50_count = Item.objects.filter(price__gte=25,&lt;br&gt;price__lte=50).count()&lt;br&gt;return render_to_response(&amp;#39;path/to/template.html&amp;#39;,&lt;br&gt;    {&amp;#39;items&amp;#39;: items, &amp;#39;items_25_to_50_count&amp;#39;: items_25_to_50_count})&lt;p&gt;Hopefully this helps with your question.&lt;p&gt;Brett&lt;p&gt;&lt;br&gt;On 1/26/12 3:12 PM, &amp;quot;BillB1951&amp;quot; &amp;lt;&lt;a href="mailto:wjburris@gmail.com"&gt;wjburris@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;p&gt;&amp;gt;I am a relatively new to Django, and have just run into a wall, but I&lt;br&gt;&amp;gt;am sure this will be a cake walk for you veterans out there.  I have a&lt;br&gt;&amp;gt;list of items I am displaying in a table in a template.  That is no&lt;br&gt;&amp;gt;problem I create an object (list of values) in my view send it to the&lt;br&gt;&amp;gt;template and render the table.  However, I would like to also show on&lt;br&gt;&amp;gt;my template a bunch of count()&amp;#185;s displayed as links, that when clicked&lt;br&gt;&amp;gt;will further filter the list of items displayed.  For example, I may&lt;br&gt;&amp;gt;have items in the list that cost between $25 and $50, my link would&lt;br&gt;&amp;gt;show that there are say 20 items that match that criteria.  When the&lt;br&gt;&amp;gt;link is selected in sends a request to the url.py that in turn&lt;br&gt;&amp;gt;executes a view that further filters the queryset then renders&lt;br&gt;&amp;gt;template again.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;How do I get the count() info to the template?  I do not think I can&lt;br&gt;&amp;gt;send two separate lists (objects) to the template (at least I have not&lt;br&gt;&amp;gt;been able to figure out how yet).  I think I need to get the counts at&lt;br&gt;&amp;gt;the view and then somehow append them to my list object, but I&amp;#185;m not&lt;br&gt;&amp;gt;sure how to do that and also, not quite sure how to parse those values&lt;br&gt;&amp;gt;in the template.  I want the counts to show separate from the table&lt;br&gt;&amp;gt;generated from my list object, and I am somewhat concerned I&amp;#185;m going&lt;br&gt;&amp;gt;to mess up my table that is working fine now.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;I would appreciate any suggestions you have about how to tackle this,&lt;br&gt;&amp;gt;and I would really appreciate code examples because I am still&lt;br&gt;&amp;gt;somewhat Python/Django code challenged.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;Thanks.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;-- &lt;br&gt;&amp;gt;You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt;&amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;To unsubscribe from this group, send email to&lt;br&gt;&amp;gt;&lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;For more options, visit this group at&lt;br&gt;&amp;gt;&lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5501640085091396181?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5501640085091396181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-how-do-you-pass-dissimilar-data-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5501640085091396181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5501640085091396181'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-how-do-you-pass-dissimilar-data-from.html' title='Re: How do you pass dissimilar data from view to template?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2486841119638195834</id><published>2012-01-26T13:12:00.001-08:00</published><updated>2012-01-26T13:12:31.566-08:00</updated><title type='text'>How do you pass dissimilar data from view to template?</title><content type='html'>I am a relatively new to Django, and have just run into a wall, but I&lt;br&gt;am sure this will be a cake walk for you veterans out there.  I have a&lt;br&gt;list of items I am displaying in a table in a template.  That is no&lt;br&gt;problem I create an object (list of values) in my view send it to the&lt;br&gt;template and render the table.  However, I would like to also show on&lt;br&gt;my template a bunch of count()&amp;#39;s displayed as links, that when clicked&lt;br&gt;will further filter the list of items displayed.  For example, I may&lt;br&gt;have items in the list that cost between $25 and $50, my link would&lt;br&gt;show that there are say 20 items that match that criteria.  When the&lt;br&gt;link is selected in sends a request to the url.py that in turn&lt;br&gt;executes a view that further filters the queryset then renders&lt;br&gt;template again.&lt;p&gt;How do I get the count() info to the template?  I do not think I can&lt;br&gt;send two separate lists (objects) to the template (at least I have not&lt;br&gt;been able to figure out how yet).  I think I need to get the counts at&lt;br&gt;the view and then somehow append them to my list object, but I&amp;#39;m not&lt;br&gt;sure how to do that and also, not quite sure how to parse those values&lt;br&gt;in the template.  I want the counts to show separate from the table&lt;br&gt;generated from my list object, and I am somewhat concerned I&amp;#39;m going&lt;br&gt;to mess up my table that is working fine now.&lt;p&gt;I would appreciate any suggestions you have about how to tackle this,&lt;br&gt;and I would really appreciate code examples because I am still&lt;br&gt;somewhat Python/Django code challenged.&lt;p&gt;Thanks.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2486841119638195834?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2486841119638195834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/how-do-you-pass-dissimilar-data-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2486841119638195834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2486841119638195834'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/how-do-you-pass-dissimilar-data-from.html' title='How do you pass dissimilar data from view to template?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-3969582372542839249</id><published>2012-01-26T12:32:00.001-08:00</published><updated>2012-01-26T12:32:37.321-08:00</updated><title type='text'>Re: MySQL limit sub-query problem</title><content type='html'>Hi RJ,&lt;p&gt;On 26/01/12 20:10, rahul jain wrote:&lt;br&gt;&amp;gt; All,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I have a query. Its working fine on sqlite server but not working fine&lt;br&gt;&amp;gt; on mysql server.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; This is the error message on mysql server:  &amp;quot;This version of MySQL&lt;br&gt;&amp;gt; doesn&amp;#39;t yet support &amp;#39;LIMIT&amp;amp;  IN/ALL/ANY/SOME subquery&amp;quot;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; This is the query:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; inner_q = obj_unassigned.values_list(&amp;#39;pk&amp;#39;, flat=True)[:diff]&lt;br&gt;&amp;gt; total_objects = (obj_assigned | obj_class.objects.filter(pk__in=inner_q))&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Any help appreciated on how to fix this.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; RJ&lt;br&gt;&amp;gt;&lt;p&gt;You can prevent the error by using `list()` to fetch the inner queryset &lt;br&gt;in a separate query:&lt;p&gt;total_objects = (obj_assigned | obj_class.objects.filter(pk__in=list(inner_q)))&lt;p&gt;Alasdair&lt;p&gt;-- &lt;br&gt;Alasdair Nicol&lt;br&gt;Developer, MEMSET&lt;p&gt;mail: &lt;a href="mailto:alasdair@memset.com"&gt;alasdair@memset.com&lt;/a&gt;&lt;br&gt;  web: &lt;a href="http://www.memset.com/"&gt;http://www.memset.com/&lt;/a&gt;&lt;p&gt;Memset Ltd., registration number 4504980. 25 Frederick Sanger Road, Guildford, Surrey, GU2 7YD, UK.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-3969582372542839249?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/3969582372542839249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-mysql-limit-sub-query-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3969582372542839249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3969582372542839249'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-mysql-limit-sub-query-problem.html' title='Re: MySQL limit sub-query problem'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1983851989809381558</id><published>2012-01-26T12:28:00.000-08:00</published><updated>2012-01-26T12:29:16.879-08:00</updated><title type='text'>Re: Django (or other) templates for untrusted users?</title><content type='html'>I think that depends upon the context the view provides, and upon what&lt;br&gt;tag libraries can be loaded.&lt;p&gt;Objects in the context can have their methods called (with some&lt;br&gt;restrictions).  If your view pre-converts all interesting data to&lt;br&gt;strings and numbers, and/or sequences or dictionaries of such, then&lt;br&gt;the available methods are limited so you can review them for safety.&lt;p&gt;You could also automate checking of any tag libraries loaded against a&lt;br&gt;list of those you have deemed safe.&lt;p&gt;Of course, there could be additional vulnerabilities that aren&amp;#39;t coming to mind.&lt;p&gt;Bill&lt;p&gt;On 1/26/12, graeme &amp;lt;&lt;a href="mailto:graeme.pietersz@gmail.com"&gt;graeme.pietersz@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Are Django templates safe enough to use templates provided by&lt;br&gt;&amp;gt; untrusted users? Is it possible to limit functionality? I am not only&lt;br&gt;&amp;gt; concerned with what the templates can access, but also things like&lt;br&gt;&amp;gt; being able to consume excessive resources with, for example, deeply&lt;br&gt;&amp;gt; nested loops.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; If not Django templates then what? I ideally need simple conditionals&lt;br&gt;&amp;gt; and some way of looping. Mustache is close to what I need (it will&lt;br&gt;&amp;gt; probably do if I cannot find better) but AFAIK cannot iterate over a&lt;br&gt;&amp;gt; tree. I also just found&lt;br&gt;&amp;gt; StringTemplate (from &lt;a href="http://stringtemplate.org"&gt;stringtemplate.org&lt;/a&gt;, not the standard library!),&lt;br&gt;&amp;gt; Anyone tried either of these?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1983851989809381558?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1983851989809381558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-or-other-templates-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1983851989809381558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1983851989809381558'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-or-other-templates-for.html' title='Re: Django (or other) templates for untrusted users?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-4606987944345436784</id><published>2012-01-26T12:10:00.000-08:00</published><updated>2012-01-26T12:11:17.586-08:00</updated><title type='text'>MySQL limit sub-query problem</title><content type='html'>All,&lt;p&gt;I have a query. Its working fine on sqlite server but not working fine&lt;br&gt;on mysql server.&lt;p&gt;This is the error message on mysql server:  &amp;quot;This version of MySQL&lt;br&gt;doesn&amp;#39;t yet support &amp;#39;LIMIT &amp;amp; IN/ALL/ANY/SOME subquery&amp;quot;&lt;p&gt;This is the query:&lt;p&gt;inner_q = obj_unassigned.values_list(&amp;#39;pk&amp;#39;, flat=True)[:diff]&lt;br&gt;total_objects = (obj_assigned | obj_class.objects.filter(pk__in=inner_q))&lt;p&gt;Any help appreciated on how to fix this.&lt;p&gt;Thanks.&lt;p&gt;RJ&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-4606987944345436784?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/4606987944345436784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/mysql-limit-sub-query-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/4606987944345436784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/4606987944345436784'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/mysql-limit-sub-query-problem.html' title='MySQL limit sub-query problem'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1561323552868583965</id><published>2012-01-26T12:09:00.001-08:00</published><updated>2012-01-26T12:10:11.335-08:00</updated><title type='text'>[re-post] MySQL connection pooling - preferred method??</title><content type='html'>Hey all,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Not had much luck on this on django-developers, so if anyone else on django-users wants to add their two cents on this thread, that&amp;#39;d be great.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;m still looking into it, and it looks like the best approach is to create a new MySQL backend with support for connection pooling, but I&amp;#39;m still really dubious because when it gets into those depths, surely that should be in the core... *shrugs*&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Penny for your thoughts? :)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Cal&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;---------- Forwarded message ----------&lt;br&gt;From: &lt;b class="gmail_sendername"&gt;Cal Leeming [Simplicity Media Ltd]&lt;/b&gt; &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:cal.leeming@simplicitymedialtd.co.uk"&gt;cal.leeming@simplicitymedialtd.co.uk&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; Date: Wed, Jan 25, 2012 at 12:11 AM&lt;br&gt;Subject: MySQL connection pooling - preferred method??&lt;br&gt;To: &lt;a href="mailto:django-developers@googlegroups.com"&gt;django-developers@googlegroups.com&lt;/a&gt;, Harry Roberts &amp;lt;&lt;a href="mailto:harry.roberts@simplicitymedialtd.co.uk"&gt;harry.roberts@simplicitymedialtd.co.uk&lt;/a&gt;&amp;gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;Hi all,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;After spending about 30 minutes looking through old tickets, long discussion threads and various blogs, I&amp;#39;m still not clear on the MySQL connection pooling topic.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt; &lt;div&gt;To quote Russ: &amp;quot;&lt;span style="font-size:12px;font-family:arial,sans-serif"&gt;the capability already exists in third party&lt;/span&gt;&lt;span style="font-size:12px;font-family:arial,sans-serif"&gt; &lt;/span&gt;&lt;span style="font-size:12px;font-family:arial,sans-serif"&gt;tools, and they&amp;#39;re in a position to do a much better job at it than us&lt;/span&gt;&lt;span style="font-size:12px;font-family:arial,sans-serif"&gt; &lt;/span&gt;&lt;span style="font-size:12px;font-family:arial,sans-serif"&gt;because it&amp;#39;s their sole focus&amp;quot; [3]&lt;/span&gt;&lt;/div&gt;  &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Could a core dev (or anyone else with experience on this) clarify which approach is recommended, on the following conditions:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;* Safety (should not cause any strangeness with query cache or ORM)&lt;/div&gt;  &lt;div&gt;* Performance (should avoid causing Django to open a new database connection on every request)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I found various ways to accomplish this, one of which was to use SQLalchemy[1], another was to stop Django from closing the database connection after each query[2].&lt;/div&gt;  &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;m hoping this thread will also serve as a final answer for anyone else looking for clarification.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Many thanks&lt;/div&gt;&lt;div&gt;&lt;br&gt;Cal&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;[1] &lt;a href="http://menendez.com/blog/mysql-connection-pooling-django-and-sqlalchemy/" target="_blank"&gt;http://menendez.com/blog/mysql-connection-pooling-django-and-sqlalchemy/&lt;/a&gt;&lt;/div&gt;  &lt;div&gt;[2] &lt;a href="http://stackoverflow.com/questions/1125504/django-persistent-database-connection" target="_blank"&gt;http://stackoverflow.com/questions/1125504/django-persistent-database-connection&lt;/a&gt;&lt;/div&gt;&lt;div&gt;[3] &lt;a href="http://groups.google.com/group/django-developers/browse_thread/thread/6f1e9c6e81aff1de/bf34e546e4217277?lnk=gst&amp;amp;q=mysql+pooling#bf34e546e4217277" target="_blank"&gt;http://groups.google.com/group/django-developers/browse_thread/thread/6f1e9c6e81aff1de/bf34e546e4217277?lnk=gst&amp;amp;q=mysql+pooling#bf34e546e4217277&lt;/a&gt;&lt;/div&gt;  &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt; &lt;/div&gt;&lt;br&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1561323552868583965?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1561323552868583965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-post-mysql-connection-pooling.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1561323552868583965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1561323552868583965'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-post-mysql-connection-pooling.html' title='[re-post] MySQL connection pooling - preferred method??'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7262519986678533423</id><published>2012-01-26T12:09:00.000-08:00</published><updated>2012-01-26T12:10:02.910-08:00</updated><title type='text'>Django (or other) templates for untrusted users?</title><content type='html'>Are Django templates safe enough to use templates provided by&lt;br&gt;untrusted users? Is it possible to limit functionality? I am not only&lt;br&gt;concerned with what the templates can access, but also things like&lt;br&gt;being able to consume excessive resources with, for example, deeply&lt;br&gt;nested loops.&lt;p&gt;If not Django templates then what? I ideally need simple conditionals&lt;br&gt;and some way of looping. Mustache is close to what I need (it will&lt;br&gt;probably do if I cannot find better) but AFAIK cannot iterate over a&lt;br&gt;tree. I also just found&lt;br&gt;StringTemplate (from &lt;a href="http://stringtemplate.org"&gt;stringtemplate.org&lt;/a&gt;, not the standard library!),&lt;br&gt;Anyone tried either of these?&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7262519986678533423?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7262519986678533423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/django-or-other-templates-for-untrusted.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7262519986678533423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7262519986678533423'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/django-or-other-templates-for-untrusted.html' title='Django (or other) templates for untrusted users?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5459599712806731759</id><published>2012-01-26T09:32:00.000-08:00</published><updated>2012-01-26T09:34:10.506-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>On Wed, 25 Jan 2012 17:05:59 -0800 (PST), JJ Zolper &amp;lt;&lt;a href="mailto:coding@madtrak.com"&gt;coding@madtrak.com&lt;/a&gt;&amp;gt;&lt;br&gt;wrote:&lt;p&gt;&amp;gt;Let me see if this what you mean... so when I want to run &amp;quot;python manage.py &lt;br&gt;&amp;gt;runserver,&amp;quot; a Django command I should steer clear of Windows? &lt;br&gt;&amp;gt;&lt;br&gt;	No -- but, as the &amp;quot;python ...&amp;quot; line indicates, you need to be at an&lt;br&gt;OS level command line (or use an IDE that implicitly spawns a subprocess&lt;br&gt;that is equivalent to that line), not inside a python interpreter.&lt;p&gt;	&amp;quot;runserver&amp;quot; is, to my mind, the &amp;quot;Django&amp;quot; command. &amp;quot;manage.py&amp;quot; is the&lt;br&gt;a Python script generated by Django which processes management commands&lt;br&gt;for the Django installation.&lt;p&gt;&amp;gt;If I have this right I should install my CPython distro to VS and build my &lt;br&gt;&amp;gt;Python on Windows in VS. Then on the side I should have a VM running with &lt;br&gt;&amp;gt;my Django server (aka my Django project)?&lt;p&gt;	The main suggestion I saw (and my apologies if I&amp;#39;m repeating other&lt;br&gt;information -- I&amp;#39;m a bit behind in the group today and haven&amp;#39;t read&lt;br&gt;ahead) was to install the ActiveState Python build (it appears they&amp;#39;ve&lt;br&gt;renamed the non-supported/freeware build to &amp;quot;community edition&amp;quot;).&lt;p&gt;	ActivePython for Windows includes the win32 extension libraries (if&lt;br&gt;one wants to go to native Windows code -- though the now standard ctypes&lt;br&gt;library permits similar capability if one knows the API), and PythonWin&lt;br&gt;IDE (as I recall, this started life as an included demo of the win32&lt;br&gt;extension libraries &amp;lt;G&amp;gt;).&lt;p&gt;	PythonWin isn&amp;#39;t the fanciest IDE -- no overarching &amp;quot;project&amp;quot;&lt;br&gt;management, just multi-window file access; autocomplete won&amp;#39;t work for a&lt;br&gt;module until it has been imported via the interactive window (since some&lt;br&gt;modules have to be imported for PythonWin itself, those autocomplete&lt;br&gt;without explicit imports). I believe it supports the Python debugger&lt;br&gt;(I&amp;#39;ve not written anything complex enough to need formal debugger --&lt;br&gt;wolf-fencing* and rerunning works for me). But it doesn&amp;#39;t cost&lt;br&gt;anything... Full Komodo is a $$$ product; I don&amp;#39;t know if there is a&lt;br&gt;stripped down version.&lt;p&gt;-- &lt;br&gt;	Wulfraed                 Dennis Lee Bieber         AF6VN&lt;br&gt;        &lt;a href="mailto:wlfraed@ix.netcom.com"&gt;wlfraed@ix.netcom.com&lt;/a&gt;    &lt;a href="HTTP://wlfraed.home.netcom.com/"&gt;HTTP://wlfraed.home.netcom.com/&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5459599712806731759?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5459599712806731759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_26.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5459599712806731759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5459599712806731759'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_26.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6902287247441821897</id><published>2012-01-26T01:35:00.001-08:00</published><updated>2012-01-26T01:35:32.183-08:00</updated><title type='text'>Re: Editing .po files for RTL languages</title><content type='html'>&lt;div dir="ltr"&gt;Hello ryan, you can contact this person : taha_zerrouki(at)&lt;a href="http://yahoo.com"&gt;yahoo.com&lt;/a&gt; . He can help you for everything related to arabic processing. &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Best regards,&lt;/div&gt;&lt;div&gt; &lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Tarik Zakaria Benmerar&lt;/div&gt;&lt;div&gt;Acigna Inc.&lt;/div&gt;&lt;div&gt;CEO and Founder&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6902287247441821897?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6902287247441821897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-editing-po-files-for-rtl-languages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6902287247441821897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6902287247441821897'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-editing-po-files-for-rtl-languages.html' title='Re: Editing .po files for RTL languages'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8233552185150899106</id><published>2012-01-26T00:44:00.000-08:00</published><updated>2012-01-26T00:45:09.349-08:00</updated><title type='text'>Moving a file manually</title><content type='html'>Hello,&lt;p&gt;I have a model with a FileField, that I use to store some user&lt;br&gt;uploaded files. After a while, I changed my mind about where to store&lt;br&gt;the files, so I was just wondering if there is a way to manually move&lt;br&gt;a file, and then update the location of the file as stored in the&lt;br&gt;database. I&amp;#39;m using a plain models.FileField, with no custom Storage&lt;br&gt;or anything advanced.&lt;p&gt;Cheers,&lt;br&gt;Tor&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8233552185150899106?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8233552185150899106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/moving-file-manually.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8233552185150899106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8233552185150899106'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/moving-file-manually.html' title='Moving a file manually'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-999102853584252377</id><published>2012-01-25T23:16:00.001-08:00</published><updated>2012-01-25T23:16:57.606-08:00</updated><title type='text'>Re: Fixture Funny : 1st Row Of Each Table Missing</title><content type='html'>Ok. So I fixed the problem by starting my PK values at 1. It seems&lt;br&gt;like there is a discrepancy between the way fixtures are imported into&lt;br&gt;a mysql db and a sqlite db. Using PK&amp;#39;s that start at 1 works on both.&lt;p&gt;&lt;br&gt;On Jan 25, 11:18&amp;#160;am, Johan &amp;lt;&lt;a href="mailto:djjord...@gmail.com"&gt;djjord...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hi. I&amp;#39;m having a funny issue. I have a fixture for my static tables.&lt;br&gt;&amp;gt; They are all populated via syncdb using the fixture. On my sqlite test&lt;br&gt;&amp;gt; environment it works perfectly. On my production environment, with a&lt;br&gt;&amp;gt; MySQL database, the data is populated into the tables via the fixture&lt;br&gt;&amp;gt; except for the first element in each table referenced in the fixture.&lt;br&gt;&amp;gt; Has anybody encountered this issue?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Is it maybe the pk which is defined as 0 rather than 1?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Here is an excerpt from my fixture:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; [&lt;br&gt;&amp;gt; &amp;#160; {&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;quot;model&amp;quot;:&amp;quot;lookups.DayOfMonth&amp;quot;,&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;quot;pk&amp;quot; : 0,&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;quot;fields&amp;quot; : {&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;quot;code&amp;quot; : &amp;quot;1&amp;quot;,&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;quot;display_value&amp;quot; : &amp;quot;1&amp;quot;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; }&lt;br&gt;&amp;gt; &amp;#160; }&lt;br&gt;&amp;gt; &amp;#160; ,&lt;br&gt;&amp;gt; &amp;#160; {&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;quot;model&amp;quot;:&amp;quot;lookups.DayOfMonth&amp;quot;,&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;quot;pk&amp;quot; : 1,&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;quot;fields&amp;quot; : {&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;quot;code&amp;quot; : &amp;quot;2&amp;quot;,&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;quot;display_value&amp;quot; : &amp;quot;2&amp;quot;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; }&lt;br&gt;&amp;gt; &amp;#160; }&lt;br&gt;&amp;gt; &amp;#160; ,&lt;br&gt;&amp;gt; &amp;#160;...&lt;br&gt;&amp;gt; ]&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-999102853584252377?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/999102853584252377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-fixture-funny-1st-row-of-each-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/999102853584252377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/999102853584252377'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-fixture-funny-1st-row-of-each-table.html' title='Re: Fixture Funny : 1st Row Of Each Table Missing'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-4673073511274944311</id><published>2012-01-25T22:48:00.000-08:00</published><updated>2012-01-25T22:49:07.133-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>On Wed, 2012-01-25 at 09:41 -0800, JJ Zolper wrote:&lt;br&gt;&amp;gt; Okay I am glad to hear that something I knew was on the right track!&lt;br&gt;&amp;gt; Thanks Kenneth! However what is OSM? Open Street Maps? maybe you could&lt;br&gt;&amp;gt; tell me a little bit more about it as I have not heard of it&lt;p&gt;&lt;a href="http://www.openstreetmap.org/"&gt;http://www.openstreetmap.org/&lt;/a&gt;&lt;br&gt;-- &lt;br&gt;regards&lt;br&gt;Kenneth Gonsalves&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-4673073511274944311?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/4673073511274944311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_9811.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/4673073511274944311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/4673073511274944311'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_9811.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8514127741828755151</id><published>2012-01-25T21:39:00.001-08:00</published><updated>2012-01-25T21:39:59.204-08:00</updated><title type='text'>Re: [pinax-users] Learning Django+Pinax - Recommend books and/or tutorials?</title><content type='html'>I think I am qualified to give you advice. When I say &amp;quot;qualified&amp;quot;, I really mean it.&lt;br&gt;&lt;br&gt;First, I am not a very strong programmer myself. Even as a CS student, I always feel like I am behind. Nontheless, I am always eager to learn and am very determined to debug for days. &lt;br&gt; Python is not a big language like C++. There might be a faster way of writing things in Python (such as loop vs comprehension), or making a generator. That&amp;#39;s not important. I know Python for three years, but I don&amp;#39;t write Python code a lot. When I need to know how to write a particular line in Python, I google it. If not, I post questions on &lt;a href="http://stackoverflow.com"&gt;stackoverflow.com&lt;/a&gt; (of course the question has ben appear good.....). &lt;br&gt; &lt;br&gt;I am now doing this research, developing a cloud computing application based on Django, Pylon, and many web technologies (let alone Unix and sysadmin knowledge). Forutunately, I am the webclient developer, and I deal with Django (we choose pinax as a starting base). &lt;br&gt; &lt;br&gt;I read the Django book twice. But the first time I gave up half way. The second time reading it I took my time. Django is actually very difficult to develop because the framework is powerful. Python as a language alone is very small. It takes no more than 100 pages to teach you everything you need to know about basic python and advanced techniques. Python itself is huge because of its rich libraries.&lt;br&gt; &lt;br&gt;So little Python is not a problem. Read &amp;quot;Learning Python&amp;quot;. Read Definite Guide to Django. Get a django1.3 cheatsheet online. Learn to use virtualenv (or pythonenbrew), pip, yaml, and fabric? I think virtualenv and pip are necessary. &lt;br&gt; Don&amp;#39;t rush him. Give him two weeks to digest the first half of learning python, and definite guide to django. Give him two weeks, and he will be happy. Then let him read the source code, and if the project is small, printing out source code isn&amp;#39;t bad at all. Otherwise a few days of exploring will serve him well.&lt;br&gt; &lt;br&gt;I am picking up a legacy work, and it took me a while to get a hang of it for a django beginnger. &lt;br&gt;&lt;br&gt;Pinax itself is like a wrapper on top of django IMHO. There is no mystery. &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt; On Wed, Jan 25, 2012 at 8:42 PM, Alec Taylor &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:alec.taylor6@gmail.com"&gt;alec.taylor6@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; A friend of mine is joining my team, but unfortunately only knows a&lt;br&gt; little Python (CGI) and neither Django nor Pinax.&lt;br&gt; &lt;br&gt; Which books and/or online tutorials should I recommend to him?&lt;br&gt; &lt;br&gt; I am thinking:&lt;br&gt; - &lt;a href="https://docs.djangoproject.com/en/dev/intro/" target="_blank"&gt;https://docs.djangoproject.com/en/dev/intro/&lt;/a&gt;&lt;br&gt; - &lt;a href="http://www.lightbird.net/dbe/" target="_blank"&gt;http://www.lightbird.net/dbe/&lt;/a&gt;&lt;br&gt; &lt;br&gt; But not sure if the second link is still valid for 1.4, and if I&amp;#39;d be&lt;br&gt; better off giving a textbook of some description to him.&lt;br&gt; &lt;br&gt; What would you recommend?&lt;br&gt; &lt;br&gt; Thanks for all suggestion,&lt;br&gt; &lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt; Alec Taylor&lt;br&gt; &lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Pinax Users&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:pinax-users@googlegroups.com"&gt;pinax-users@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:pinax-users%2Bunsubscribe@googlegroups.com"&gt;pinax-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/pinax-users?hl=en" target="_blank"&gt;http://groups.google.com/group/pinax-users?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8514127741828755151?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8514127741828755151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-pinax-users-learning-djangopinax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8514127741828755151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8514127741828755151'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-pinax-users-learning-djangopinax.html' title='Re: [pinax-users] Learning Django+Pinax - Recommend books and/or tutorials?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6495228866418935428</id><published>2012-01-25T18:56:00.001-08:00</published><updated>2012-01-25T18:56:48.479-08:00</updated><title type='text'>Re: foreign key select widget with "add" link</title><content type='html'>&lt;a href="http://www.hoboes.com/Mimsy/hacks/replicating-djangos-admin/"&gt;http://www.hoboes.com/Mimsy/hacks/replicating-djangos-admin/&lt;/a&gt;&amp;nbsp;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/-SBv03JcdswJ"&gt;https://groups.google.com/d/msg/django-users/-/-SBv03JcdswJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6495228866418935428?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6495228866418935428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-foreign-key-select-widget-with-add.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6495228866418935428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6495228866418935428'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-foreign-key-select-widget-with-add.html' title='Re: foreign key select widget with &quot;add&quot; link'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2818798124792212168</id><published>2012-01-25T18:44:00.001-08:00</published><updated>2012-01-25T18:44:32.579-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>&lt;p style="margin-top: 1em; border-style: initial; border-color: initial; line-height: normal; text-align: left; "&gt;&amp;gt; When you are developing your Django app, the development server that&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;comes with Django (python manage.py runserver) works fine on Windows.&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;When you are ready to move things into production for everyone else&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;access, you should not use the development server; instead you should&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;use a proper web server, e.g. nginx, cherokee or Apache. Those web&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;servers tend to be better documented on Linux.&lt;/p&gt;&lt;p style="margin-top: 1em; border-style: initial; border-color: initial; line-height: normal; text-align: left; "&gt;&amp;gt;&amp;nbsp;If it makes things easier, just do everything on Linux.&lt;/p&gt;&lt;p style="margin-top: 1em; border-style: initial; border-color: initial; line-height: normal; text-align: left; "&gt;So by everything you mean my Django project would be made within the VM and UNIX/Linux?&lt;/p&gt;&lt;p style="margin-top: 1em; border-style: initial; border-color: initial; line-height: normal; text-align: left; "&gt;&amp;gt;&amp;nbsp;I'm just using VirtualBox, running a whatever Linux distro I happen to&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;like at the time, e.g. CentOS, Ubuntu etc.&amp;nbsp;&lt;br&gt;&lt;/p&gt;&lt;p style="margin-top: 1em; border-style: initial; border-color: initial; line-height: normal; text-align: left; "&gt;Okay I've used VirtualBox before. Thanks!&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/suBtjoZBkBAJ"&gt;https://groups.google.com/d/msg/django-users/-/suBtjoZBkBAJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2818798124792212168?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2818798124792212168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_6335.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2818798124792212168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2818798124792212168'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_6335.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8332118902264193817</id><published>2012-01-25T18:30:00.001-08:00</published><updated>2012-01-25T18:30:42.540-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>On 26 January 2012 13:14, JJ Zolper &amp;lt;&lt;a href="mailto:coding@madtrak.com"&gt;coding@madtrak.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&amp;gt;&amp;#160;The keywords were &amp;#39;in production&amp;#39;. The development server (i.e. python&lt;br&gt;&amp;gt;&amp;gt;&amp;#160;manage.py runserver) works fine under Windows. But when you want to&lt;br&gt;&amp;gt;&amp;gt;&amp;#160;make the website accessible to your audience (the internet, company&lt;br&gt;&amp;gt;&amp;gt;&amp;#160;etc.), you should host that on Linux.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I still don&amp;#39;t quite understand. Can you explain more? I would think this&lt;br&gt;&amp;gt; means that my Django files should be on a Linux portion of my web server? I&lt;br&gt;&amp;gt; am with Bluehost.com&lt;p&gt;When you are developing your Django app, the development server that&lt;br&gt;comes with Django (python manage.py runserver) works fine on Windows.&lt;br&gt;When you are ready to move things into production for everyone else&lt;br&gt;access, you should not use the development server; instead you should&lt;br&gt;use a proper web server, e.g. nginx, cherokee or Apache. Those web&lt;br&gt;servers tend to be better documented on Linux.&lt;p&gt;If it makes things easier, just do everything on Linux.&lt;p&gt;&amp;gt; I have installed&amp;#160;ActiveState&amp;#160;and will give it a try. I have my VS up and&lt;br&gt;&amp;gt; running with Python Tools for VS so that should be okay.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Hey Sam you&amp;#39;ve been a great help. Would you by chance mind giving me your&lt;br&gt;&amp;gt; e-mail address? That way in the future I could work with you? I won&amp;#39;t bother&lt;br&gt;&amp;gt; you too much don&amp;#39;t worry! lol. Just since I am trying your advice it could&lt;br&gt;&amp;gt; be a great help to me.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; What Virtual Machine did you pick? What Linux version are you running?&lt;p&gt;I&amp;#39;m just using VirtualBox, running a whatever Linux distro I happen to&lt;br&gt;like at the time, e.g. CentOS, Ubuntu etc.&lt;p&gt;&amp;gt; If you prefer e-mailing/want to give me your address my next inquery would&lt;br&gt;&amp;gt; just go to your e-mail.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks so much!&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; JJ Zolper&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; To view this discussion on the web visit&lt;br&gt;&amp;gt; &lt;a href="https://groups.google.com/d/msg/django-users/-/nMqg8xOLXRcJ"&gt;https://groups.google.com/d/msg/django-users/-/nMqg8xOLXRcJ&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8332118902264193817?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8332118902264193817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_3718.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8332118902264193817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8332118902264193817'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_3718.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-530837213516565009</id><published>2012-01-25T18:14:00.000-08:00</published><updated>2012-01-25T18:15:07.520-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>&lt;span style="color: rgb(80, 0, 80); text-align: left; "&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style="text-align: left; "&gt;The keywords were 'in production'. The development server (i.e. python&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="color: rgb(80, 0, 80); text-align: left; "&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style="text-align: left; "&gt;manage.py runserver) works fine under Windows. But when you want to&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="color: rgb(80, 0, 80); text-align: left; "&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style="text-align: left; "&gt;make the website accessible to your audience (the internet, company&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="color: rgb(80, 0, 80); text-align: left; "&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style="text-align: left; "&gt;etc.), you should host that on Linux.&lt;/span&gt;&amp;nbsp;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I still don't quite understand. Can you explain more? I would think this means that my Django files should be on a Linux portion of my web server? I am with Bluehost.com&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I have installed&amp;nbsp;&lt;span style="color: rgb(80, 0, 80); text-align: left; "&gt;ActiveState&lt;/span&gt;&lt;span style="color: rgb(80, 0, 80); text-align: left; "&gt;&amp;nbsp;and will give it a try. I have my VS up and running with Python Tools for VS so that should be okay.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: rgb(80, 0, 80); text-align: left; "&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;font color="#500050"&gt;Hey Sam you've been a great help. Would you by chance mind giving me your e-mail address? That way in the future I could work with you? I won't bother you too much don't worry! lol. Just since I am trying your advice it could be a great help to me.&lt;/font&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;font color="#500050"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;font color="#500050"&gt;What Virtual Machine did you pick? What Linux version are you running?&lt;/font&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;font color="#500050"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;font color="#500050"&gt;If you prefer e-mailing/want to give me your address my next inquery would just go to your e-mail.&lt;/font&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;font color="#500050"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;font color="#500050"&gt;Thanks so much!&lt;/font&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;font color="#500050"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;font color="#500050"&gt;JJ Zolper&lt;/font&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/nMqg8xOLXRcJ"&gt;https://groups.google.com/d/msg/django-users/-/nMqg8xOLXRcJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-530837213516565009?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/530837213516565009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_8464.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/530837213516565009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/530837213516565009'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_8464.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2119679653494952172</id><published>2012-01-25T17:42:00.000-08:00</published><updated>2012-01-25T17:43:20.221-08:00</updated><title type='text'>Learning Django+Pinax - Recommend books and/or tutorials?</title><content type='html'>A friend of mine is joining my team, but unfortunately only knows a&lt;br&gt;little Python (CGI) and neither Django nor Pinax.&lt;p&gt;Which books and/or online tutorials should I recommend to him?&lt;p&gt;I am thinking:&lt;br&gt;- &lt;a href="https://docs.djangoproject.com/en/dev/intro/"&gt;https://docs.djangoproject.com/en/dev/intro/&lt;/a&gt;&lt;br&gt;- &lt;a href="http://www.lightbird.net/dbe/"&gt;http://www.lightbird.net/dbe/&lt;/a&gt;&lt;p&gt;But not sure if the second link is still valid for 1.4, and if I&amp;#39;d be&lt;br&gt;better off giving a textbook of some description to him.&lt;p&gt;What would you recommend?&lt;p&gt;Thanks for all suggestion,&lt;p&gt;Alec Taylor&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2119679653494952172?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2119679653494952172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/learning-djangopinax-recommend-books.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2119679653494952172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2119679653494952172'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/learning-djangopinax-recommend-books.html' title='Learning Django+Pinax - Recommend books and/or tutorials?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8982620996702127587</id><published>2012-01-25T17:26:00.001-08:00</published><updated>2012-01-25T17:26:51.387-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>On 26 January 2012 12:05, JJ Zolper &amp;lt;&lt;a href="mailto:coding@madtrak.com"&gt;coding@madtrak.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&amp;gt; &amp;#160;Unless you have a&lt;br&gt;&amp;gt;&amp;gt;&amp;#160;&amp;#160;preference for Windows though, I wouldn&amp;#39;t use it as a Django app web&lt;br&gt;&amp;gt;&amp;gt;&amp;#160;&amp;#160;server in production; there&amp;#39;s far less support on the net to help you&lt;br&gt;&amp;gt;&amp;gt;&amp;#160;&amp;#160;out when things go wrong.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Let me see if this what you mean... so when I want to run &amp;quot;python manage.py&lt;br&gt;&amp;gt; runserver,&amp;quot; a Django command I should steer clear of Windows?&lt;p&gt;The keywords were &amp;#39;in production&amp;#39;. The development server (i.e. python&lt;br&gt;manage.py runserver) works fine under Windows. But when you want to&lt;br&gt;make the website accessible to your audience (the internet, company&lt;br&gt;etc.), you should host that on Linux.&lt;p&gt;&amp;gt;&amp;gt;&amp;#160;I use ActiveState Komodo Edit on Windows to modify files on my Linux&lt;br&gt;&amp;gt;&amp;gt;&amp;#160;VM which runs the web server for my Django apps. It means I don&amp;#39;t get&lt;br&gt;&amp;gt;&amp;gt;&amp;#160;a debug environment though; working on finding something to make that&lt;br&gt;&amp;gt;&amp;gt;&amp;#160;work.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; So I should install&amp;#160;ActiveState Komodo Edit to Windows. Which in turn well&lt;br&gt;&amp;gt; help me to work with my Django server through a Virtual Machine?&lt;p&gt;That&amp;#39;s one way. It&amp;#39;s a bit more complex than simply doing everything&lt;br&gt;inside a Linux VM. Komodo Edit also works in Linux as well.&lt;p&gt;&amp;gt; If I have this right I should install my CPython distro to VS and build my&lt;br&gt;&amp;gt; Python on Windows in VS. Then on the side I should have a VM running with my&lt;br&gt;&amp;gt; Django server (aka my Django project)?&lt;p&gt;See above; the runserver command works fine under Windows.&lt;p&gt;&amp;gt; JJ&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; To view this discussion on the web visit&lt;br&gt;&amp;gt; &lt;a href="https://groups.google.com/d/msg/django-users/-/1Efy7_gaDdgJ"&gt;https://groups.google.com/d/msg/django-users/-/1Efy7_gaDdgJ&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8982620996702127587?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8982620996702127587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_5241.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8982620996702127587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8982620996702127587'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_5241.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5046830230370935160</id><published>2012-01-25T17:05:00.000-08:00</published><updated>2012-01-25T17:06:28.276-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>&lt;span style="text-align: left; "&gt;&amp;gt; &amp;nbsp;Unless you have a&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;span style="text-align: left; "&gt;preference for Windows though, I wouldn't use it as a Django app web&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;span style="text-align: left; "&gt;server in production; there's far less support on the net to help you&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;span style="text-align: left; "&gt;out when things go wrong.&lt;/span&gt;&amp;nbsp;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Let me see if this what you mean... so when I want to run "python manage.py runserver," a Django command I should steer clear of Windows?&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="text-align: left; "&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style="text-align: left; "&gt;I use ActiveState Komodo Edit on Windows to modify files on my Linux&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style="text-align: left; "&gt;VM which runs the web server for my Django apps. It means I don't get&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style="text-align: left; "&gt;a debug environment though; working on finding something to make that&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style="text-align: left; "&gt;work.&lt;/span&gt;&amp;nbsp;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;So I should install&amp;nbsp;&lt;span style="text-align: left; "&gt;ActiveState Komodo Edit to Windows. Which in turn well help me to work with my Django server through a Virtual Machine?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="text-align: left; "&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="text-align: left; "&gt;If I have this right I should install my CPython distro to VS and build my Python on Windows in VS. Then on the side I should have a VM running with my Django server (aka my Django project)?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="text-align: left; "&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="text-align: left; "&gt;JJ&lt;/span&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/1Efy7_gaDdgJ"&gt;https://groups.google.com/d/msg/django-users/-/1Efy7_gaDdgJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5046830230370935160?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5046830230370935160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_7097.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5046830230370935160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5046830230370935160'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_7097.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1044997732548278777</id><published>2012-01-25T16:45:00.000-08:00</published><updated>2012-01-25T16:46:15.682-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>On 26 January 2012 04:50, JJ Zolper &amp;lt;&lt;a href="mailto:coding@madtrak.com"&gt;coding@madtrak.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; In many of the (I)DEs (PythonWin, IDLE, probably the various EMACS&lt;br&gt;&amp;gt; and VI configurations, SciTE), one can edit a file, save it (some will&lt;br&gt;&amp;gt; save for you if needed), then hit some key combo which will spawn a&lt;br&gt;&amp;gt; Python interpreter passing it the file for execution. You may even be&lt;br&gt;&amp;gt; prompted to supply command line arguments (PythonWin, I know does this).&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; This is very interesting thanks for sharing! As for the information above&lt;br&gt;&amp;gt; that has cleared it up quite a bit for me.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Sam Lai has helped a lot I think I am going to try to see if CPython works&lt;br&gt;&amp;gt; in VS because he thinks I will have less compatibility with IronPython and&lt;br&gt;&amp;gt; Django which would not be good. For the time being however I think I might&lt;br&gt;&amp;gt; just use VS since I am still new to really what I could be lacking with that&lt;br&gt;&amp;gt; as far as&amp;#160;compatibility.&lt;p&gt;Python Tools for Visual Studio should automatically detect CPython if&lt;br&gt;you have that installed. If you haven&amp;#39;t, I suggest you download an&lt;br&gt;install a CPython distribution called ActivePython Community Edition&lt;br&gt;(&lt;a href="http://www.activestate.com/activepython/downloads"&gt;http://www.activestate.com/activepython/downloads&lt;/a&gt;). It will set up&lt;br&gt;Python in your Windows environment properly, which the official one&lt;br&gt;doesn&amp;#39;t seem to do right (judging by the posts here about Windows).&lt;p&gt;The bonus with VS is the great debugger, which works with CPython as&lt;br&gt;well. Many of the IDEs mentioned are just great text editors, and&lt;br&gt;don&amp;#39;t include a debug environment (i.e. the ability to set&lt;br&gt;breakpoints, explore stack, step through code visually etc.). Some do&lt;br&gt;include such an environment, including PyCharm and PyDev.&lt;p&gt;PostgreSQL also works fine on Windows. No idea about all the GIS stuff&lt;br&gt;though. If you&amp;#39;re comfortable with using Linux, then go for it, but&lt;br&gt;most of the basic stuff you can do on Windows (until you need other&lt;br&gt;bits of software to make things work, like Redis). Unless you have a&lt;br&gt;preference for Windows though, I wouldn&amp;#39;t use it as a Django app web&lt;br&gt;server in production; there&amp;#39;s far less support on the net to help you&lt;br&gt;out when things go wrong.&lt;p&gt;I use ActiveState Komodo Edit on Windows to modify files on my Linux&lt;br&gt;VM which runs the web server for my Django apps. It means I don&amp;#39;t get&lt;br&gt;a debug environment though; working on finding something to make that&lt;br&gt;work.&lt;p&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; To view this discussion on the web visit&lt;br&gt;&amp;gt; &lt;a href="https://groups.google.com/d/msg/django-users/-/2LQU1l81OyoJ"&gt;https://groups.google.com/d/msg/django-users/-/2LQU1l81OyoJ&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1044997732548278777?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1044997732548278777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_1657.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1044997732548278777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1044997732548278777'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_1657.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6974333471574881237</id><published>2012-01-25T15:00:00.001-08:00</published><updated>2012-01-25T15:00:45.668-08:00</updated><title type='text'>Re: django docs __unicode__ return u'%s %s</title><content type='html'>Just to fill in some more info,  __unicode__  methods are also part of&lt;br&gt;core python and just happen to appear a lot in django code because of&lt;br&gt;its preference for 16-bit unicode strings (though I think the methods&lt;br&gt;are actually mostly invoked in the admin).  There is also a __str__&lt;br&gt;function for &amp;quot;ordinary&amp;quot; (8 bit potentially mbcs) strings.  (This is&lt;br&gt;Python 2.x; Python 3.x is somewhat different.)&lt;p&gt;User-defined __unicode__ methods are overrides of builtin methods that&lt;br&gt;all objects are guaranteed to have.  As the __...__ in the name&lt;br&gt;suggests, these methods are called implicitly in certain kinds of&lt;br&gt;expressions.  Two cases I know of in Python 2.7 are expressions of&lt;br&gt;form unicode(obj) and expressions of form u&amp;#39;...%s...&amp;#39; % obj (and I&lt;br&gt;assume other format expression tyopes where the format string is&lt;br&gt;unicode).  In both, obj is converted to a unicode string using&lt;br&gt;whatever __unicode__ method is defined for the object.&lt;p&gt;&lt;br&gt;On Jan 24, 6:04&amp;#160;pm, Krondaj &amp;lt;&lt;a href="mailto:c.d.smi...@gmail.com"&gt;c.d.smi...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hi,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; in the django docs about __unicode__ &amp;#160;it says the following:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class Person(models.Model):&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; first_name = models.CharField(max_length=50)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; last_name = models.CharField(max_length=50)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; def __unicode__(self):&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; return u&amp;#39;%s %s&amp;#39; % (self.first_name, self.last_name)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; what does the u&amp;#39;%s %s&amp;#39; % mean... I cannot find any exaplanation of&lt;br&gt;&amp;gt; this in the docs?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; i&amp;#39;ve seen this in someones code that was kindly lent to me by one of&lt;br&gt;&amp;gt; the RC chat room people:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; return u&amp;#39;ID%s: %s - %s - %s - %s&amp;#39; % (&lt;a href="http://self.id"&gt;self.id&lt;/a&gt;, self.user,&lt;br&gt;&amp;gt; self.question, self.answer, self.get_status_display())&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; but all this u&amp;#39; %s &amp;#160;%s&amp;#39; &amp;#160; %%%sss or what ever is most confusing....&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; is there a document or help guide some where that explains this&lt;br&gt;&amp;gt; nomenclature, or method, system???&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; as I believe if you take the top example you should be able to do:&lt;br&gt;&amp;gt; &amp;#160;def __unicode__(self):&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; return(self.first_name, self.last_name)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; If there is no documentation (for dummies) can anyone explain it to&lt;br&gt;&amp;gt; me??&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Krondaj&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6974333471574881237?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6974333471574881237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_3873.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6974333471574881237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6974333471574881237'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_3873.html' title='Re: django docs __unicode__ return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1285219551074621800</id><published>2012-01-25T14:29:00.000-08:00</published><updated>2012-01-25T14:30:12.706-08:00</updated><title type='text'>Re: admin list_filter: limit choices to model values?</title><content type='html'>On Wed, Jan 25, 2012 at 2:18 PM, Micky Hulse &amp;lt;&lt;a href="mailto:rgmicky@gmail.com"&gt;rgmicky@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; I&amp;#39;m now trying to figure out how to browse Django source for version 1.3. :)&lt;p&gt;Cool, found 1.3 source:&lt;p&gt;django/branches/releases/1.3.X&lt;br&gt;&amp;lt;&lt;a href="https://code.djangoproject.com/browser/django/branches/releases/1.3.X"&gt;https://code.djangoproject.com/browser/django/branches/releases/1.3.X&lt;/a&gt;&amp;gt;&lt;p&gt;Looks like maybe FilterSpec might be what I want:&lt;p&gt;&amp;lt;&lt;a href="https://code.djangoproject.com/browser/django/branches/releases/1.3.X/django/contrib/admin/filterspecs.py"&gt;https://code.djangoproject.com/browser/django/branches/releases/1.3.X/django/contrib/admin/filterspecs.py&lt;/a&gt;&amp;gt;&lt;p&gt;At least now I have a better idea of what to Google for &amp;quot;django&lt;br&gt;FilterSpec author&amp;quot;. :)&lt;p&gt;Thanks!&lt;br&gt;Micky&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1285219551074621800?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1285219551074621800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-admin-listfilter-limit-choices-to_8848.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1285219551074621800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1285219551074621800'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-admin-listfilter-limit-choices-to_8848.html' title='Re: admin list_filter: limit choices to model values?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7221178212438575659</id><published>2012-01-25T14:18:00.000-08:00</published><updated>2012-01-25T14:19:44.164-08:00</updated><title type='text'>Re: admin list_filter: limit choices to model values?</title><content type='html'>On Fri, Jan 13, 2012 at 3:35 PM, Micky Hulse &amp;lt;&lt;a href="mailto:rgmicky@gmail.com"&gt;rgmicky@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Would it be possible for me to setup my list_filter to only show&lt;br&gt;&amp;gt; author names that have been assigned to my flat pages? For example,&lt;br&gt;&amp;gt; let&amp;#39;s say I have 10 pages, and two of those pages have the been FK&amp;#39;d&lt;br&gt;&amp;gt; to &amp;quot;bjohnson&amp;quot; and &amp;quot;fjackson&amp;quot;... In my list_filter view, I would like&lt;br&gt;&amp;gt; to only see &amp;quot;bjohnson&amp;quot; and &amp;quot;fjackson&amp;quot;.&lt;p&gt;Just as an update, I found this:&lt;p&gt;&amp;lt;&lt;a href="https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter"&gt;https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter&lt;/a&gt;&amp;gt;&lt;p&gt;... and it looks like what I need... Unfortunately, it&amp;#39;s new in trunk&lt;br&gt;(I&amp;#39;m on 1.3).&lt;p&gt;I am hoping there&amp;#39;s something similar to SimpleListFilter in 1.3.&lt;p&gt;I&amp;#39;m now trying to figure out how to browse Django source for version 1.3. :)&lt;p&gt;I will post back with more info if I figure something out.&lt;p&gt;Thanks!&lt;br&gt;Micky&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7221178212438575659?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7221178212438575659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-admin-listfilter-limit-choices-to_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7221178212438575659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7221178212438575659'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-admin-listfilter-limit-choices-to_25.html' title='Re: admin list_filter: limit choices to model values?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7899795597324437579</id><published>2012-01-25T14:09:00.001-08:00</published><updated>2012-01-25T14:09:23.713-08:00</updated><title type='text'>Re: django docs __unicode__ return u'%s %s</title><content type='html'>&amp;quot;Krondaj wrote:&lt;br&gt;&amp;gt;I&amp;#39;m using python 2.7.2&lt;br&gt;&amp;gt;for another model i&amp;#39;m forming i have:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;def __unicode__(self):&lt;br&gt;&amp;gt;    return (self.project_and_task, self.project_number,&lt;br&gt;&amp;gt;             self.date_created, self.requested_by)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;to understand (i think the new method makes a little more sense?) the&lt;br&gt;&amp;gt;format should be:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;def __unicode__(self):&lt;br&gt;&amp;gt;    return u&amp;#39;{} &amp;#160;{}  {}  {}&amp;#39;.format(self.project_and_task,&lt;br&gt;&amp;gt;           self.project_number, self.date_created, self.requested_by)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;is the two spaces between each {} two seperate the individual strings&lt;br&gt;&amp;gt;with two spaces?&lt;p&gt;It is up to you. The purpose of the __unicode__() method&lt;br&gt;is to return nice and human readable Unicode string&lt;br&gt;that represents the object. It is used for example &lt;br&gt;in the admin mode that was designed to be general for&lt;br&gt;whatever model.  Whenever the admin template needs to display&lt;br&gt;textual representation of the whole record as a string, it simply&lt;br&gt;calls the function for getting a string representation of the whole&lt;br&gt;object.  The function calls the __unicode__() method that&lt;br&gt;is implemented by you.  Whatever you want to see in the case&lt;br&gt;should be created by your definition of the method.  Try to &lt;br&gt;put there strings that you can be sure they are yours -- just to&lt;br&gt;see what the method is called for.&lt;p&gt;Try  &lt;p&gt;     u&amp;#39;{}#{}***{}_{}&amp;#39;.format(self.project_and_task,&lt;br&gt;            self.project_number, self.date_created, self.requested_by)&lt;p&gt;Also, you are not forced to display all the parts of the record.&lt;br&gt;It is only for the display purpose.  It should be just a string&lt;br&gt;that represents the record.  You probably want to put something&lt;br&gt;meaningful there.&lt;p&gt;Have a look at &lt;a href="http://docs.python.org/library/functions.html#unicode"&gt;http://docs.python.org/library/functions.html#unicode&lt;/a&gt;&lt;br&gt;and &lt;a href="http://docs.python.org/reference/datamodel.html#object.__unicode__"&gt;http://docs.python.org/reference/datamodel.html#object.__unicode__&lt;/a&gt;&lt;p&gt;Petr&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7899795597324437579?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7899795597324437579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_3720.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7899795597324437579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7899795597324437579'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_3720.html' title='Re: django docs __unicode__ return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1243233317125283913</id><published>2012-01-25T14:03:00.000-08:00</published><updated>2012-01-25T14:04:31.871-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>Not really I don't have any preference. Any input is welcome!  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/VoMln37CSU8J"&gt;https://groups.google.com/d/msg/django-users/-/VoMln37CSU8J&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1243233317125283913?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1243233317125283913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_7078.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1243233317125283913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1243233317125283913'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_7078.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2438063442469743889</id><published>2012-01-25T11:34:00.001-08:00</published><updated>2012-01-25T11:34:37.022-08:00</updated><title type='text'>modelForm validation -&gt; model validation -&gt; trigger field validation?</title><content type='html'>hi there,&lt;p&gt;has anyone of you an idea in which cycle the field method of &lt;br&gt;ForeignKey.validate is triggered?&lt;p&gt;I have a custom ForeignKey Field where i override the validate method.&lt;br&gt;So i expect that &lt;p&gt;ModelForm validation triggers &lt;br&gt;		-&amp;gt; Model validation (clean methods) and this triggers&lt;br&gt;				-&amp;gt; Field validation of all contained fields&lt;p&gt;But this seems not be the case. Has anyone of you an idea?&lt;p&gt;&lt;br&gt;-- &lt;p&gt;&lt;br&gt;Best Regards&lt;br&gt; &lt;br&gt;Sven&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2438063442469743889?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2438063442469743889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/modelform-validation-model-validation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2438063442469743889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2438063442469743889'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/modelform-validation-model-validation.html' title='modelForm validation -&gt; model validation -&gt; trigger field validation?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8714113180815954682</id><published>2012-01-25T10:04:00.000-08:00</published><updated>2012-01-25T10:05:10.919-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>Just curious--is there any particular reason that you were using Visual Studio?&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Wed, Jan 25, 2012 at 12:50 PM, JJ Zolper &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:coding@madtrak.com"&gt;coding@madtrak.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;  &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;&lt;div class="im"&gt;&lt;span style="text-align:left"&gt;In many of the (I)DEs (PythonWin, IDLE, probably the various EMACS&lt;/span&gt;&lt;br style="text-align:left"&gt;  &lt;span style="text-align:left"&gt;and VI configurations, SciTE), one can edit a file, save it (some will&lt;/span&gt;&lt;br style="text-align:left"&gt;&lt;span style="text-align:left"&gt;save for you if needed), then hit some key combo which will spawn a&lt;/span&gt;&lt;br style="text-align:left"&gt;  &lt;span style="text-align:left"&gt;Python interpreter passing it the file for execution. You may even be&lt;/span&gt;&lt;br style="text-align:left"&gt;&lt;span style="text-align:left"&gt;prompted to supply command line arguments (PythonWin, I know does this).&lt;/span&gt; &lt;br&gt;  &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;This is very interesting thanks for sharing! As for the information above that has cleared it up quite a bit for me.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Sam Lai has helped a lot I think I am going to try to see if CPython works in VS because he thinks I will have less compatibility with IronPython and Django which would not be good. For the time being however I think I might just use VS since I am still new to really what I could be lacking with that as far as compatibility.&lt;/div&gt;  &lt;div class="im"&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;&lt;/div&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/2LQU1l81OyoJ" target="_blank"&gt;https://groups.google.com/d/msg/django-users/-/2LQU1l81OyoJ&lt;/a&gt;.&lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;  &lt;br&gt;  To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com" target="_blank"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com" target="_blank"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;  For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en" target="_blank"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt;   &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8714113180815954682?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8714113180815954682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_7795.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8714113180815954682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8714113180815954682'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_7795.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6794241831802895566</id><published>2012-01-25T09:50:00.001-08:00</published><updated>2012-01-25T09:50:24.475-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>&lt;span style="text-align: left; "&gt;In many of the (I)DEs (PythonWin, IDLE, probably the various EMACS&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;and VI configurations, SciTE), one can edit a file, save it (some will&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;save for you if needed), then hit some key combo which will spawn a&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;Python interpreter passing it the file for execution. You may even be&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;prompted to supply command line arguments (PythonWin, I know does this).&lt;/span&gt;&amp;nbsp;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This is very interesting thanks for sharing! As for the information above that has cleared it up quite a bit for me.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Sam Lai has helped a lot I think I am going to try to see if CPython works in VS because he thinks I will have less compatibility with IronPython and Django which would not be good. For the time being however I think I might just use VS since I am still new to really what I could be lacking with that as far as&amp;nbsp;compatibility.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/2LQU1l81OyoJ"&gt;https://groups.google.com/d/msg/django-users/-/2LQU1l81OyoJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6794241831802895566?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6794241831802895566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_2415.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6794241831802895566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6794241831802895566'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_2415.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7743259761145126859</id><published>2012-01-25T09:41:00.000-08:00</published><updated>2012-01-25T09:43:31.459-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>Okay I am glad to hear that something I knew was on the right track! Thanks Kenneth! However what is OSM? Open Street Maps? maybe you could tell me a little bit more about it as I have not heard of it?  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/joEBjw69ilAJ"&gt;https://groups.google.com/d/msg/django-users/-/joEBjw69ilAJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7743259761145126859?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7743259761145126859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7743259761145126859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7743259761145126859'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_25.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-537689415319421661</id><published>2012-01-25T08:12:00.001-08:00</published><updated>2012-01-25T08:12:41.797-08:00</updated><title type='text'>Re: model for uploading a file - not working??</title><content type='html'>On Jan 25, 4:54&amp;#160;pm, Krondaj &amp;lt;&lt;a href="mailto:c.d.smi...@gmail.com"&gt;c.d.smi...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;(snip)&lt;br&gt;&amp;gt; I get:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ^&lt;br&gt;&amp;gt; SyntaxError: invalid syntax&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; any idea&amp;#39;s what&amp;#39;s up?&lt;p&gt;Please re-read carefully the error message and the line it points to.&lt;br&gt;The error message says &amp;quot;SyntaxError: invalid syntax&amp;quot;, which means your&lt;br&gt;code isn&amp;#39;t valid python code. The cursor points to where the syntax&lt;br&gt;error happens, that is the whitespace between &amp;#39;upload_to&amp;#39; and&lt;br&gt;&amp;quot;documents&amp;quot;.&lt;p&gt;The valid syntax would be:&lt;p&gt;   upload_doc = models.FileField(upload_to=&amp;#39;documents&amp;#39;)&lt;p&gt;I strongly suggest you take some time to learn Python - at least do&lt;br&gt;the official tutorial - if you hope to get anything done in Django.&lt;p&gt;&lt;br&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-537689415319421661?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/537689415319421661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_6687.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/537689415319421661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/537689415319421661'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_6687.html' title='Re: model for uploading a file - not working??'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1793984316198435078</id><published>2012-01-25T08:10:00.003-08:00</published><updated>2012-01-25T08:10:39.363-08:00</updated><title type='text'>Re: model for uploading a file - not working??</title><content type='html'>On Wed, 25 Jan 2012 16:54:55 +0100, Krondaj &amp;lt;&lt;a href="mailto:c.d.smith9@gmail.com"&gt;c.d.smith9@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;p&gt;&amp;gt; in my model i&amp;#39;m using:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; from django.db import models, datetime, MEDIA_ROOT&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class RrsForm(models.Model):&lt;br&gt;&amp;gt; #....&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;     upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get this error when I run (before running syncdb):&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; python manage.py sql rrs&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;   File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt;     upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt; ^&lt;br&gt;&amp;gt; SyntaxError: invalid syntax&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; any idea&amp;#39;s what&amp;#39;s up?&lt;br&gt;&amp;gt;&lt;p&gt;As the error message says, it is invalid syntax, you forgot the equals  &lt;br&gt;sign (upload_to=&amp;#39;documents&amp;#39;).&lt;p&gt;Martin&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1793984316198435078?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1793984316198435078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_1551.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1793984316198435078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1793984316198435078'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_1551.html' title='Re: model for uploading a file - not working??'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8009695542197648885</id><published>2012-01-25T08:10:00.001-08:00</published><updated>2012-01-25T08:10:30.261-08:00</updated><title type='text'>Re: model for uploading a file - not working??</title><content type='html'>trying to show where ^ goes: haviing problems: &amp;#160;i&amp;#39;m hoping this shows&lt;br&gt;it at the last quote mark:&lt;br&gt;&amp;gt; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; ^.&lt;br&gt;&amp;gt;SyntaxError: invalid syntax&lt;p&gt;&lt;p&gt;&lt;br&gt;Idon&amp;#39;t know why i&amp;#39;m getting this error, or what i&amp;#39;m doing wrong&lt;p&gt;On Jan 25, 3:54&amp;#160;pm, Krondaj &amp;lt;&lt;a href="mailto:c.d.smi...@gmail.com"&gt;c.d.smi...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; in my model i&amp;#39;m using:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; from django.db import models, datetime, MEDIA_ROOT&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class RrsForm(models.Model):&lt;br&gt;&amp;gt; #....&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get this error when I run (before running syncdb):&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; python manage.py sql rrs&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ^&lt;br&gt;&amp;gt; SyntaxError: invalid syntax&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; any idea&amp;#39;s what&amp;#39;s up?&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8009695542197648885?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8009695542197648885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_4138.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8009695542197648885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8009695542197648885'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_4138.html' title='Re: model for uploading a file - not working??'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7242848483219481879</id><published>2012-01-25T08:08:00.001-08:00</published><updated>2012-01-25T08:08:27.419-08:00</updated><title type='text'>Re: model for uploading a file - not working??</title><content type='html'>trying to show where ^ goes: haviing problems: &amp;#160;i&amp;#39;m hoping this shows&lt;br&gt;it at the last quote mark:&lt;br&gt;&amp;gt; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;           &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; ^.&lt;br&gt;&amp;gt;SyntaxError: invalid syntax&lt;p&gt;&lt;p&gt;&lt;br&gt;Idon&amp;#39;t know why i&amp;#39;m getting this error, or what i&amp;#39;m doing wrong&lt;p&gt;On Jan 25, 3:54&amp;#160;pm, Krondaj &amp;lt;&lt;a href="mailto:c.d.smi...@gmail.com"&gt;c.d.smi...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; in my model i&amp;#39;m using:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; from django.db import models, datetime, MEDIA_ROOT&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class RrsForm(models.Model):&lt;br&gt;&amp;gt; #....&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get this error when I run (before running syncdb):&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; python manage.py sql rrs&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ^&lt;br&gt;&amp;gt; SyntaxError: invalid syntax&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; any idea&amp;#39;s what&amp;#39;s up?&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7242848483219481879?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7242848483219481879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_8121.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7242848483219481879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7242848483219481879'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_8121.html' title='Re: model for uploading a file - not working??'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2404998475466090270</id><published>2012-01-25T08:07:00.001-08:00</published><updated>2012-01-25T08:07:18.788-08:00</updated><title type='text'>Re: model for uploading a file - not working??</title><content type='html'>trying to show where ^ goes: haviing problems: &amp;#160;i&amp;#39;m hoping this shows&lt;br&gt;it at the last quote mark:&lt;br&gt;&amp;gt; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;           ^.&lt;br&gt;&amp;gt;SyntaxError: invalid syntax&lt;p&gt;Idon&amp;#39;t know why i&amp;#39;m getting this error, or what i&amp;#39;m doing wrong&lt;p&gt;On Jan 25, 3:54&amp;#160;pm, Krondaj &amp;lt;&lt;a href="mailto:c.d.smi...@gmail.com"&gt;c.d.smi...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; in my model i&amp;#39;m using:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; from django.db import models, datetime, MEDIA_ROOT&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class RrsForm(models.Model):&lt;br&gt;&amp;gt; #....&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get this error when I run (before running syncdb):&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; python manage.py sql rrs&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ^&lt;br&gt;&amp;gt; SyntaxError: invalid syntax&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; any idea&amp;#39;s what&amp;#39;s up?&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2404998475466090270?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2404998475466090270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_8179.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2404998475466090270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2404998475466090270'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_8179.html' title='Re: model for uploading a file - not working??'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5550205048777266955</id><published>2012-01-25T08:05:00.001-08:00</published><updated>2012-01-25T08:05:30.249-08:00</updated><title type='text'>Re: model for uploading a file - not working??</title><content type='html'>trying to show where ^ goes: haviing problems:  i&amp;#39;m hoping this shows&lt;br&gt;it at the last quote mark:&lt;p&gt;&amp;gt; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;                                                                             ^.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;SyntaxError: invalid syntax&lt;p&gt;i don&amp;#39;t know what i&amp;#39;ve done wrong, and why i&amp;#39;m getting this error&lt;p&gt;On Jan 25, 3:54&amp;#160;pm, Krondaj &amp;lt;&lt;a href="mailto:c.d.smi...@gmail.com"&gt;c.d.smi...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; in my model i&amp;#39;m using:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; from django.db import models, datetime, MEDIA_ROOT&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class RrsForm(models.Model):&lt;br&gt;&amp;gt; #....&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get this error when I run (before running syncdb):&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; python manage.py sql rrs&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ^&lt;br&gt;&amp;gt; SyntaxError: invalid syntax&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; any idea&amp;#39;s what&amp;#39;s up?&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5550205048777266955?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5550205048777266955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_675.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5550205048777266955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5550205048777266955'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_675.html' title='Re: model for uploading a file - not working??'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5092146986757302967</id><published>2012-01-25T08:00:00.000-08:00</published><updated>2012-01-25T08:01:13.391-08:00</updated><title type='text'>Re: model for uploading a file - not working??</title><content type='html'>upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt; &lt;br&gt;^&lt;p&gt;&lt;br&gt;On Jan 25, 3:54&amp;#160;pm, Krondaj &amp;lt;&lt;a href="mailto:c.d.smi...@gmail.com"&gt;c.d.smi...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; in my model i&amp;#39;m using:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; from django.db import models, datetime, MEDIA_ROOT&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class RrsForm(models.Model):&lt;br&gt;&amp;gt; #....&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get this error when I run (before running syncdb):&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; python manage.py sql rrs&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ^&lt;br&gt;&amp;gt; SyntaxError: invalid syntax&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; any idea&amp;#39;s what&amp;#39;s up?&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5092146986757302967?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5092146986757302967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5092146986757302967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5092146986757302967'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working_25.html' title='Re: model for uploading a file - not working??'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-891616082559693586</id><published>2012-01-25T07:58:00.001-08:00</published><updated>2012-01-25T07:58:30.396-08:00</updated><title type='text'>Re: model for uploading a file - not working??</title><content type='html'>the arrow should be pointing at the last quote at &amp;#39;)&lt;p&gt;like this (hopefully):&lt;p&gt;File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt; &lt;br&gt;^&lt;br&gt;SyntaxError: invalid syntax&lt;p&gt;Any idea&amp;#39;s??&lt;p&gt;On Jan 25, 3:54&amp;#160;pm, Krondaj &amp;lt;&lt;a href="mailto:c.d.smi...@gmail.com"&gt;c.d.smi...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; in my model i&amp;#39;m using:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; from django.db import models, datetime, MEDIA_ROOT&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class RrsForm(models.Model):&lt;br&gt;&amp;gt; #....&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get this error when I run (before running syncdb):&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; python manage.py sql rrs&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I get:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ^&lt;br&gt;&amp;gt; SyntaxError: invalid syntax&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; any idea&amp;#39;s what&amp;#39;s up?&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-891616082559693586?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/891616082559693586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/891616082559693586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/891616082559693586'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-model-for-uploading-file-not-working.html' title='Re: model for uploading a file - not working??'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-3210995261499777232</id><published>2012-01-25T07:54:00.000-08:00</published><updated>2012-01-25T07:55:13.355-08:00</updated><title type='text'>model for uploading a file - not working??</title><content type='html'>in my model i&amp;#39;m using:&lt;p&gt;from django.db import models, datetime, MEDIA_ROOT&lt;p&gt;class RrsForm(models.Model):&lt;br&gt;#....&lt;p&gt;    upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;p&gt;I get this error when I run (before running syncdb):&lt;p&gt;python manage.py sql rrs&lt;p&gt;I get:&lt;p&gt;  File &amp;quot;/home/chrissmith/Dcode/rrws/rrs/models.py&amp;quot;, line 36&lt;br&gt;    upload_doc = models.FileField(upload_to &amp;#39;documents&amp;#39;)&lt;br&gt; &lt;br&gt;^&lt;br&gt;SyntaxError: invalid syntax&lt;p&gt;any idea&amp;#39;s what&amp;#39;s up?&lt;p&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-3210995261499777232?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/3210995261499777232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/model-for-uploading-file-not-working.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3210995261499777232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3210995261499777232'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/model-for-uploading-file-not-working.html' title='model for uploading a file - not working??'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8282311865034115497</id><published>2012-01-25T07:07:00.001-08:00</published><updated>2012-01-25T07:07:38.721-08:00</updated><title type='text'>Re: django docs __unicode__ return u'%s %s</title><content type='html'>Hi Petr,&lt;p&gt;I&amp;#39;m using python 2.7.2&lt;p&gt;for another model i&amp;#39;m forming i have:&lt;p&gt;def __unicode__(self):&lt;br&gt;    return (self.project_and_task, self.project_number,&lt;br&gt;self.date_created, self.requested_by)&lt;p&gt;to understand (i think the new method makes a little more sense?) the&lt;br&gt;format should be:&lt;p&gt;def __unicode__(self):&lt;br&gt;    return u&amp;#39;{} &amp;#160;{}  {}  {}&amp;#39;.format(self.project_and_task,&lt;br&gt;self.project_number, self.date_created, self.requested_by)&lt;p&gt;is the two spaces between each {} two seperate the individual strings&lt;br&gt;with two spaces?&lt;p&gt;Krondaj&lt;p&gt;&lt;p&gt;&lt;p&gt;On Jan 25, 11:11&amp;#160;am, &amp;quot;Petr Přikryl&amp;quot; &amp;lt;&lt;a href="mailto:prik...@atlas.cz"&gt;prik...@atlas.cz&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;coded kid&amp;quot; wrote:&lt;br&gt;&amp;gt; &amp;gt;If I may say, &amp;#39;u&amp;#39; makes it easy to return variable with any hassle.&lt;br&gt;&amp;gt; &amp;gt;And %s rep each string in your script. I think there should be other&lt;br&gt;&amp;gt; &amp;gt;ways to go about this. Hope you get my point?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; This is wrong. &amp;#160;The prefix &amp;#39;u&amp;#39; means that the following string is a Unicode&lt;br&gt;&amp;gt; string, nothing more or less. &amp;#160;It is a fact for Python 2.x. &amp;#160;Seehttp://&lt;a href="http://docs.python.org/reference/lexical_analysis.html#string-literals"&gt;docs.python.org/reference/lexical_analysis.html#string-literals&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; The % character after the unicode string means &amp;quot;string interpolation&amp;quot;,&lt;br&gt;&amp;gt; i.e. replacing the placeholders inside the string template on the left.&lt;br&gt;&amp;gt; See the String Formatting Operationshttp://&lt;a href="http://docs.python.org/library/stdtypes.html#string-formatting-operat."&gt;docs.python.org/library/stdtypes.html#string-formatting-operat.&lt;/a&gt;..&lt;br&gt;&amp;gt; You will also find the placeholder types there.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Krondaj wrote:&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; what does the u&amp;#39;%s %s&amp;#39; % mean... I cannot find any exaplanation of&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; this in the docs?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; The .format() method of the string type is the newer one, introduced&lt;br&gt;&amp;gt; in Python 2.6. &amp;#160;It is the preferred way now. &amp;#160;But you can use it only&lt;br&gt;&amp;gt; when you can be sure that the Python is 2.6 or newer. The command&lt;br&gt;&amp;gt; in your __unicode__ method would look like:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; def __unicode__(self):&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; return u&amp;#39;{0} &amp;#160;{1}&amp;#39;.format(self.first_name, self.last_name)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; The &amp;#39;{0}&amp;#39; is the placeholder for the self.first_name (zero&amp;#39;th argument,&lt;br&gt;&amp;gt; the &amp;#39;{1}&amp;#39; is for the first argument (self.last_name), etc. &amp;#160;Since Python 2.7&lt;br&gt;&amp;gt; (if I recall correctly) you need not to use the numbers inside:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; def __unicode__(self):&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; return u&amp;#39;{} &amp;#160;{}&amp;#39;.format(self.first_name, self.last_name)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; You do not want to return only...&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; def __unicode__(self):&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; return (self.first_name, self.last_name)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ... because you want the method to return the unicode string representation.&lt;br&gt;&amp;gt; Without .format() or without the % the method would return a tuple with&lt;br&gt;&amp;gt; the information, not the string.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Petr&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8282311865034115497?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8282311865034115497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_9609.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8282311865034115497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8282311865034115497'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_9609.html' title='Re: django docs __unicode__ return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6292363649661588546</id><published>2012-01-25T05:52:00.001-08:00</published><updated>2012-01-25T05:52:44.029-08:00</updated><title type='text'>Re: Deverifying a URLField</title><content type='html'>On Jan 25, 12:30&amp;#160;am, Rich Jones &amp;lt;&lt;a href="mailto:miser...@gmail.com"&gt;miser...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hello, all!&lt;p&gt;(snip - Mike already answered)&lt;p&gt;&amp;gt; Will I need to do a database migration&lt;br&gt;&amp;gt; to do this? Or can I just add a &amp;#39;verified=False&amp;#39; and run syncdb?&lt;p&gt;URL Validation is done in django, not in the database, so there&amp;#39;s no&lt;br&gt;need for a migration here. Also note that syncdb DOES NOT migrate&lt;br&gt;anything - if you have a need for schema and data migrations then&lt;br&gt;South is your friend.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6292363649661588546?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6292363649661588546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-deverifying-urlfield_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6292363649661588546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6292363649661588546'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-deverifying-urlfield_25.html' title='Re: Deverifying a URLField'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-4655575300659743448</id><published>2012-01-25T04:28:00.000-08:00</published><updated>2012-01-25T04:29:59.279-08:00</updated><title type='text'>Caching and excluding in a template</title><content type='html'>Hello,&lt;p&gt;wondering if there is any easy way to exclude a little part from a &lt;br&gt;template to be cached, on every site there is a the usual register/login &lt;br&gt;or you are logged in with a user menu, back in php+smarty times it was &lt;br&gt;easy solved using a dynamic tag to easily exclude a small part from &lt;br&gt;being cached.&lt;p&gt;So far I only saw you could turn off caching for logged-in users or fine &lt;br&gt;grade what is being cached, the first I dont want (only caching stuff &lt;br&gt;which looks same for all users except the user menu) and the latter &lt;br&gt;seems to be quite some work compared to just exclude a litte part in the &lt;br&gt;base template.&lt;p&gt;Greetings,&lt;br&gt;Thorsten&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-4655575300659743448?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/4655575300659743448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/caching-and-excluding-in-template.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/4655575300659743448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/4655575300659743448'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/caching-and-excluding-in-template.html' title='Caching and excluding in a template'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-9167986678594046279</id><published>2012-01-25T03:11:00.000-08:00</published><updated>2012-01-25T03:12:10.919-08:00</updated><title type='text'>Re: django docs __unicode__ return u'%s %s</title><content type='html'>&amp;gt; &amp;quot;coded kid&amp;quot; wrote:&lt;br&gt;&amp;gt;If I may say, &amp;#39;u&amp;#39; makes it easy to return variable with any hassle.&lt;br&gt;&amp;gt;And %s rep each string in your script. I think there should be other&lt;br&gt;&amp;gt;ways to go about this. Hope you get my point?&lt;p&gt;This is wrong.  The prefix &amp;#39;u&amp;#39; means that the following string is a Unicode&lt;br&gt;string, nothing more or less.  It is a fact for Python 2.x.  See&lt;br&gt;&lt;a href="http://docs.python.org/reference/lexical_analysis.html#string-literals"&gt;http://docs.python.org/reference/lexical_analysis.html#string-literals&lt;/a&gt;&lt;p&gt;The % character after the unicode string means &amp;quot;string interpolation&amp;quot;,&lt;br&gt;i.e. replacing the placeholders inside the string template on the left.&lt;br&gt;See the String Formatting Operations &lt;a href="http://docs.python.org/library/stdtypes.html#string-formatting-operations"&gt;http://docs.python.org/library/stdtypes.html#string-formatting-operations&lt;/a&gt;&lt;br&gt;You will also find the placeholder types there.&lt;p&gt;&amp;gt;&amp;gt; &amp;gt; Krondaj wrote:&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;gt; what does the u&amp;#39;%s %s&amp;#39; % mean... I cannot find any exaplanation of&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;gt; this in the docs?&lt;p&gt;The .format() method of the string type is the newer one, introduced&lt;br&gt;in Python 2.6.  It is the preferred way now.  But you can use it only&lt;br&gt;when you can be sure that the Python is 2.6 or newer. The command &lt;br&gt;in your __unicode__ method would look like:&lt;p&gt;def __unicode__(self):&lt;br&gt;        return u&amp;#39;{0}  {1}&amp;#39;.format(self.first_name, self.last_name)&lt;p&gt;The &amp;#39;{0}&amp;#39; is the placeholder for the self.first_name (zero&amp;#39;th argument,&lt;br&gt;the &amp;#39;{1}&amp;#39; is for the first argument (self.last_name), etc.  Since Python 2.7&lt;br&gt;(if I recall correctly) you need not to use the numbers inside:&lt;p&gt;def __unicode__(self):&lt;br&gt;        return u&amp;#39;{}  {}&amp;#39;.format(self.first_name, self.last_name)&lt;p&gt;&lt;br&gt;You do not want to return only... &lt;p&gt;def __unicode__(self):&lt;br&gt;        return (self.first_name, self.last_name)&lt;p&gt;... because you want the method to return the unicode string representation.&lt;br&gt;Without .format() or without the % the method would return a tuple with &lt;br&gt;the information, not the string.&lt;p&gt;Petr&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-9167986678594046279?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/9167986678594046279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/9167986678594046279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/9167986678594046279'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_25.html' title='Re: django docs __unicode__ return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2241803411610603164</id><published>2012-01-25T02:21:00.000-08:00</published><updated>2012-01-25T02:22:16.597-08:00</updated><title type='text'>Re: get_FOO_display() for generic/variable choice fields</title><content type='html'>My Python-expert partner suggested a clever workaround as follows:&lt;p&gt;As I&amp;#39;m already running through the model._meta.fields beforehand to&lt;br&gt;create header row for my .csv file, I can build a dictionary of the&lt;br&gt;choices to refer to later.&lt;p&gt;choices_lookup_dict = {}&lt;br&gt;header_row = []&lt;p&gt;for field in model._meta.fields:&lt;br&gt;  # create header row for csv file&lt;br&gt;  header_row.append(&lt;a href="http://field.name"&gt;field.name&lt;/a&gt;)&lt;br&gt;  # Add lookup dictionary of choices to dictionary of fields&lt;br&gt;  #  i.e. creating a dictionary of dictionaries for each choice field&lt;br&gt;  if field.choices:&lt;br&gt;    choices_lookup_dict[&lt;a href="http://field.name"&gt;field.name&lt;/a&gt;] = dict(field.choices)&lt;p&gt;This could be quite expensive for large choice tuples such as country&lt;br&gt;lists, but at least we&amp;#39;re only calling it once.&lt;p&gt;So now in my main loop I can use the following code to lookup my&lt;br&gt;verbose choice value:&lt;p&gt;&lt;br&gt;for field in model._meta.fields:&lt;br&gt;   val = getattr(obj, &lt;a href="http://field.name"&gt;field.name&lt;/a&gt;)&lt;br&gt;   if field.choices:&lt;br&gt;     val = choices_lookup_dict[&lt;a href="http://field.name"&gt;field.name&lt;/a&gt;][val]&lt;br&gt;   row.append(val)&lt;p&gt;&lt;br&gt;We assume that get_FOO_display() must be doing something like this&lt;br&gt;anyway!&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2241803411610603164?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2241803411610603164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-getfoodisplay-for-genericvariable_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2241803411610603164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2241803411610603164'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-getfoodisplay-for-genericvariable_25.html' title='Re: get_FOO_display() for generic/variable choice fields'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6047515098527262904</id><published>2012-01-25T02:03:00.000-08:00</published><updated>2012-01-25T02:04:14.991-08:00</updated><title type='text'>Re: Determine gender from first name</title><content type='html'>&lt;font face="georgia,serif"&gt;Hi,&lt;br&gt;&lt;br&gt;If you are looking for a fuzzy solution, you can find it here&lt;br&gt;&lt;a href="https://github.com/sholiday/genderPredictor"&gt;https://github.com/sholiday/genderPredictor&lt;/a&gt;&lt;br&gt;This should suit your purpose.&lt;br&gt;  It uses nltk package for predicting, but as Kenneth said, it won&amp;#39;t be 100% perfect. You can expect 80-90% success.&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;Thanks,&lt;br&gt;Anoop&lt;/font&gt;&lt;br&gt;&lt;br&gt;atm&lt;br&gt;___&lt;br&gt;Life is short, Live it hard.&lt;br&gt;  &lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On 25 January 2012 15:20, kenneth gonsalves &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:lawgon@thenilgiris.com"&gt;lawgon@thenilgiris.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;  &lt;div class="im"&gt;On Wed, 2012-01-25 at 09:49 +0100, Demetrio Girardi wrote:&lt;br&gt; &amp;gt; How can I go about this? Is there a publicly available database of&lt;br&gt; &amp;gt; first names divided by language and gender? A public web-service that&lt;br&gt; &amp;gt; guesstimates the gender?&lt;br&gt; &lt;br&gt; &lt;/div&gt;not possible in my opinion. There may be some languages where a name&lt;br&gt; *has* to have gender specific suffix. All the languages I know do not.&lt;br&gt; Maria, Rama, Krishna, for example are not gender specific.&lt;br&gt; &lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;--&lt;br&gt; regards&lt;br&gt; Kenneth Gonsalves&lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;&lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en" target="_blank"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6047515098527262904?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6047515098527262904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-determine-gender-from-first-name_6795.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6047515098527262904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6047515098527262904'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-determine-gender-from-first-name_6795.html' title='Re: Determine gender from first name'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7259535095982307287</id><published>2012-01-25T01:50:00.000-08:00</published><updated>2012-01-25T01:51:07.685-08:00</updated><title type='text'>Re: Determine gender from first name</title><content type='html'>On Wed, 2012-01-25 at 09:49 +0100, Demetrio Girardi wrote:&lt;br&gt;&amp;gt; How can I go about this? Is there a publicly available database of&lt;br&gt;&amp;gt; first names divided by language and gender? A public web-service that&lt;br&gt;&amp;gt; guesstimates the gender? &lt;p&gt;not possible in my opinion. There may be some languages where a name&lt;br&gt;*has* to have gender specific suffix. All the languages I know do not.&lt;br&gt;Maria, Rama, Krishna, for example are not gender specific.&lt;br&gt;-- &lt;br&gt;regards&lt;br&gt;Kenneth Gonsalves&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7259535095982307287?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7259535095982307287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-determine-gender-from-first-name_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7259535095982307287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7259535095982307287'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-determine-gender-from-first-name_25.html' title='Re: Determine gender from first name'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8547813072743360690</id><published>2012-01-25T01:18:00.001-08:00</published><updated>2012-01-25T01:18:47.560-08:00</updated><title type='text'>Fixture Funny : 1st Row Of Each Table Missing</title><content type='html'>Hi. I&amp;#39;m having a funny issue. I have a fixture for my static tables.&lt;br&gt;They are all populated via syncdb using the fixture. On my sqlite test&lt;br&gt;environment it works perfectly. On my production environment, with a&lt;br&gt;MySQL database, the data is populated into the tables via the fixture&lt;br&gt;except for the first element in each table referenced in the fixture.&lt;br&gt;Has anybody encountered this issue?&lt;p&gt;Is it maybe the pk which is defined as 0 rather than 1?&lt;p&gt;Here is an excerpt from my fixture:&lt;p&gt;[&lt;br&gt;  {&lt;br&gt;    &amp;quot;model&amp;quot;:&amp;quot;lookups.DayOfMonth&amp;quot;,&lt;br&gt;	&amp;quot;pk&amp;quot; : 0,&lt;br&gt;	&amp;quot;fields&amp;quot; : {&lt;br&gt;	  &amp;quot;code&amp;quot; : &amp;quot;1&amp;quot;,&lt;br&gt;	  &amp;quot;display_value&amp;quot; : &amp;quot;1&amp;quot;&lt;br&gt;	}&lt;br&gt;  }&lt;br&gt;  ,&lt;br&gt;  {&lt;br&gt;    &amp;quot;model&amp;quot;:&amp;quot;lookups.DayOfMonth&amp;quot;,&lt;br&gt;	&amp;quot;pk&amp;quot; : 1,&lt;br&gt;	&amp;quot;fields&amp;quot; : {&lt;br&gt;	  &amp;quot;code&amp;quot; : &amp;quot;2&amp;quot;,&lt;br&gt;	  &amp;quot;display_value&amp;quot; : &amp;quot;2&amp;quot;&lt;br&gt;	}&lt;br&gt;  }&lt;br&gt;  ,&lt;br&gt; ...&lt;br&gt;]&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8547813072743360690?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8547813072743360690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/fixture-funny-1st-row-of-each-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8547813072743360690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8547813072743360690'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/fixture-funny-1st-row-of-each-table.html' title='Fixture Funny : 1st Row Of Each Table Missing'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2231066436625638158</id><published>2012-01-25T00:59:00.000-08:00</published><updated>2012-01-25T01:00:18.485-08:00</updated><title type='text'>Re: Determine gender from first name</title><content type='html'>&lt;div dir="ltr"&gt;&lt;font color="#330099"&gt;&lt;font face="trebuchet ms,sans-serif"&gt;&lt;b&gt;I don&amp;#39;t know if there are any databases or webservices available for the purpose. But how would you handle the exceptions ?! Like if it does not exist in the db, and common names used across genders ?!&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;div&gt;  &lt;font color="#330099" face="&amp;#39;trebuchet ms&amp;#39;, sans-serif"&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/font&gt;&lt;div class="gmail_quote"&gt;On Wed, Jan 25, 2012 at 11:49 AM, Demetrio Girardi &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:demetrio.girardi@gmail.com"&gt;demetrio.girardi@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;  &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;This is not a django-specific question, but I couldn&amp;#39;t find anything&lt;br&gt; useful on the subject and have no better place to ask.&lt;br&gt; &lt;br&gt; Let&amp;#39;s say I want to put &amp;quot;welcome {{user.first_name}}&amp;quot; on top of my&lt;br&gt; template. In many languages, &amp;quot;welcome&amp;quot; has to be declined by gender. I&lt;br&gt; have no use for the user&amp;#39;s gender otherwise, so I don&amp;#39;t want to ask&lt;br&gt; for it in the registration process.&lt;br&gt; &lt;br&gt; How can I go about this? Is there a publicly available database of&lt;br&gt; first names divided by language and gender? A public web-service that&lt;br&gt; guesstimates the gender?&lt;br&gt; &lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en" target="_blank"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear="all"&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;-- &lt;br&gt;&lt;div dir="ltr"&gt;&lt;font color="#6600CC"&gt;&lt;font face="&amp;#39;trebuchet ms&amp;#39;, sans-serif"&gt;&lt;div&gt;&lt;span style="font-weight:800"&gt;Thanks and Regards,&lt;/span&gt;&lt;/div&gt;  &lt;b&gt;Praveen Krishna R&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;br&gt; &lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2231066436625638158?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2231066436625638158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-determine-gender-from-first-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2231066436625638158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2231066436625638158'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-determine-gender-from-first-name.html' title='Re: Determine gender from first name'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8518095061384145283</id><published>2012-01-25T00:49:00.001-08:00</published><updated>2012-01-25T00:49:40.911-08:00</updated><title type='text'>Determine gender from first name</title><content type='html'>This is not a django-specific question, but I couldn&amp;#39;t find anything&lt;br&gt;useful on the subject and have no better place to ask.&lt;p&gt;Let&amp;#39;s say I want to put &amp;quot;welcome {{user.first_name}}&amp;quot; on top of my&lt;br&gt;template. In many languages, &amp;quot;welcome&amp;quot; has to be declined by gender. I&lt;br&gt;have no use for the user&amp;#39;s gender otherwise, so I don&amp;#39;t want to ask&lt;br&gt;for it in the registration process.&lt;p&gt;How can I go about this? Is there a publicly available database of&lt;br&gt;first names divided by language and gender? A public web-service that&lt;br&gt;guesstimates the gender?&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8518095061384145283?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8518095061384145283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/determine-gender-from-first-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8518095061384145283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8518095061384145283'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/determine-gender-from-first-name.html' title='Determine gender from first name'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7016207072309920992</id><published>2012-01-24T22:40:00.001-08:00</published><updated>2012-01-24T22:40:56.653-08:00</updated><title type='text'>Re: django docs __unicode__ return u'%s %s</title><content type='html'>If I may say, &amp;#39;u&amp;#39; makes it easy to return variable with any hassle.&lt;br&gt;And %s rep each string in your script. I think there should be other&lt;br&gt;ways to go about this. Hope you get my point?&lt;p&gt;kenneth gonsalves wrote:&lt;br&gt;&amp;gt; On Tue, 2012-01-24 at 18:33 -0600, James Bennett wrote:&lt;br&gt;&amp;gt; &amp;gt; On Tue, Jan 24, 2012 at 5:04 PM, Krondaj &amp;lt;&lt;a href="mailto:c.d.smith9@gmail.com"&gt;c.d.smith9@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; what does the u&amp;#39;%s %s&amp;#39; % mean... I cannot find any exaplanation of&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; this in the docs?&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &amp;gt; It&amp;#39;s not covered in Django&amp;#39;s documentation because it&amp;#39;s a standard&lt;br&gt;&amp;gt; &amp;gt; feature of the Python programming language -- this is basic Python&lt;br&gt;&amp;gt; &amp;gt; string formatting, which follows similar conventions to printf()-style&lt;br&gt;&amp;gt; &amp;gt; formatting in other languages.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; soon to be deprecated in favour of using format.&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; regards&lt;br&gt;&amp;gt; Kenneth Gonsalves&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7016207072309920992?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7016207072309920992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_5927.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7016207072309920992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7016207072309920992'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_5927.html' title='Re: django docs __unicode__ return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1101489884074660926</id><published>2012-01-24T22:37:00.001-08:00</published><updated>2012-01-24T22:37:29.595-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>On Tue, 2012-01-24 at 19:19 -0800, JJ Zolper wrote:&lt;br&gt;&amp;gt; I am interested in PostgreSQL. I&amp;#39;ve heard it is good to use along with&lt;br&gt;&amp;gt; Django. More specifically to work with GIS. I&amp;#39;m very interested in the&lt;br&gt;&amp;gt; Geographical uses of Django. In particular GeoDjango. As I continued&lt;br&gt;&amp;gt; to learn more about this web framework I hope to be able to work with&lt;br&gt;&amp;gt; databases such as PostgreSQL and work with Geographical&lt;br&gt;&amp;gt; information/code. Maybe this helps give a more representation of what&lt;br&gt;&amp;gt; I want to do with Django. I see on GeoDjango&amp;#39;s documentation that the&lt;br&gt;&amp;gt; Linux mascot Tux is there. I keep thinking I am wasting my own time&lt;br&gt;&amp;gt; with Windows here and that my real destiny here is the real&lt;br&gt;&amp;gt; programmers language. To put it in short terms. Do you think that is&lt;br&gt;&amp;gt; true?&lt;p&gt;yes - especially if you are using OSM, postgresql is essential.&lt;br&gt;-- &lt;br&gt;regards&lt;br&gt;Kenneth Gonsalves&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1101489884074660926?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1101489884074660926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_176.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1101489884074660926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1101489884074660926'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_176.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-503557106550058195</id><published>2012-01-24T22:33:00.000-08:00</published><updated>2012-01-24T22:34:23.543-08:00</updated><title type='text'>Re: django docs __unicode__ return u'%s %s</title><content type='html'>On Tue, 2012-01-24 at 18:33 -0600, James Bennett wrote:&lt;br&gt;&amp;gt; On Tue, Jan 24, 2012 at 5:04 PM, Krondaj &amp;lt;&lt;a href="mailto:c.d.smith9@gmail.com"&gt;c.d.smith9@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; &amp;gt; what does the u&amp;#39;%s %s&amp;#39; % mean... I cannot find any exaplanation of&lt;br&gt;&amp;gt; &amp;gt; this in the docs?&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; It&amp;#39;s not covered in Django&amp;#39;s documentation because it&amp;#39;s a standard&lt;br&gt;&amp;gt; feature of the Python programming language -- this is basic Python&lt;br&gt;&amp;gt; string formatting, which follows similar conventions to printf()-style&lt;br&gt;&amp;gt; formatting in other languages. &lt;p&gt;soon to be deprecated in favour of using format.&lt;br&gt;-- &lt;br&gt;regards&lt;br&gt;Kenneth Gonsalves&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-503557106550058195?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/503557106550058195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_8156.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/503557106550058195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/503557106550058195'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_8156.html' title='Re: django docs __unicode__ return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-3225025499126077312</id><published>2012-01-24T21:01:00.001-08:00</published><updated>2012-01-24T21:05:25.440-08:00</updated><title type='text'>Re: django docs __unicode__  return u'%s %s</title><content type='html'>rOn Tue, 24 Jan 2012 15:04:32 -0800 (PST), Krondaj&lt;br&gt;&amp;lt;&lt;a href="mailto:c.d.smith9@gmail.com"&gt;c.d.smith9@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;p&gt;&lt;br&gt;&amp;gt;        return u&amp;#39;%s %s&amp;#39; % (self.first_name, self.last_name)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;what does the u&amp;#39;%s %s&amp;#39; % mean... I cannot find any exaplanation of&lt;br&gt;&amp;gt;this in the docs?&lt;br&gt;&amp;gt;&lt;br&gt;	As mentioned, this is standard Python (pre 3.x) string interpolation&lt;br&gt;(formatting).&lt;p&gt;	u&amp;quot;any string&amp;quot;&lt;br&gt;defines &amp;quot;any string&amp;quot; to be unicode rather than 7-bit ASCII; in Python&lt;br&gt;3.x, all strings are unicode and one needs to specify if plain bytes are&lt;br&gt;needed.&lt;p&gt;	&amp;quot;some string with %placeholders&amp;quot; % (some, tuple, of, values)&lt;br&gt;replaces the placeholders with a textual representation of the values&lt;br&gt;provided. The %s placeholder is most common as it handles any object&lt;br&gt;that has a method to produce a string representation ( __str__(self) )&lt;br&gt;-- which is pretty much anything. One can use others -- similar to the C&lt;br&gt;runtime library printf() format strings.&lt;br&gt;-- &lt;br&gt;	Wulfraed                 Dennis Lee Bieber         AF6VN&lt;br&gt;        &lt;a href="mailto:wlfraed@ix.netcom.com"&gt;wlfraed@ix.netcom.com&lt;/a&gt;    &lt;a href="HTTP://wlfraed.home.netcom.com/"&gt;HTTP://wlfraed.home.netcom.com/&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-3225025499126077312?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/3225025499126077312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_5273.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3225025499126077312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3225025499126077312'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_5273.html' title='Re: django docs __unicode__  return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-962395588420057923</id><published>2012-01-24T21:01:00.000-08:00</published><updated>2012-01-24T21:02:29.614-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>On Tue, 24 Jan 2012 12:13:58 -0800 (PST), JJ Zolper &amp;lt;&lt;a href="mailto:coding@madtrak.com"&gt;coding@madtrak.com&lt;/a&gt;&amp;gt;&lt;br&gt;wrote:&lt;p&gt;&amp;gt;&lt;br&gt;&amp;gt;Being new to all this I feel that I might need to just start out with a &lt;br&gt;&amp;gt;command prompt working with Django and something else... another command &lt;br&gt;&amp;gt;prompt or VS to create my python files.&lt;br&gt;&amp;gt;&lt;br&gt;	The main thing to take into account is the division between being IN&lt;br&gt;the interpreter and being in a command shell.&lt;p&gt;	&amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;quot; is the normal prompt from inside an interactive Python&lt;br&gt;interpreter session. At this level you can execute Python /statements/.&lt;p&gt;	Any example that reads something like&lt;p&gt;		[python] &amp;lt;filename&amp;gt;.py &amp;lt;arguments&amp;gt;&lt;p&gt;is meant for a command shell. Actually typing &amp;quot;python&amp;quot; first may be&lt;br&gt;optional if {Linux/UNIX: the .py file starts with a proper #! line&lt;br&gt;identifying the Python interpreter to be used | Windows: .py files have&lt;br&gt;been defined as an &amp;quot;executable&amp;quot; extension (in which case, even the .py&lt;br&gt;may be optional) AND .py files have been associated with the Python&lt;br&gt;interpreter}.&lt;p&gt;	In many of the (I)DEs (PythonWin, IDLE, probably the various EMACS&lt;br&gt;and VI configurations, SciTE), one can edit a file, save it (some will&lt;br&gt;save for you if needed), then hit some key combo which will spawn a&lt;br&gt;Python interpreter passing it the file for execution. You may even be&lt;br&gt;prompted to supply command line arguments (PythonWin, I know does this).&lt;br&gt;-- &lt;br&gt;	Wulfraed                 Dennis Lee Bieber         AF6VN&lt;br&gt;        &lt;a href="mailto:wlfraed@ix.netcom.com"&gt;wlfraed@ix.netcom.com&lt;/a&gt;    &lt;a href="HTTP://wlfraed.home.netcom.com/"&gt;HTTP://wlfraed.home.netcom.com/&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-962395588420057923?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/962395588420057923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_1746.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/962395588420057923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/962395588420057923'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_1746.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1823645445799948039</id><published>2012-01-24T19:54:00.001-08:00</published><updated>2012-01-24T19:54:58.352-08:00</updated><title type='text'>Re: SQL and times for ajax requests?</title><content type='html'>I figured out a simple workaround , instead of returning a xml or json&lt;br&gt;response from view I temporarily changed the view to send back a html&lt;br&gt;page and Django-debug-toolbar gave me the data.&lt;p&gt;It is pain to do it for all ajax requests but I can do it for one I am&lt;br&gt;most concerned about.&lt;p&gt;On Jan 24, 7:42&amp;#160;pm, ydjango &amp;lt;&lt;a href="mailto:neerash...@gmail.com"&gt;neerash...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; How can I trace SQL issued by orm and time taken in ajax requests?&lt;br&gt;&amp;gt; Django-debug-toolbar does not work for ajax requests.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1823645445799948039?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1823645445799948039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-sql-and-times-for-ajax-requests.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1823645445799948039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1823645445799948039'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-sql-and-times-for-ajax-requests.html' title='Re: SQL and times for ajax requests?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6169062321334876228</id><published>2012-01-24T19:42:00.000-08:00</published><updated>2012-01-24T19:43:11.380-08:00</updated><title type='text'>SQL and times for ajax requests?</title><content type='html'>How can I trace SQL issued by orm and time taken in ajax requests?&lt;br&gt;Django-debug-toolbar does not work for ajax requests.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6169062321334876228?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6169062321334876228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/sql-and-times-for-ajax-requests.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6169062321334876228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6169062321334876228'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/sql-and-times-for-ajax-requests.html' title='SQL and times for ajax requests?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6838128309327662159</id><published>2012-01-24T19:19:00.000-08:00</published><updated>2012-01-24T19:20:16.260-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>Sam Lai,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I am interested in PostgreSQL. I've heard it is good to use along with Django. More specifically to work with GIS. I'm very interested in the Geographical uses of Django. In particular GeoDjango. As I continued to learn more about this web framework I hope to be able to work with databases such as PostgreSQL and work with Geographical information/code. Maybe this helps give a more representation of what I want to do with Django. I see on GeoDjango's documentation that the Linux mascot Tux is there. I keep thinking I am wasting my own time with Windows here and that my real destiny here is the real programmers language. To put it in short terms. Do you think that is true?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I want to unleash the power here of the interactiveness as well as be able to have my Python/Django to work alongside with GeoDjango and PostgreSQL.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Do you know anything about this?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Is CPython along the horizon for me because IronPython will not interact well with Django like you said? Should I consider trying to install Python/Django/CPython, etc on Linux to start my development?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks,&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;JJ&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/PQOX8P9m77YJ"&gt;https://groups.google.com/d/msg/django-users/-/PQOX8P9m77YJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6838128309327662159?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6838128309327662159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_811.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6838128309327662159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6838128309327662159'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_811.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2403263567012617464</id><published>2012-01-24T17:26:00.000-08:00</published><updated>2012-01-24T17:27:19.057-08:00</updated><title type='text'>is this the correct way to form a model of my data?</title><content type='html'>Hi everyone,&lt;p&gt;I&amp;#39;d really appreciate your help here!&lt;p&gt;I have just designed a model for my data that I want to publish as a&lt;br&gt;webform, that people fill in, however there are only certain bits I&lt;br&gt;want them to fill in as i&amp;#39;ll be filling the rest in later as the work&lt;br&gt;progresses.  is the model here correct (i&amp;#39;m not sure if i&amp;#39;ve imported&lt;br&gt;all the correct modules).&lt;br&gt;I have put an asterisk next to the ones i don&amp;#39;t want them to be able&lt;br&gt;to fill in (i&amp;#39;d ideally like to have them have to input a user name&lt;br&gt;and password)... but i don&amp;#39;t know how to do that... i&amp;#39;m only at the&lt;br&gt;model stage at the moment.&lt;p&gt;i have changed the names to protect the guilty!&lt;p&gt;My questions are i suppose:&lt;br&gt;1). is the model correct?&lt;p&gt;2). do i need to change something in the asterisked code (this is not&lt;br&gt;actually asterisked in my model.py code) so that only the person who&lt;br&gt;is requested to do the work can add these details&lt;p&gt;3). have i imported all the necessary modules&lt;p&gt;4). at the is the commented (hashed) bit a good idea - should I do&lt;br&gt;what i&amp;#39;m thinking of doing in the commented field.&lt;p&gt;5). do you have any suggestions??&lt;p&gt;here is the code:&lt;p&gt;from django.db import models, datetime&lt;p&gt;# Models for Resource Request Form.&lt;br&gt;CHK_APP_CHOICES = (&lt;br&gt;    (&amp;#39;STA&amp;#39;, &amp;#39;Simon Abbey&amp;#39;&amp;#39;),&lt;br&gt;    (&amp;#39;JK&amp;#39;, &amp;#39;James Kong&amp;#39;),&lt;br&gt;    (&amp;#39;SF&amp;#39;, &amp;#39;Stavros Flatley&amp;#39;),&lt;br&gt;)&lt;p&gt;class RrsForm(models.Model)&lt;br&gt;    date_created = models.DateTimeField(auto_now_add=True)&lt;br&gt;    last_modified = models.DateTimeField(auto_now=True)&lt;br&gt;    project_and_task = models.CharField(max_length=200)&lt;br&gt;    project_number = models.IntegerField()&lt;br&gt;    requested_by =  models.CharField(max_length=128)&lt;br&gt;    email_address = models.EmailField(max_length=75)&lt;br&gt;    resource_person = models.CharField(&amp;quot;name of person to request&lt;br&gt;resource from&amp;quot;, max_length = 128)&lt;br&gt;    location = models.CharField(&amp;quot;location of requester&amp;quot;, max_length=&lt;br&gt;64)&lt;br&gt;    details = models.TextField(&amp;quot;detailed description of task&amp;quot;)&lt;br&gt;    to_check_by = models.CharField(max_length=3,&lt;br&gt;choices=CHK_APP_CHOICES)&lt;br&gt;    to_approve_by = models.CharField(max_length=3,&lt;br&gt;choices=CHK_APP_CHOICES)&lt;br&gt;    internal_contacts = models.CharField(max_length=200)&lt;br&gt;    external_contacts = models.CharField(max_length=200)&lt;br&gt;    exp_hours = models.IntegerField(&amp;quot;expected hours&amp;quot;, max_length=4)&lt;br&gt;*   act_hours = models.IntegerField(&amp;quot;actual hours&amp;quot;, max_length=4)&lt;br&gt;*    hours_dev = models.CharField(&amp;quot;reason for any deviationin hours&amp;quot;,&lt;br&gt;max_length=200)&lt;br&gt;    exp_date_checking = models.DateField(&amp;quot;expected release date for&lt;br&gt;checking&amp;quot;)&lt;br&gt;*   act_date_checking = models.DateField(&amp;quot;actual release date for&lt;br&gt;checking&amp;quot;)&lt;br&gt;*   chk_date_dev = models.CharField(&amp;quot;reason for any deviation check&lt;br&gt;date&amp;quot;, max_length=200)&lt;br&gt;    des_output = models.CharField(&amp;quot;desired format of output: eg formal/&lt;br&gt;informal document, email, verbal, meeting, other (specify)&amp;quot;,&lt;br&gt;max_length=200)&lt;br&gt;    exp_date_final = models.DateField(&amp;quot;expected release date for final&lt;br&gt;document&amp;quot;)&lt;br&gt;*   act_date_final = models.DateField(&amp;quot;actual release date for final&lt;br&gt;document&amp;quot;)&lt;br&gt;*   fin_date_dev = models.CharField(&amp;quot;reason for any deviation for&lt;br&gt;final document&amp;quot;, max_length=200)&lt;br&gt;*   document_num_loc = models.CharField(&amp;quot;path of file on work server&amp;quot;,&lt;br&gt;max_length=200)&lt;br&gt;    # document saved to area on webserver as well&lt;br&gt;*   upload_doc = models.FileField(upload_to&amp;#39;documents&amp;#39;)&lt;br&gt;*   comments = models.TextField()&lt;br&gt;*   rel_prev_work = models.TextField(&amp;quot;related to previous work&amp;quot;)&lt;br&gt;*    keywords = models.TextField()&lt;p&gt;    def __unicode__(self):&lt;br&gt;        return (self.project_and_task, self.project_number,&lt;br&gt;self.date_created, self.requested_by)&lt;p&gt;# may change requested_by to:&lt;br&gt;#   requested_by =  models.ForeignKey(Person)&lt;br&gt;#&lt;br&gt;## and then add a Person class after the RrsForm class?&lt;br&gt;#&lt;br&gt;#class Person(models.Model)&lt;br&gt;#    first_name = models.CharField(max_length=50)&lt;br&gt;#    last_name = models.CharField(max_length=50)&lt;br&gt;#&lt;br&gt;#&lt;p&gt;END OF CODE&lt;p&gt;&lt;br&gt;Thanks!&lt;p&gt;Krondaj&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2403263567012617464?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2403263567012617464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/is-this-correct-way-to-form-model-of-my.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2403263567012617464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2403263567012617464'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/is-this-correct-way-to-form-model-of-my.html' title='is this the correct way to form a model of my data?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5680761872459548080</id><published>2012-01-24T16:57:00.000-08:00</published><updated>2012-01-24T16:56:56.868-08:00</updated><title type='text'>Re: Deverifying a URLField</title><content type='html'>On 25/01/2012 10:30am, Rich Jones wrote:&lt;br&gt;&amp;gt; Hello, all!&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I have a small conundrum I could use a hand with.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I have a deployed Django application with a Model which has a&lt;br&gt;&amp;gt; URLField:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; project_homepage = models.URLField(&amp;#39;Project Homepage&amp;#39;, blank=True)&lt;p&gt;How about ...&lt;p&gt;project_homepage = models.URLField(&amp;#39;Project Homepage&amp;#39;, blank=True,&lt;br&gt;                                   verify_exists=(not settings.DEBUG))&lt;p&gt;... which should avoid verification during development but make it &lt;br&gt;happen in production.&lt;p&gt;&amp;gt;&lt;br&gt;&amp;gt; and a ModelForm to create the parent object.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Currently, the application checks to see if this is a valid URL. I&lt;br&gt;&amp;gt; would like this to be unvalidated instead.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; How do I go about changing it? Will I need to do a database migration&lt;br&gt;&amp;gt; to do this? Or can I just add a &amp;#39;verified=False&amp;#39; and run syncdb?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks so much!&lt;br&gt;&amp;gt; Rich&lt;br&gt;&amp;gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5680761872459548080?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5680761872459548080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-deverifying-urlfield.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5680761872459548080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5680761872459548080'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-deverifying-urlfield.html' title='Re: Deverifying a URLField'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-3284725656524003483</id><published>2012-01-24T16:33:00.001-08:00</published><updated>2012-01-24T16:33:59.010-08:00</updated><title type='text'>Re: django docs __unicode__ return u'%s %s</title><content type='html'>On Tue, Jan 24, 2012 at 5:04 PM, Krondaj &amp;lt;&lt;a href="mailto:c.d.smith9@gmail.com"&gt;c.d.smith9@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; what does the u&amp;#39;%s %s&amp;#39; % mean... I cannot find any exaplanation of&lt;br&gt;&amp;gt; this in the docs?&lt;p&gt;It&amp;#39;s not covered in Django&amp;#39;s documentation because it&amp;#39;s a standard&lt;br&gt;feature of the Python programming language -- this is basic Python&lt;br&gt;string formatting, which follows similar conventions to printf()-style&lt;br&gt;formatting in other languages.&lt;p&gt;&lt;br&gt;-- &lt;br&gt;&amp;quot;Bureaucrat Conrad, you are technically correct -- the best kind of correct.&amp;quot;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-3284725656524003483?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/3284725656524003483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_24.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3284725656524003483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3284725656524003483'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s_24.html' title='Re: django docs __unicode__ return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7841341778573763954</id><published>2012-01-24T15:30:00.001-08:00</published><updated>2012-01-24T15:30:35.464-08:00</updated><title type='text'>Deverifying a URLField</title><content type='html'>Hello, all!&lt;p&gt;I have a small conundrum I could use a hand with.&lt;p&gt;I have a deployed Django application with a Model which has a&lt;br&gt;URLField:&lt;p&gt;project_homepage = models.URLField(&amp;#39;Project Homepage&amp;#39;, blank=True)&lt;p&gt;and a ModelForm to create the parent object.&lt;p&gt;Currently, the application checks to see if this is a valid URL. I&lt;br&gt;would like this to be unvalidated instead.&lt;p&gt;How do I go about changing it? Will I need to do a database migration&lt;br&gt;to do this? Or can I just add a &amp;#39;verified=False&amp;#39; and run syncdb?&lt;p&gt;Thanks so much!&lt;br&gt;Rich&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7841341778573763954?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7841341778573763954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/deverifying-urlfield.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7841341778573763954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7841341778573763954'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/deverifying-urlfield.html' title='Deverifying a URLField'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7468609327816893789</id><published>2012-01-24T15:06:00.000-08:00</published><updated>2012-01-24T15:07:20.136-08:00</updated><title type='text'>Re: django docs __unicode__ return u'%s %s</title><content type='html'>sorry bottom line should be?&lt;p&gt;as I believe if you take the top example you should be able to do:&lt;br&gt; def __unicode__(self):&lt;br&gt;        return (self.first_name, self.last_name)&lt;p&gt;On Jan 24, 11:04&amp;#160;pm, Krondaj &amp;lt;&lt;a href="mailto:c.d.smi...@gmail.com"&gt;c.d.smi...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hi,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; in the django docs about __unicode__ &amp;#160;it says the following:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class Person(models.Model):&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; first_name = models.CharField(max_length=50)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; last_name = models.CharField(max_length=50)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; def __unicode__(self):&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; return u&amp;#39;%s %s&amp;#39; % (self.first_name, self.last_name)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; what does the u&amp;#39;%s %s&amp;#39; % mean... I cannot find any exaplanation of&lt;br&gt;&amp;gt; this in the docs?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; i&amp;#39;ve seen this in someones code that was kindly lent to me by one of&lt;br&gt;&amp;gt; the RC chat room people:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; return u&amp;#39;ID%s: %s - %s - %s - %s&amp;#39; % (&lt;a href="http://self.id"&gt;self.id&lt;/a&gt;, self.user,&lt;br&gt;&amp;gt; self.question, self.answer, self.get_status_display())&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; but all this u&amp;#39; %s &amp;#160;%s&amp;#39; &amp;#160; %%%sss or what ever is most confusing....&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; is there a document or help guide some where that explains this&lt;br&gt;&amp;gt; nomenclature, or method, system???&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; as I believe if you take the top example you should be able to do:&lt;br&gt;&amp;gt; &amp;#160;def __unicode__(self):&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; return(self.first_name, self.last_name)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; If there is no documentation (for dummies) can anyone explain it to&lt;br&gt;&amp;gt; me??&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Krondaj&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7468609327816893789?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7468609327816893789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7468609327816893789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7468609327816893789'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-django-docs-unicode-return-us-s.html' title='Re: django docs __unicode__ return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8432862226226051109</id><published>2012-01-24T15:04:00.001-08:00</published><updated>2012-01-24T15:04:54.387-08:00</updated><title type='text'>django docs __unicode__  return u'%s %s</title><content type='html'>Hi,&lt;p&gt;in the django docs about __unicode__  it says the following:&lt;p&gt;class Person(models.Model):&lt;br&gt;    first_name = models.CharField(max_length=50)&lt;br&gt;    last_name = models.CharField(max_length=50)&lt;p&gt;    def __unicode__(self):&lt;br&gt;        return u&amp;#39;%s %s&amp;#39; % (self.first_name, self.last_name)&lt;p&gt;what does the u&amp;#39;%s %s&amp;#39; % mean... I cannot find any exaplanation of&lt;br&gt;this in the docs?&lt;p&gt;i&amp;#39;ve seen this in someones code that was kindly lent to me by one of&lt;br&gt;the RC chat room people:&lt;p&gt;return u&amp;#39;ID%s: %s - %s - %s - %s&amp;#39; % (&lt;a href="http://self.id"&gt;self.id&lt;/a&gt;, self.user,&lt;br&gt;self.question, self.answer, self.get_status_display())&lt;p&gt;but all this u&amp;#39; %s  %s&amp;#39;   %%%sss or what ever is most confusing....&lt;p&gt;is there a document or help guide some where that explains this&lt;br&gt;nomenclature, or method, system???&lt;p&gt;as I believe if you take the top example you should be able to do:&lt;br&gt; def __unicode__(self):&lt;br&gt;        return(self.first_name, self.last_name)&lt;p&gt;If there is no documentation (for dummies) can anyone explain it to&lt;br&gt;me??&lt;p&gt;Thanks&lt;p&gt;Krondaj&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8432862226226051109?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8432862226226051109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/django-docs-unicode-return-us-s.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8432862226226051109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8432862226226051109'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/django-docs-unicode-return-us-s.html' title='django docs __unicode__  return u&apos;%s %s'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-13794220896895417</id><published>2012-01-24T12:13:00.000-08:00</published><updated>2012-01-24T12:14:19.563-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>Sam Lai,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thank you so much for taking the time to explain all that to me.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Being new to all this I feel that I might need to just start out with a command prompt working with Django and something else... another command prompt or VS to create my python files.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;However, having read what you posted, would you be able to give me some other options I can use for working with Python?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I know that's a general question and I'm sorry it's asking a lot but to me I see it like this. There is CPython and IronPython. I was under the impression they are both are interpreters. Atleast that's what I read right now. So I suppose I could move over to CPython and use that as my development realm for my Python?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I'm also tempted to trying to instal UNIX/LINUX because I keep seeing lots of videos on youtube where people seem to flawlessly be commanding their Python.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;A lot to respond too I know, any help would be fantastic!&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;JJ Zolper&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/K8mvTguVjc4J"&gt;https://groups.google.com/d/msg/django-users/-/K8mvTguVjc4J&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-13794220896895417?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/13794220896895417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_1435.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/13794220896895417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/13794220896895417'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_1435.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-3804936142838375727</id><published>2012-01-24T12:07:00.000-08:00</published><updated>2012-01-24T12:12:08.134-08:00</updated><title type='text'>Re: Help Me With This Form</title><content type='html'>Your view doesn&amp;#39;t pass a context to the template.  It needs to do this,&lt;br&gt;and your form needs to be part of the context.&lt;p&gt;&lt;br&gt;something like:&lt;p&gt;from myweb.meekapp.models import mobForm&lt;br&gt;from django.shortcuts import render_to_response&lt;br&gt;from django.template import RequestContext&lt;p&gt;def home(request):&lt;br&gt;    return render_to_response(&amp;#39;home.html&amp;#39;, {&amp;#39;mobForm&amp;#39;: mobForm},&lt;br&gt;                             context_instance=RequestContext(requeoust))&lt;p&gt;The RequestContext bit lets you access information about the HTTP&lt;br&gt;request from inside your template.  Not strictly necessary in this case,&lt;br&gt;but it&amp;#39;s a good habit to get into.  You never know when you&amp;#39;re going to&lt;br&gt;want to know where the user was referred from, or what browser they&amp;#39;re&lt;br&gt;using, for instance.&lt;p&gt;Cheers,&lt;br&gt;Cliff&lt;p&gt;&lt;p&gt;On Tue, 2012-01-24 at 05:32 -0800, coded kid wrote:&lt;br&gt;&amp;gt; Hi guys, I&amp;#39;m trying to let this form display but it&amp;#39;s not displaying&lt;br&gt;&amp;gt; in my browser. When I open up the browser, only a blank page shows up.&lt;br&gt;&amp;gt; How can I go about it? Below are my codes:&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; In models.py&lt;br&gt;&amp;gt; from django.db import models&lt;br&gt;&amp;gt; from django.forms import ModelForm, Textarea, HiddenInput&lt;br&gt;&amp;gt; from django.contrib.auth.models import User&lt;br&gt;&amp;gt; from string import join&lt;br&gt;&amp;gt; from settings import MEDIA_ROOT&lt;br&gt;&amp;gt; class group(models.Model):&lt;br&gt;&amp;gt;     desc=models.TextField(max_length=25)&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;     def __unicode__(self):&lt;br&gt;&amp;gt;         return unicode(&lt;a href="http://self.id"&gt;self.id&lt;/a&gt;)&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;     def get_absolute_url(self):&lt;br&gt;&amp;gt;         return &amp;quot;/g/%s&amp;quot; % unicode(&lt;a href="http://self.id"&gt;self.id&lt;/a&gt;)&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;     class Admin:&lt;br&gt;&amp;gt;         list_display=(&amp;#39;id&amp;#39;,&amp;#39;desc&amp;#39;)&lt;br&gt;&amp;gt;     class Meta:&lt;br&gt;&amp;gt;         ordering=[&amp;#39;-id&amp;#39;]&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; class mob (models.Model):&lt;br&gt;&amp;gt;     author=models.ForeignKey(User,blank=True, null=True)&lt;br&gt;&amp;gt;     state_province=models.CharField(max_length=50)&lt;br&gt;&amp;gt;     body=models.TextField(max_length=10000)&lt;br&gt;&amp;gt;     date=models.DateTimeField(&amp;#39;Date&amp;#39;)&lt;br&gt;&amp;gt;     group=models.ForeignKey(group)&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;     def __unicode__(self):&lt;br&gt;&amp;gt;         return u&amp;quot;%s - %s - %s - %s&amp;quot; % (self.author,&lt;br&gt;&amp;gt; self.state_province, self.body, self.date)&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;     def get_absolute_url(self):&lt;br&gt;&amp;gt;         return &amp;quot;/post/%s/&amp;quot; % unicode(&lt;a href="http://self.id"&gt;self.id&lt;/a&gt;)&lt;br&gt;&amp;gt;     def get_author_url(self):&lt;br&gt;&amp;gt;         return &amp;quot;/u/%s/p/0&amp;quot; % (self.author)&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;     class Admin:&lt;br&gt;&amp;gt;         list_display=(&amp;#39;author&amp;#39;,&amp;#39;body&amp;#39;,&amp;#39;date&amp;#39;)&lt;br&gt;&amp;gt;         date_hierarchy=&amp;#39;date&amp;#39;&lt;br&gt;&amp;gt;     class Meta:&lt;br&gt;&amp;gt;         ordering=[&amp;#39;-date&amp;#39;]&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; class mobForm(ModelForm):&lt;br&gt;&amp;gt;     class Meta:&lt;br&gt;&amp;gt;         model=mob&lt;br&gt;&amp;gt;         fields=(&amp;#39;body&amp;#39;,&amp;#39;author&amp;#39;,&amp;#39;state_province&amp;#39;,&amp;#39;date&amp;#39;,&amp;#39;group&amp;#39;)&lt;br&gt;&amp;gt;         widgets={&lt;br&gt;&amp;gt;             &amp;#39;body&amp;#39;:Textarea(attrs={&amp;quot;rows&amp;quot;:2, &amp;quot;cols&amp;quot;:40}),&lt;br&gt;&amp;gt;             &amp;#39;author&amp;#39;: (HiddenInput),&lt;br&gt;&amp;gt;             &amp;#39;state_province&amp;#39;: (HiddenInput),&lt;br&gt;&amp;gt;             &amp;#39;date&amp;#39;:(HiddenInput),&lt;br&gt;&amp;gt;             &amp;#39;group&amp;#39;: (HiddenInput),&lt;br&gt;&amp;gt;         }&lt;br&gt;&amp;gt; class grpForm(ModelForm):&lt;br&gt;&amp;gt;     class Meta:&lt;br&gt;&amp;gt;         model=group&lt;br&gt;&amp;gt;         field=(&amp;#39;desc&amp;#39;)&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; In views.py&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; from myweb.meekapp.models import mobForm&lt;br&gt;&amp;gt; from django.shortcuts import render_to_response&lt;br&gt;&amp;gt; from django.http import HttpResponse&lt;br&gt;&amp;gt; from django.template import RequestContext&lt;br&gt;&amp;gt; from django.http import HttpResponseRedirect&lt;br&gt;&amp;gt; from django.views.decorators.csrf import csrf_exempt&lt;br&gt;&amp;gt; from django.contrib.auth.decorators import login_required&lt;br&gt;&amp;gt; from django.contrib.auth.views import login, logout&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; def home(request):&lt;br&gt;&amp;gt; return render_to_response(&amp;#39;home.html&amp;#39;)&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; in my template:&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; {% extends &amp;quot;base.html&amp;quot; %}&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; {% load pagination_tags %}&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; {% autopaginate object_list %}&lt;br&gt;&amp;gt; {% block newsol %}&lt;br&gt;&amp;gt; {% if user.is_authenticated %}&lt;br&gt;&amp;gt; &amp;lt;div class=&amp;quot;form&amp;quot;&amp;gt;&lt;br&gt;&amp;gt; 	&amp;lt;form action=&amp;quot;.&amp;quot; method=&amp;quot;post&amp;quot; enctype=&amp;quot;multipart/form-data&amp;quot;&amp;gt;&lt;br&gt;&amp;gt; 	  &amp;lt;table&amp;gt;&lt;br&gt;&amp;gt; 		{{ mobForm }}&lt;br&gt;&amp;gt; 	  &amp;lt;/table&amp;gt;&lt;br&gt;&amp;gt; 	  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Update&amp;quot; /&amp;gt;&lt;br&gt;&amp;gt; 	&amp;lt;/form&amp;gt;&lt;br&gt;&amp;gt; &amp;lt;/div&amp;gt;&lt;br&gt;&amp;gt; {% endif %}&lt;br&gt;&amp;gt; {% paginate %}&lt;br&gt;&amp;gt; {% endblock newsol%}&lt;br&gt;&amp;gt; How can I make the mobForm display? Thanks!&lt;br&gt;&amp;gt; &lt;p&gt;&lt;br&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-3804936142838375727?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/3804936142838375727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-help-me-with-this-form_24.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3804936142838375727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3804936142838375727'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-help-me-with-this-form_24.html' title='Re: Help Me With This Form'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8980337208108216404</id><published>2012-01-24T11:39:00.000-08:00</published><updated>2012-01-24T11:40:35.559-08:00</updated><title type='text'>Re: Help Me With This Form</title><content type='html'>coded kid wrote:&lt;p&gt;&amp;gt; Hi guys, I&amp;#39;m trying to let this form display but it&amp;#39;s not displaying&lt;br&gt;&amp;gt; in my browser. When I open up the browser, only a blank page shows up.&lt;br&gt;&amp;gt; How can I go about it? Below are my codes:&lt;br&gt;&amp;gt; &lt;br&gt;&amp;lt;snip /&amp;gt;&lt;p&gt;&lt;br&gt;Hello,&lt;p&gt;In the template, you probably want &lt;p&gt;{{ mobForm.as_table }}&lt;p&gt;For debugging purposes I suggest removing the authentication check until &lt;br&gt;you&amp;#39;re sure the form is actually rendered.&lt;p&gt;Cheers,&lt;p&gt;Kev&lt;p&gt;&lt;br&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8980337208108216404?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8980337208108216404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-help-me-with-this-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8980337208108216404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8980337208108216404'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-help-me-with-this-form.html' title='Re: Help Me With This Form'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1639343277531432179</id><published>2012-01-24T10:21:00.001-08:00</published><updated>2012-01-24T10:21:42.112-08:00</updated><title type='text'>Re: get_FOO_display() for generic/variable choice fields</title><content type='html'>Maybe try:&lt;p&gt;val = getattr(obj, &amp;#39;get_%s_display&amp;#39; % &lt;a href="http://field.name"&gt;field.name&lt;/a&gt;)()&lt;p&gt;&lt;br&gt;On 1/24/12, katstevens &amp;lt;&lt;a href="mailto:kat.stevens@gmail.com"&gt;kat.stevens@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; I have a model ContactDetail with two choice fields,&lt;br&gt;&amp;gt; ContactDetail.dialing_code and ContactDetail.country. These use the&lt;br&gt;&amp;gt; standard tuples (&amp;#39;AU&amp;#39;, &amp;#39;Australia&amp;#39;) and so on.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I know I can use get_country_display() and get_dialing_code_display()&lt;br&gt;&amp;gt; to show the longer values, but is there a more generic version where&lt;br&gt;&amp;gt; the field name is replaced with a variable?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; For example, I want to create a customised .csv file from the model&lt;br&gt;&amp;gt; data. I can loop through the fields from my model and get the shorter&lt;br&gt;&amp;gt; attribute values without any problems. However I&amp;#39;d like to do&lt;br&gt;&amp;gt; something like this:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; 	obj = queryset[my_item]     # an instance of ContactDetail()&lt;br&gt;&amp;gt; 	model = queryset.model     # ContactDetail() itself&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; 	for field in model._meta.fields:&lt;br&gt;&amp;gt; 		val = getattr(obj, &lt;a href="http://field.name"&gt;field.name&lt;/a&gt;)      # gets the shorter version&lt;br&gt;&amp;gt; 		if field.choices:	         # if field is ChoiceField, convert data&lt;br&gt;&amp;gt; to display mode&lt;br&gt;&amp;gt; 			val = obj.get_field_display()&lt;br&gt;&amp;gt; 		row.append(val)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Obviously the &amp;#39;val = obj.get_field_display()&amp;#39; line doesn&amp;#39;t work!&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Is there a generic way of doing this (something like&lt;br&gt;&amp;gt; obj.get_display(fieldname) ?) or am I going to have to hard code&lt;br&gt;&amp;gt; separate checks for get_country_display() and&lt;br&gt;&amp;gt; get_dialing_code_display()?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Ideally I would like to use this particular function for other models&lt;br&gt;&amp;gt; and keep the fields as generic as possible.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1639343277531432179?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1639343277531432179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-getfoodisplay-for-genericvariable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1639343277531432179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1639343277531432179'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-getfoodisplay-for-genericvariable.html' title='Re: get_FOO_display() for generic/variable choice fields'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6321538404997973345</id><published>2012-01-24T09:00:00.001-08:00</published><updated>2012-01-24T09:00:47.501-08:00</updated><title type='text'>Re: CsrfViewMiddleware from a xml post?</title><content type='html'>Hahaha, ya I saw that. I was hoping that it could just be inserted&lt;br&gt;into the request header easily.&lt;br&gt;That would be mandatory if one was going to be utilizing user post&lt;br&gt;data frequently however.&lt;p&gt;For what it&amp;#39;s worth, I simply used this instead --&amp;gt;&lt;p&gt;&amp;lt;form id=&amp;quot;vote&amp;quot; action=&amp;quot;/votingConfirm/&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;{% csrf_token %}&lt;br&gt;&amp;lt;input name=&amp;quot;person&amp;quot; type=&amp;quot;text&amp;quot;&amp;gt;&lt;br&gt;&amp;lt;/form&amp;gt;&lt;p&gt;function confirmation(person) {&lt;br&gt;	var answer = confirm(&amp;#39;You are about to cast your vote for &amp;#39;+person)&lt;br&gt;	if ( answer )&lt;br&gt; 	   {&lt;br&gt;		 var submitForm = document.getElementById(&amp;quot;vote&amp;quot;);&lt;br&gt; 		 document.body.appendChild(submitForm);&lt;br&gt;       var element = document.getElementById(&amp;quot;vote&amp;quot;);&lt;br&gt;       element.person.value = person;&lt;br&gt;       element.submit();&lt;br&gt;     }&lt;p&gt;On Tue, Jan 24, 2012 at 11:39 AM, Reinout van Rees &amp;lt;&lt;a href="mailto:reinout@vanrees.org"&gt;reinout@vanrees.org&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; On 24-01-12 16:47, Robert Steckroth wrote:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Hey Gang, is it possible to include a csrf token with a xml post?&lt;br&gt;&amp;gt;&amp;gt; It looks like there are options in the view to control this but&lt;br&gt;&amp;gt;&amp;gt; getting into the header would be nice.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Django made it easy for you! There&amp;#39;s a javascript snippet you can copy/paste&lt;br&gt;&amp;gt; that takes care of including the csrf token:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &lt;a href="https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax"&gt;https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Reinout&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; Reinout van Rees &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;a href="http://reinout.vanrees.org/"&gt;http://reinout.vanrees.org/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href="mailto:reinout@vanrees.org"&gt;reinout@vanrees.org&lt;/a&gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;a href="http://www.nelen-schuurmans.nl/"&gt;http://www.nelen-schuurmans.nl/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;quot;If you&amp;#39;re not sure what to do, make something. -- Paul Graham&amp;quot;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;p&gt;&lt;p&gt;-- &lt;br&gt;Bust0ut Surgemcgee&amp;#160; ---&lt;br&gt;BudTVNetwork.com&lt;br&gt;RadioWeedShow.com&lt;br&gt;PBDefence.com&lt;br&gt;&amp;quot;Bringing entertainment to Unix&amp;quot;&lt;br&gt;&amp;quot;Finding the exit without looking&amp;quot;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6321538404997973345?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6321538404997973345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-csrfviewmiddleware-from-xml-post_24.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6321538404997973345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6321538404997973345'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-csrfviewmiddleware-from-xml-post_24.html' title='Re: CsrfViewMiddleware from a xml post?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-3769918185978122373</id><published>2012-01-24T08:39:00.000-08:00</published><updated>2012-01-24T08:40:32.287-08:00</updated><title type='text'>Re: CsrfViewMiddleware from a xml post?</title><content type='html'>On 24-01-12 16:47, Robert Steckroth wrote:&lt;br&gt;&amp;gt; Hey Gang, is it possible to include a csrf token with a xml post?&lt;br&gt;&amp;gt; It looks like there are options in the view to control this but&lt;br&gt;&amp;gt; getting into the header would be nice.&lt;p&gt;Django made it easy for you! There&amp;#39;s a javascript snippet you can &lt;br&gt;copy/paste that takes care of including the csrf token:&lt;p&gt;&lt;a href="https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax"&gt;https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax&lt;/a&gt;&lt;p&gt;&lt;p&gt;Reinout&lt;p&gt;-- &lt;br&gt;Reinout van Rees                    &lt;a href="http://reinout.vanrees.org/"&gt;http://reinout.vanrees.org/&lt;/a&gt;&lt;br&gt;&lt;a href="mailto:reinout@vanrees.org"&gt;reinout@vanrees.org&lt;/a&gt;             &lt;a href="http://www.nelen-schuurmans.nl/"&gt;http://www.nelen-schuurmans.nl/&lt;/a&gt;&lt;br&gt;&amp;quot;If you&amp;#39;re not sure what to do, make something. -- Paul Graham&amp;quot;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-3769918185978122373?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/3769918185978122373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-csrfviewmiddleware-from-xml-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3769918185978122373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/3769918185978122373'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-csrfviewmiddleware-from-xml-post.html' title='Re: CsrfViewMiddleware from a xml post?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-6075377823550573823</id><published>2012-01-24T08:21:00.001-08:00</published><updated>2012-01-24T08:21:57.509-08:00</updated><title type='text'>[Informação ARQCOOP] Conservação e Reabilitação / Eco-Urbanismo / Equipamentos Sociais / ArchiCAD / Acompanhamento Ambiental / Arquitecturas de Terra / Imobiliário / Créditos OA e InCI</title><content type='html'>&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;A &lt;b style&gt;ARQCOOP&lt;/b&gt; &lt;span class="texto1"&gt;&lt;span style&gt;&lt;font color="#333333"&gt;é uma instituição sem fins lucrativos e a&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;posta em formação inovadora, prática e actualizada, melhorando conhecimentos e práticas profissionais e contribuindo para a sua empregabilidade ou desenvolvimento dos seus negócios.&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;As actividades formativas são abertas a todos os interessados, de todas as áreas de conhecimento, não existindo pré-requisitos nem taxas de inscrição.&lt;b style&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="color:rgb(192,0,0);text-transform:uppercase;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;AcçÕes de Formação, Cursos e Workshops&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;i style&gt;&lt;u&gt;&lt;span style="color:rgb(192,0,0);font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;Lisboa&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Conservação e Reabilitação do Património Edificado&lt;/span&gt;&lt;/a&gt; * &lt;sup&gt;/ &lt;/sup&gt;**&lt;span style&gt;   &lt;/span&gt;&lt;span style&gt; &lt;/span&gt;&lt;span style&gt; &lt;/span&gt;&lt;span style="color:rgb(247,150,70)"&gt;últimas inscrições!!!&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;28 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;28 e 29 de Janeiro + 04 e 05 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;Sábados e Domingos, das 10h00 às 18h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;260 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Eco-Urbanismo e Desenho de Espaços Exteriores&lt;/span&gt;&lt;/a&gt; *&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;12 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;03 e 04 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;6.ª Feira, das 18h00 às 22h00, e Sábado, das 10h00 às 19h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;  &lt;/span&gt;&lt;span style&gt;   &lt;/span&gt;120 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Equipamentos Sociais e de Saúde - Cuidados Continuados&lt;/span&gt;&lt;/a&gt; *&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;16 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;03, 04, 10 e 11 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;6.ª Feira, das 18h00 às 22h00, e Sábado, das 10h00 às 14h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;160 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;ArchiCAD - Curso de Iniciação&lt;/span&gt;&lt;/a&gt; * &lt;span style&gt;  &lt;/span&gt;&lt;span style&gt; &lt;/span&gt;&lt;span style&gt; &lt;/span&gt;&lt;span style="color:rgb(247,150,70)"&gt;últimas inscrições!!!&lt;/span&gt;&lt;span style="color:red"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;35 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 06 a 17 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 2.ª a 6.ª Feira, das 19h00 às 22h30&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;250 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Acompanhamento Ambiental em Obra&lt;/span&gt;&lt;/a&gt; *&lt;span style&gt;   &lt;/span&gt;&lt;span style&gt; &lt;/span&gt;&lt;span style&gt; &lt;/span&gt;&lt;span style="color:rgb(247,150,70)"&gt;últimas inscrições!!!&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;12 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;06, 07, 08 e 09 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 2.ª a 5.ª Feira, das 19h00 às 22h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;120 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Introdução à Avaliação Imobiliária&lt;/span&gt;&lt;/a&gt; **&lt;span style&gt;   &lt;/span&gt;&lt;span style&gt; &lt;/span&gt;&lt;span style&gt; &lt;/span&gt;&lt;span style="color:rgb(247,150,70)"&gt;últimas inscrições!!!&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;10 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;06, 07 e 08 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª, 3.ª e 4.ª Feira, das 19h00 às 22h30&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;100 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Fiscalidade no Imobiliário&lt;/span&gt;&lt;/a&gt; **&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;12 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;06, 07, 08 e 09 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 2.ª a 5.ª Feira, das 19h00 às 22h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;100 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Gestão e Administração de Condomínios&lt;/span&gt;&lt;/a&gt; **&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;10 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;06, 07 e 08 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª, 3.ª e 4.ª Feira, das 19h00 às 22h30&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;100 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Arquitecturas de Terra&lt;/span&gt;&lt;/a&gt; * &lt;sup&gt;/ &lt;/sup&gt;**&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;14 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;07, 09, 11 e 12 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª e 5.ª Feira, das 19h00 às 22h00, Sábado e Domingo, das 10h00 às 14h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;140 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Erros e Omissões Para Projectistas&lt;/span&gt;&lt;/a&gt; *&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;10 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;09, 13 e 16 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª e 5.ª Feira, das 19h00 às 22h30&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;100 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Cálculo de Honorários&lt;/span&gt;&lt;/a&gt; *&lt;span style&gt;     &lt;/span&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;6 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;13 e 14 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª e 3.ª Feira, das 19h00 às 22h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;60 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Desenho Urbano&lt;/span&gt;&lt;/a&gt; *&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;12 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;13, 14, 15 e 16 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 2.ª a 5.ª Feira, das 19h00 às 22h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;100 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Projecto, Concurso, Construção e Fiscalização de Obras Públicas&lt;/span&gt;&lt;/a&gt; *&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;12 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;13, 14, 15 e 16 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 2.ª a 5.ª Feira, das 19h00 às 22h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;120 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Gestão de Resíduos de Construção e Demolição&lt;/span&gt;&lt;/a&gt; *&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;6 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;13 e 14 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª e 3.ª Feira, das 19h00 às 22h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;70 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Leitura de Projectos&lt;/span&gt;&lt;/a&gt; **&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;10 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;13, 14 e 15 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª, 3.ª e 4.ª Feira, das 19h00 às 22h30&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;90 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Gestão e Organização de Eventos&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;10 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;13, 14 e 15 de Fevereiro&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª, 3.ª e 4.ª Feira, das 19h00 às 22h30&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;90 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Medições e Orçamentos&lt;/span&gt;&lt;/a&gt; *&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;50 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 27 de Fevereiro a 04 de Abril&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª, 4.ª e 6.ª Feiras, das 19h00 às 22h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;400 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Fiscalização de Obras&lt;/span&gt;&lt;/a&gt; *&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;24 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 27 de Fevereiro a 14 de Março&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª, 4.ª e 6.ª Feiras, das 19h30 às 22h30&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;200 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Formação Pedagógica Inicial de Formadores&lt;/span&gt;&lt;/a&gt; ***&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;94 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 27 de Fevereiro a 29 de Março&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 2.ª a 6.ª Feira, das 19h00 às 23h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;275 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:11pt"&gt;&lt;a href="http://www.arqcoop.com/"&gt;&lt;span style="color:windowtext;text-decoration:none"&gt;Perturbações da Personalidade&lt;/span&gt;&lt;/a&gt;&lt;span style&gt;     &lt;/span&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;22 horas&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;De 27 de Fevereiro a 21 de Março&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;2.ª, 4.ª e 5.ª Feiras, das 19h00 às 21h00&lt;span style&gt;     &lt;/span&gt;/&lt;span style&gt;     &lt;/span&gt;140 €&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;i style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:9pt"&gt;Programas e Fichas de Inscrição em &lt;a href="http://www.arqcoop.com/"&gt;&lt;font color="#0000ff"&gt;www.arqcoop.com&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:9pt"&gt;.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Encontram-se também inscrições abertas para:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;i&gt;&lt;u&gt;&lt;span style="color:rgb(204,0,0);font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Lisboa&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Alojamentos Colectivos e Habitação Para Pessoas Idosas *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;SIG – Sistemas de Informação Geográfica (ArcGIS)&lt;span style&gt;&lt;span style&gt;   &lt;/span&gt;&lt;span style="color:red"&gt;&lt;span style&gt;  &lt;/span&gt;&lt;/span&gt;&lt;b style&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Marketing Para Projectistas *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Projectos de AVAC&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Redes Prediais de Águas e Esgotos *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Regime Jurídico da Instalação e Funcionamento dos Estabelecimentos de Restauração ou de Bebidas *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Resolução de Conflitos na Construção&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Creches e Jardins de Infância *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Introdução à Engenharia Natural&lt;b style&gt;&lt;span style&gt; *&lt;span style="color:rgb(192,0,0)"&gt;&lt;span style&gt;   &lt;/span&gt;&lt;span style&gt;  &lt;/span&gt;novidade!!!&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Restauro Urbano Integrado &lt;span style&gt;* &lt;sup&gt;/&lt;/sup&gt; **&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Noções Básicas de Socorrismo&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;ArchiCAD - Curso Intermédio *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Projecto de Execução *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Técnicas de Prospecção Imobiliária&lt;b style&gt;&lt;span style&gt; **&lt;span style="color:rgb(192,0,0)"&gt;&lt;span style&gt;   &lt;/span&gt;&lt;span style&gt;  &lt;/span&gt;novidade!!!&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Introdução à Acústica &lt;span style&gt;* &lt;sup&gt;/&lt;/sup&gt; **&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;SketchUp - Técnicas de Modelação *&lt;span style&gt;&lt;span style&gt;   &lt;/span&gt;&lt;span style="color:red"&gt;&lt;span style&gt;  &lt;/span&gt;&lt;/span&gt;&lt;b style&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:red"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Reabilitação Urbana *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Gestão e Direcção Técnica de Obras *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Residências e Lares de Pessoas Idosas *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Racionalização da Obra e Organização de Estaleiros *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Gestão de Atelier *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Gestão de Risco na Construção&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Técnicas Para Dinamizar Grupos&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Resposta e Tratamento de Objecções à Angariação Imobiliária **&lt;span style&gt;&lt;span style&gt;   &lt;/span&gt;&lt;span style="color:red"&gt;&lt;span style&gt;  &lt;/span&gt;&lt;/span&gt;&lt;b style&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Instrumentação e Monitorização de Obras&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Aumento da Produtividade e Redução de Custos na Construção *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Organização Jurídica e Administrativa das Empresas de Mediação Imobiliária **&lt;span style&gt;&lt;span style&gt;   &lt;/span&gt;&lt;span style="color:red"&gt;&lt;span style&gt;  &lt;/span&gt;&lt;/span&gt;&lt;b style&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Violência Doméstica - Conhecer e Reflectir&lt;span style&gt;&lt;span style&gt;   &lt;/span&gt;&lt;span style="color:red"&gt;&lt;span style&gt;  &lt;/span&gt;&lt;/span&gt;&lt;b style&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/b&gt;&lt;span style="color:red"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Introdução à Arquitectura Sustentável &lt;span style&gt;* &lt;sup&gt;/&lt;/sup&gt; **&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Técnicas e Simulações de Angariação Imobiliária **&lt;span style&gt;&lt;span style&gt;   &lt;/span&gt;&lt;span style="color:red"&gt;&lt;span style&gt;  &lt;/span&gt;&lt;/span&gt;&lt;b style&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Perturbações Sexuais - Parafilias&lt;span style="color:red"&gt;&lt;span style&gt;     &lt;/span&gt;&lt;/span&gt;&lt;b style&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/b&gt;&lt;span style="color:red"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;i&gt;&lt;u&gt;&lt;span style="color:rgb(204,0,0);font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Porto&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Projecto de Execução *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Gestão de Projecto *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Desenho Urbano *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Cálculo de Honorários *&lt;span style="color:red"&gt;&lt;span style&gt;     &lt;/span&gt;&lt;/span&gt;&lt;b style&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;i&gt;&lt;u&gt;&lt;span style="color:rgb(204,0,0);font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Faro&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Projecto de Execução *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Gestão de Projecto *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Desenho Urbano *&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;Cálculo de Honorários *&lt;span style="color:red"&gt;&lt;span style&gt;     &lt;/span&gt;&lt;/span&gt;&lt;b style&gt;&lt;span style="color:rgb(192,0,0)"&gt;novidade!!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;i style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:7pt"&gt;Todos os valores isentos de IVA, ao abrigo do n.º 14 do artigo 9.º do CIVA.&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;i style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:10pt"&gt;* &lt;/span&gt;&lt;/b&gt;&lt;i&gt;&lt;span style="color:rgb(204,0,0);font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:7pt"&gt;Actividade formativa validada pela Ordem dos Arquitectos, permite a obtenção de créditos para efeitos da formação obrigatória em temáticas opcionais, complementar ao estágio profissional.&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:10pt"&gt;** &lt;/span&gt;&lt;/b&gt;&lt;i&gt;&lt;span style="color:rgb(204,0,0);font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:7pt"&gt;Actividade formativa avaliada pelo InCI, permite a obtenção de créditos para a revalidação da licença do exercício das actividades de mediação imobiliária e angariação imobiliária.&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;i&gt;&lt;span style="color:rgb(204,0,0);font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:3pt"&gt; &lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;b style&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:10pt"&gt;*** &lt;/span&gt;&lt;/b&gt;&lt;i&gt;&lt;span style="color:rgb(204,0,0);font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:7pt"&gt;Actividade formativa homologada pelo IEFP, permite a obtenção do CAP – Certificado de Aptidão Profissional.&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:7pt"&gt;&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt; &lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;  &lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt" class="MsoNormal"&gt;&lt;span style="font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;font-size:8pt"&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&lt;/span&gt;&lt;br clear="all"&gt;&lt;br&gt;-- &lt;br&gt;Não imprima este e-mail, a não ser que seja mesmo necessário. Ajude a proteger o ambiente!&lt;br&gt;--&lt;br&gt;&lt;br&gt;ARQCOOP - Cooperativa para a Inserção Profissional em Arquitectura, CRL&lt;br&gt; &lt;br&gt;Rua Almirante Sarmento Rodrigues, Lote 7&lt;br&gt;1900-882 Lisboa&lt;br&gt;&lt;br&gt;Tel: 210107840  .  Fax: 210107841  .  &lt;a href="mailto:arqcoop@gmail.com" target="_blank"&gt;arqcoop@gmail.com&lt;/a&gt;  .  &lt;a href="http://www.arqcoop.com" target="_blank"&gt;www.arqcoop.com&lt;/a&gt;&lt;br&gt;  &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; Esta mensagem está de acordo com a legislação Europeia sobre o envio de mensagens. Qualquer mensagem deverá estar claramente identificada com os dados do emissor e deverá proporcionar ao receptor a hipótese de ser removido da lista. Para ser removido da nossa lista, por favor envie um e-mail para arqcoop_info@yahoo.com com o título &amp;quot;Remover&amp;quot;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-6075377823550573823?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/6075377823550573823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/informacao-arqcoop-conservacao-e.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6075377823550573823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/6075377823550573823'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/informacao-arqcoop-conservacao-e.html' title='[Informação ARQCOOP] Conservação e Reabilitação / Eco-Urbanismo / Equipamentos Sociais / ArchiCAD / Acompanhamento Ambiental / Arquitecturas de Terra / Imobiliário / Créditos OA e InCI'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7285421537262720196</id><published>2012-01-24T07:47:00.001-08:00</published><updated>2012-01-24T07:47:49.018-08:00</updated><title type='text'>CsrfViewMiddleware from a xml post?</title><content type='html'>Hey Gang, is it possible to include a csrf token with a xml post?&lt;br&gt;It looks like there are options in the view to control this but&lt;br&gt;getting into the header would be nice.&lt;p&gt;This isn&amp;#39;t working along with many other tries. Anyone know what the&lt;br&gt;header should look like this offhand?&lt;p&gt;        xmlhttp.open(&amp;quot;POST&amp;quot;,&amp;quot;/votingConfirm/&amp;quot;,true);&lt;br&gt;        xmlhttp.setRequestHeader(&amp;quot;X-CSRFToken&amp;quot;,&lt;br&gt;$(&amp;quot;#csrfmiddlewaretoken&amp;quot;).val());&lt;br&gt;        xmlhttp.send(&amp;quot;person=&amp;quot;+person);&lt;p&gt;&lt;br&gt;Thanks&lt;p&gt;-- &lt;br&gt;Bust0ut Surgemcgee&amp;#160; ---&lt;br&gt;BudTVNetwork.com&lt;br&gt;RadioWeedShow.com&lt;br&gt;PBDefence.com&lt;br&gt;&amp;quot;Bringing entertainment to Unix&amp;quot;&lt;br&gt;&amp;quot;Finding the exit without looking&amp;quot;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7285421537262720196?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7285421537262720196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/csrfviewmiddleware-from-xml-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7285421537262720196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7285421537262720196'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/csrfviewmiddleware-from-xml-post.html' title='CsrfViewMiddleware from a xml post?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8980377118270839559</id><published>2012-01-24T05:32:00.001-08:00</published><updated>2012-01-24T05:32:29.501-08:00</updated><title type='text'>Help Me With This Form</title><content type='html'>Hi guys, I&amp;#39;m trying to let this form display but it&amp;#39;s not displaying&lt;br&gt;in my browser. When I open up the browser, only a blank page shows up.&lt;br&gt;How can I go about it? Below are my codes:&lt;p&gt;In models.py&lt;br&gt;from django.db import models&lt;br&gt;from django.forms import ModelForm, Textarea, HiddenInput&lt;br&gt;from django.contrib.auth.models import User&lt;br&gt;from string import join&lt;br&gt;from settings import MEDIA_ROOT&lt;br&gt;class group(models.Model):&lt;br&gt;    desc=models.TextField(max_length=25)&lt;p&gt;    def __unicode__(self):&lt;br&gt;        return unicode(&lt;a href="http://self.id"&gt;self.id&lt;/a&gt;)&lt;p&gt;    def get_absolute_url(self):&lt;br&gt;        return &amp;quot;/g/%s&amp;quot; % unicode(&lt;a href="http://self.id"&gt;self.id&lt;/a&gt;)&lt;p&gt;    class Admin:&lt;br&gt;        list_display=(&amp;#39;id&amp;#39;,&amp;#39;desc&amp;#39;)&lt;br&gt;    class Meta:&lt;br&gt;        ordering=[&amp;#39;-id&amp;#39;]&lt;p&gt;class mob (models.Model):&lt;br&gt;    author=models.ForeignKey(User,blank=True, null=True)&lt;br&gt;    state_province=models.CharField(max_length=50)&lt;br&gt;    body=models.TextField(max_length=10000)&lt;br&gt;    date=models.DateTimeField(&amp;#39;Date&amp;#39;)&lt;br&gt;    group=models.ForeignKey(group)&lt;p&gt;&lt;br&gt;    def __unicode__(self):&lt;br&gt;        return u&amp;quot;%s - %s - %s - %s&amp;quot; % (self.author,&lt;br&gt;self.state_province, self.body, self.date)&lt;p&gt;    def get_absolute_url(self):&lt;br&gt;        return &amp;quot;/post/%s/&amp;quot; % unicode(&lt;a href="http://self.id"&gt;self.id&lt;/a&gt;)&lt;br&gt;    def get_author_url(self):&lt;br&gt;        return &amp;quot;/u/%s/p/0&amp;quot; % (self.author)&lt;p&gt;    class Admin:&lt;br&gt;        list_display=(&amp;#39;author&amp;#39;,&amp;#39;body&amp;#39;,&amp;#39;date&amp;#39;)&lt;br&gt;        date_hierarchy=&amp;#39;date&amp;#39;&lt;br&gt;    class Meta:&lt;br&gt;        ordering=[&amp;#39;-date&amp;#39;]&lt;p&gt;&lt;br&gt;class mobForm(ModelForm):&lt;br&gt;    class Meta:&lt;br&gt;        model=mob&lt;br&gt;        fields=(&amp;#39;body&amp;#39;,&amp;#39;author&amp;#39;,&amp;#39;state_province&amp;#39;,&amp;#39;date&amp;#39;,&amp;#39;group&amp;#39;)&lt;br&gt;        widgets={&lt;br&gt;            &amp;#39;body&amp;#39;:Textarea(attrs={&amp;quot;rows&amp;quot;:2, &amp;quot;cols&amp;quot;:40}),&lt;br&gt;            &amp;#39;author&amp;#39;: (HiddenInput),&lt;br&gt;            &amp;#39;state_province&amp;#39;: (HiddenInput),&lt;br&gt;            &amp;#39;date&amp;#39;:(HiddenInput),&lt;br&gt;            &amp;#39;group&amp;#39;: (HiddenInput),&lt;br&gt;        }&lt;br&gt;class grpForm(ModelForm):&lt;br&gt;    class Meta:&lt;br&gt;        model=group&lt;br&gt;        field=(&amp;#39;desc&amp;#39;)&lt;p&gt;In views.py&lt;p&gt;from myweb.meekapp.models import mobForm&lt;br&gt;from django.shortcuts import render_to_response&lt;br&gt;from django.http import HttpResponse&lt;br&gt;from django.template import RequestContext&lt;br&gt;from django.http import HttpResponseRedirect&lt;br&gt;from django.views.decorators.csrf import csrf_exempt&lt;br&gt;from django.contrib.auth.decorators import login_required&lt;br&gt;from django.contrib.auth.views import login, logout&lt;p&gt;&lt;br&gt;def home(request):&lt;br&gt;return render_to_response(&amp;#39;home.html&amp;#39;)&lt;p&gt;in my template:&lt;p&gt;{% extends &amp;quot;base.html&amp;quot; %}&lt;p&gt;{% load pagination_tags %}&lt;p&gt;&lt;br&gt;{% autopaginate object_list %}&lt;br&gt;{% block newsol %}&lt;br&gt;{% if user.is_authenticated %}&lt;br&gt;&amp;lt;div class=&amp;quot;form&amp;quot;&amp;gt;&lt;br&gt;	&amp;lt;form action=&amp;quot;.&amp;quot; method=&amp;quot;post&amp;quot; enctype=&amp;quot;multipart/form-data&amp;quot;&amp;gt;&lt;br&gt;	  &amp;lt;table&amp;gt;&lt;br&gt;		{{ mobForm }}&lt;br&gt;	  &amp;lt;/table&amp;gt;&lt;br&gt;	  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Update&amp;quot; /&amp;gt;&lt;br&gt;	&amp;lt;/form&amp;gt;&lt;br&gt;&amp;lt;/div&amp;gt;&lt;br&gt;{% endif %}&lt;br&gt;{% paginate %}&lt;br&gt;{% endblock newsol%}&lt;br&gt;How can I make the mobForm display? Thanks!&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8980377118270839559?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8980377118270839559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/help-me-with-this-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8980377118270839559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8980377118270839559'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/help-me-with-this-form.html' title='Help Me With This Form'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2505900062925704044</id><published>2012-01-24T03:51:00.001-08:00</published><updated>2012-01-24T03:51:52.917-08:00</updated><title type='text'>get_FOO_display() for generic/variable choice fields</title><content type='html'>I have a model ContactDetail with two choice fields,&lt;br&gt;ContactDetail.dialing_code and ContactDetail.country. These use the&lt;br&gt;standard tuples (&amp;#39;AU&amp;#39;, &amp;#39;Australia&amp;#39;) and so on.&lt;p&gt;I know I can use get_country_display() and get_dialing_code_display()&lt;br&gt;to show the longer values, but is there a more generic version where&lt;br&gt;the field name is replaced with a variable?&lt;p&gt;For example, I want to create a customised .csv file from the model&lt;br&gt;data. I can loop through the fields from my model and get the shorter&lt;br&gt;attribute values without any problems. However I&amp;#39;d like to do&lt;br&gt;something like this:&lt;p&gt;	obj = queryset[my_item]     # an instance of ContactDetail()&lt;br&gt;	model = queryset.model     # ContactDetail() itself&lt;p&gt;	for field in model._meta.fields:&lt;br&gt;		val = getattr(obj, &lt;a href="http://field.name"&gt;field.name&lt;/a&gt;)      # gets the shorter version&lt;br&gt;		if field.choices:	         # if field is ChoiceField, convert data&lt;br&gt;to display mode&lt;br&gt;			val = obj.get_field_display()&lt;br&gt;		row.append(val)&lt;p&gt;Obviously the &amp;#39;val = obj.get_field_display()&amp;#39; line doesn&amp;#39;t work!&lt;p&gt;Is there a generic way of doing this (something like&lt;br&gt;obj.get_display(fieldname) ?) or am I going to have to hard code&lt;br&gt;separate checks for get_country_display() and&lt;br&gt;get_dialing_code_display()?&lt;p&gt;Ideally I would like to use this particular function for other models&lt;br&gt;and keep the fields as generic as possible.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2505900062925704044?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2505900062925704044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/getfoodisplay-for-genericvariable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2505900062925704044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2505900062925704044'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/getfoodisplay-for-genericvariable.html' title='get_FOO_display() for generic/variable choice fields'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7600349823351439589</id><published>2012-01-24T03:15:00.000-08:00</published><updated>2012-01-24T03:16:34.765-08:00</updated><title type='text'>Re: Selecting an E-commerce Application</title><content type='html'>Thanks all, I decided to use plata for my project, since I feel it can be customized for my requirement much better than the other E-Commerce project (i might be wrong but still after evaluating most of the django ecommerce project this is what i felt). Matthias, thanks for developing Plata. Just starting the integration of Plata in my project and I hope you would lend some help if i get struck somewhere :) Thanks&lt;div&gt;  &lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards,&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;Swaroop Shankar V&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Mon, Jan 16, 2012 at 10:28 PM, Matthias Kestenholz &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:mk@feinheit.ch"&gt;mk@feinheit.ch&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;  &lt;div class="im"&gt;On Mon, Jan 16, 2012 at 17:31, Lenz Hirsch &amp;lt;&lt;a href="mailto:lenzhirsch@googlemail.com"&gt;lenzhirsch@googlemail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt; &amp;gt; Servus,&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; i would give plata a try because its from the creators of feincms wich&lt;br&gt; &amp;gt; is IMO the best django based CMS. As feincms is more a &amp;quot;cms framework&amp;quot;&lt;br&gt; &amp;gt; which ships with a very good &amp;quot;default implementation&amp;quot; i assume the&lt;br&gt; &amp;gt; same is true for plata. Plata is very new so maybe you are missing a&lt;br&gt; &amp;gt; lot of features. A &amp;quot;out of the box feature rich ready to go&amp;quot; solution&lt;br&gt; &amp;gt; is Kai´s LTFS. Maybe Kai can give us some insides if LTFS´s models&lt;br&gt; &amp;gt; (not product properties - that sure can be done very easily) are&lt;br&gt; &amp;gt; extendable in an easy way (no forking and under 10 lines of code) too.&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; Depending on the requirements i would choose one of those two.&lt;br&gt; &amp;gt;&lt;br&gt; &lt;br&gt; &lt;/div&gt;Thanks :-)&lt;br&gt; &lt;br&gt; There is no stable release of Plata yet, but it is in use in several&lt;br&gt; shops right now, a few of them have been built by Feinheit, but I know&lt;br&gt; of two other companies which use it for their webshops.&lt;br&gt; &lt;br&gt; The core hasn&amp;#39;t changed much in months, and the basic ideas haven&amp;#39;t&lt;br&gt; changed for even longer. I&amp;#39;d say even though there is no version 1.0&lt;br&gt; yet it is ready to build your shops on.&lt;br&gt; &lt;br&gt; The current development version (&lt;a href="https://github.com/matthiask/plata" target="_blank"&gt;https://github.com/matthiask/plata&lt;/a&gt;&lt;br&gt; branch master) comes without a product model -- the idea is that you&lt;br&gt; write your own because only you know which fields and which behavior&lt;br&gt; is needed. Models for contact information, discounts / vouchers,&lt;br&gt; carts, orders and payment tracking are included as are payment modules&lt;br&gt; for paypal, postfinance and cash-on-delivery. The checkout process is&lt;br&gt; fully managed by Plata, multi-currency shops are supported etc.&lt;br&gt; &lt;br&gt; All of this means that yes, Plata isn&amp;#39;t the best option if you want a&lt;br&gt; solution which works fine out of the box. If you anticipate you&amp;#39;ll&lt;br&gt; have to customize the shop in several ways, choosing a lightweight&lt;br&gt; option with a small LOC count which solves the hard problems in a&lt;br&gt; reusable way (order tracking, payments, total calculation with taxes&lt;br&gt; and discounts), Plata might be the right choice for you.&lt;br&gt; &lt;br&gt; Best regards&lt;br&gt; &lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;Matthias&lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;&lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en" target="_blank"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7600349823351439589?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7600349823351439589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-selecting-e-commerce-application_24.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7600349823351439589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7600349823351439589'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-selecting-e-commerce-application_24.html' title='Re: Selecting an E-commerce Application'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2299446083850989421</id><published>2012-01-24T02:41:00.001-08:00</published><updated>2012-01-24T02:41:25.361-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>On 24 January 2012 07:58, JJ Zolper &amp;lt;&lt;a href="mailto:coding@madtrak.com"&gt;coding@madtrak.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Yes I knew I was in the Python shell I just never saw anything that&lt;br&gt;&amp;gt; described you couldn&amp;#39;t make Django commands within the Python interpreter. I&lt;br&gt;&amp;gt; mean it is based on Python isn&amp;#39;t it? That&amp;#39;s where I thought logically you&lt;br&gt;&amp;gt; could make Django calls from in Python?&lt;p&gt;These &amp;#39;Django commands&amp;#39; you&amp;#39;re referring to, i.e. those involving&lt;br&gt;manage.py, are commands that are meant to be run from the command&lt;br&gt;prompt. You are executing a python script file, but they are not&lt;br&gt;Python commands.&lt;p&gt;&amp;gt; SO....&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Is your best advice to have a OS prompt open in tandem with my Visual Studio&lt;br&gt;&amp;gt; Python Interpreter open? That being said that would be the best solution&lt;br&gt;&amp;gt; given my situation I suppose. However within the interpreter Python Tools&lt;br&gt;&amp;gt; for VS there may be limitations. That is what I&amp;#39;ve heard at least. I&amp;#39;m just&lt;br&gt;&amp;gt; referring to the interactive intellisense I think?..&lt;p&gt;VS doesn&amp;#39;t work well outside of a VS project. Without one, it won&amp;#39;t&lt;br&gt;know what your Python search path is, where all your code is located,&lt;br&gt;so you&amp;#39;ll have minimal Intellisense (it&amp;#39;ll know about the built-in&lt;br&gt;Python libraries, but not much else). You&amp;#39;ll may also have issues&lt;br&gt;executing code because it doesn&amp;#39;t know how to find all your code and&lt;br&gt;dependencies without the Python search path, and without that you&amp;#39;ll&lt;br&gt;probably also lose the great debugging abilities of VS. All you&amp;#39;re&lt;br&gt;really left with is a glorified syntax-checking text editor.&lt;p&gt;If you really want to do that, then the best solution is to open a&lt;br&gt;separate Command Prompt to run &amp;#39;manage.py runserver&amp;#39; from. I mentioned&lt;br&gt;CPython before; that&amp;#39;s just a name for the Python you download from&lt;br&gt;&lt;a href="http://python.org"&gt;python.org&lt;/a&gt;. I used it to differentiate that from IronPython, which is&lt;br&gt;a .NET implementation of Python. I believe there are outstanding&lt;br&gt;issues with Django and IronPython, so it probably isn&amp;#39;t worth trying&lt;br&gt;that.&lt;p&gt;You also seem to be confused with a Django project vs. a VS project. A&lt;br&gt;Django project simply defines the directory structure, and gives you a&lt;br&gt;few files to start with, including manage.py. This structure is how&lt;br&gt;Django is able to find the various files it needs.&lt;p&gt;A VS project is necessary to let VS know where all your files are,&lt;br&gt;where it should look for your Python packages etc. It is for VS to&lt;br&gt;know how to execute, debug and manage your code. Django does not know&lt;br&gt;anything about the VS project, and it shouldn&amp;#39;t because it has nothing&lt;br&gt;to do with Django once Django is running.&lt;p&gt;Once you&amp;#39;ve created a VS Python Application project (ideally in the&lt;br&gt;same directory as your Django project), here&amp;#39;s how to make it run the&lt;br&gt;built-in Django test server -&lt;p&gt;1. Right-click on your VS project in the Solution Explorer, and click&lt;br&gt;Properties.&lt;br&gt;2. Click on the Debug tab.&lt;br&gt;3. In &amp;#39;Script Arguments&amp;#39;, type &amp;#39;runserver&amp;#39;.&lt;br&gt;4. Save the Project properties.&lt;br&gt;5. Add the files in your Django project to your project by&lt;br&gt;right-clicking on your VS project, Add, Existing item.&lt;br&gt;6. Right-click on manage.py and select &amp;#39;Set as Startup File&amp;#39;.&lt;p&gt;To test, just go Debug -&amp;gt; Start Debugging or press F5.&lt;p&gt;I&amp;#39;ve had a quick play around; looks like the &amp;#39;Execute project in&lt;br&gt;Python Interactive&amp;#39; option doesn&amp;#39;t pass script arguments along, so&lt;br&gt;that won&amp;#39;t work for running the test server, but then again, there&amp;#39;s&lt;br&gt;nothing to interact with in the test server anyway. You can use that&lt;br&gt;option to test out models and the Django API though.&lt;p&gt;&amp;gt; Thank you for the tip on starting my server Andrew I will surely exit the&lt;br&gt;&amp;gt; Python interpreter and use a prompt!&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; JJ Zolper&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; To view this discussion on the web visit&lt;br&gt;&amp;gt; &lt;a href="https://groups.google.com/d/msg/django-users/-/y2Pz2JDeEo0J"&gt;https://groups.google.com/d/msg/django-users/-/y2Pz2JDeEo0J&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2299446083850989421?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2299446083850989421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_24.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2299446083850989421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2299446083850989421'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_24.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8689759663368386873</id><published>2012-01-23T23:46:00.000-08:00</published><updated>2012-01-23T23:47:14.260-08:00</updated><title type='text'>Re: A problem with a solution, but is it the right one?</title><content type='html'>That sounds very interesting, Jeff - please post the link here.&lt;p&gt;On Jan 20, 3:47&amp;#160;pm, Jeff Heard &amp;lt;&lt;a href="mailto:jefferson.r.he...@gmail.com"&gt;jefferson.r.he...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Yeah, I started doing that after I posted... &amp;#160;Thanks for the advice. &amp;#160;I&amp;#39;ll&lt;br&gt;&amp;gt; be posting this code up on GitHub in a few days, as it&amp;#39;s part of a&lt;br&gt;&amp;gt; reasonably complete implementation for Django of ISO 19142, Open Geospatial&lt;br&gt;&amp;gt; Consortium&amp;#39;s Web Feature Service.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; -- Jeff&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Fri, Jan 20, 2012 at 7:30 AM, francescortiz &amp;lt;&lt;a href="mailto:francescor...@gmail.com"&gt;francescor...@gmail.com&lt;/a&gt;&amp;gt;wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; I would pass bound data instead of calling from_request:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;&lt;a href="https://docs.djangoproject.com/en/dev/ref/forms/api/#ref-forms-api-bo."&gt;https://docs.djangoproject.com/en/dev/ref/forms/api/#ref-forms-api-bo.&lt;/a&gt;..&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; This way you don&amp;#39;t have to worry about forms logic, but just about&lt;br&gt;&amp;gt; &amp;gt; filling the default data.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; Francesc&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; On Jan 18, 8:42 pm, Jeff Heard &amp;lt;&lt;a href="mailto:jefferson.r.he...@gmail.com"&gt;jefferson.r.he...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; My basic problem is this: I have multiple kinds of requests that come in,&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; and some of them share parameters and valid values and default values. I&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; cannot expect my users to pass all form values on the URL line, but&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; unpassed parameters must be set to appropriate defaults, not merely None.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; These shared parameter sets are broken out into separate RequestForm&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; classes, but I also wanted to put the parsing and default values into&lt;br&gt;&amp;gt; &amp;gt; those&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; classes. So I came up with the &amp;quot;from_request&amp;quot; method, which I put into&lt;br&gt;&amp;gt; &amp;gt; each&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; RequestForm subclass and created a class method called &amp;quot;create&amp;quot; in&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; RequestForm that class every class in cls.mro()&amp;#39;s from_request method&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; independently, then calls .clean() on the form to validate it.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Another caveat is that I must shadow the request.GET dictionary with a&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; case-insensitive dictionary, which I take care of in the&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; django.views.generic.View.dispatch() method.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The code for my proposed solution is here:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&lt;a href="http://dpaste.com/hold/689872/"&gt;http://dpaste.com/hold/689872/&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Does this make sense to people? &amp;#160;Sorry to kind of flood the list with&lt;br&gt;&amp;gt; &amp;gt; this&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; problem all day in different forms, but i think I&amp;#39;m close to having&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; something I like.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -- Jeff&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; --&lt;br&gt;&amp;gt; &amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; &amp;gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &amp;gt; &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; &amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &amp;gt;&lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8689759663368386873?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8689759663368386873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-problem-with-solution-but-is-it_23.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8689759663368386873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8689759663368386873'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-problem-with-solution-but-is-it_23.html' title='Re: A problem with a solution, but is it the right one?'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-5822936315328264272</id><published>2012-01-23T14:35:00.000-08:00</published><updated>2012-01-23T14:36:03.212-08:00</updated><title type='text'>Re: retrieve model instance from database without model instance</title><content type='html'>Check out the content types framework[1].&lt;p&gt;You can do something like:&lt;p&gt;ct = ContentType.objects.get(app_label=&amp;#39;products&amp;#39;, model=&amp;#39;product&amp;#39;)&lt;br&gt;obj = ct.get_object_for_this_type(name=&amp;#39;Venezuelan Beaver Cheese&amp;#39;)&lt;p&gt;However, as you can see in the example, you&amp;#39;ll need to know the name of&lt;br&gt;the app so that Django knows where to find your model.&lt;p&gt;1. &lt;a href="https://docs.djangoproject.com/en/1.3/ref/contrib/contenttypes/"&gt;https://docs.djangoproject.com/en/1.3/ref/contrib/contenttypes/&lt;/a&gt;&lt;p&gt;Brett&lt;p&gt;&lt;br&gt;On 1/23/12 3:15 PM, &amp;quot;brian&amp;quot; &amp;lt;&lt;a href="mailto:brian.downing@yakkadesign.com"&gt;brian.downing@yakkadesign.com&lt;/a&gt;&amp;gt; wrote:&lt;p&gt;&amp;gt;How do I retrieve a model instance from the database without a model&lt;br&gt;&amp;gt;instance?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;For example from the doc[1] it has:&lt;br&gt;&amp;gt;  product = Product.objects.get(name=&amp;#39;Venezuelan Beaver Cheese&amp;#39;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;I want something like getInstance( &amp;#39;Product&amp;#39;,  &amp;#39;Venezuelan Beaver&lt;br&gt;&amp;gt;Cheese&amp;#39; )&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;Here are the details of what I&amp;#39;m doing.  I have multiple form models&lt;br&gt;&amp;gt;that are all handled by the same post processing class.  I&amp;#39;m using&lt;br&gt;&amp;gt;django-celery to do the processing.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;I want to do something like this in my view:&lt;br&gt;&amp;gt;  dbSave = form.save()&lt;br&gt;&amp;gt;  processTask.delay(&amp;#39;Product&amp;#39;, dbSave.pk)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;Then in the task:&lt;br&gt;&amp;gt; class processTask(Task):&lt;br&gt;&amp;gt;    def run(self, modelName, pk):&lt;br&gt;&amp;gt;        instance =  getInstance( modelName, pk )&lt;br&gt;&amp;gt;        Š.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;From what I&amp;#39;ve read about django-celery, I shouldn&amp;#39;t pass class&lt;br&gt;&amp;gt;instances to the task so I need a way to pass/retrieve this info via&lt;br&gt;&amp;gt;basic datatypes.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;Brian&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;[1] &lt;br&gt;&amp;gt;&lt;a href="https://docs.djangoproject.com/en/dev/ref/models/instances/#updating-attri"&gt;https://docs.djangoproject.com/en/dev/ref/models/instances/#updating-attri&lt;/a&gt;&lt;br&gt;&amp;gt;butes-based-on-existing-fields&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;-- &lt;br&gt;&amp;gt;You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt;&amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;To unsubscribe from this group, send email to&lt;br&gt;&amp;gt;&lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;For more options, visit this group at&lt;br&gt;&amp;gt;&lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-5822936315328264272?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/5822936315328264272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-retrieve-model-instance-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5822936315328264272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/5822936315328264272'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-retrieve-model-instance-from.html' title='Re: retrieve model instance from database without model instance'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7424142585477624577</id><published>2012-01-23T13:15:00.001-08:00</published><updated>2012-01-23T13:15:54.133-08:00</updated><title type='text'>retrieve model instance from database without model instance</title><content type='html'>How do I retrieve a model instance from the database without a model&lt;br&gt;instance?&lt;p&gt;For example from the doc[1] it has:&lt;br&gt;  product = Product.objects.get(name=&amp;#39;Venezuelan Beaver Cheese&amp;#39;)&lt;p&gt;I want something like getInstance( &amp;#39;Product&amp;#39;,  &amp;#39;Venezuelan Beaver&lt;br&gt;Cheese&amp;#39; )&lt;p&gt;Here are the details of what I&amp;#39;m doing.  I have multiple form models&lt;br&gt;that are all handled by the same post processing class.  I&amp;#39;m using&lt;br&gt;django-celery to do the processing.&lt;p&gt;I want to do something like this in my view:&lt;br&gt;  dbSave = form.save()&lt;br&gt;  processTask.delay(&amp;#39;Product&amp;#39;, dbSave.pk)&lt;p&gt;Then in the task:&lt;br&gt; class processTask(Task):&lt;br&gt;    def run(self, modelName, pk):&lt;br&gt;        instance =  getInstance( modelName, pk )&lt;br&gt;        ….&lt;p&gt;From what I&amp;#39;ve read about django-celery, I shouldn&amp;#39;t pass class&lt;br&gt;instances to the task so I need a way to pass/retrieve this info via&lt;br&gt;basic datatypes.&lt;p&gt;Brian&lt;p&gt;&lt;br&gt;[1] &lt;a href="https://docs.djangoproject.com/en/dev/ref/models/instances/#updating-attributes-based-on-existing-fields"&gt;https://docs.djangoproject.com/en/dev/ref/models/instances/#updating-attributes-based-on-existing-fields&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7424142585477624577?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7424142585477624577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/retrieve-model-instance-from-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7424142585477624577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7424142585477624577'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/retrieve-model-instance-from-database.html' title='retrieve model instance from database without model instance'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-436692512515003158</id><published>2012-01-23T13:02:00.001-08:00</published><updated>2012-01-23T13:02:41.884-08:00</updated><title type='text'>Re: Mediawiki access with Django</title><content type='html'>Thanx for the answer. I&amp;#180;ll try the wikitools package.&lt;p&gt;Karsten&lt;p&gt;On 23 Jan., 18:04, Brett Epps &amp;lt;&lt;a href="mailto:Brett.E...@quest.com"&gt;Brett.E...@quest.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; MediaWiki has a pretty nice HTTP API that you can use to access content&lt;br&gt;&amp;gt; stored within it. &amp;#160;I&amp;#39;ve used that API with the wikitools Python package&lt;br&gt;&amp;gt; and it worked pretty well.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Brett&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On 1/23/12 7:35 AM, &amp;quot;&lt;a href="mailto:krumru...@googlemail.com"&gt;krumru...@googlemail.com&lt;/a&gt;&amp;quot; &amp;lt;&lt;a href="mailto:krumru...@googlemail.com"&gt;krumru...@googlemail.com&lt;/a&gt;&amp;gt;&lt;br&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;Hello,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;I use mediawiki as semantic wiki for saving articles from newspapers&lt;br&gt;&amp;gt; &amp;gt;and journals. Now I want to write a Django application for better&lt;br&gt;&amp;gt; &amp;gt;handling all functions. Are there expiriences in this group for the&lt;br&gt;&amp;gt; &amp;gt;access to mediawiki with Django? For the access I want to use the&lt;br&gt;&amp;gt; &amp;gt;pywikipedia framework.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;Thanx in advance for your answers&lt;br&gt;&amp;gt; &amp;gt;Karsten&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;--&lt;br&gt;&amp;gt; &amp;gt;You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;gt;&amp;quot;Django users&amp;quot; group.&lt;br&gt;&amp;gt; &amp;gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; &amp;gt;To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &amp;gt;&lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; &amp;gt;For more options, visit this group at&lt;br&gt;&amp;gt; &amp;gt;&lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-436692512515003158?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/436692512515003158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-mediawiki-access-with-django_23.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/436692512515003158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/436692512515003158'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-mediawiki-access-with-django_23.html' title='Re: Mediawiki access with Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-2770405781516149926</id><published>2012-01-23T12:58:00.001-08:00</published><updated>2012-01-23T12:58:55.346-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>Yes I knew I was in the Python shell I just never saw anything that described you couldn't make Django commands within the Python interpreter. I mean it is based on Python isn't it? That's where I thought logically you could make Django calls from in Python?&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;SO....&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Is your best advice to have a OS prompt open in tandem with my Visual Studio Python Interpreter open? That being said that would be the best solution given my situation I suppose. However within the interpreter Python Tools for VS there may be limitations. That is what I've heard at least. I'm just referring to the interactive intellisense I think?..&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thank you for the tip on starting my server Andrew I will surely exit the Python interpreter and use a prompt!&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;JJ Zolper&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/y2Pz2JDeEo0J"&gt;https://groups.google.com/d/msg/django-users/-/y2Pz2JDeEo0J&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-2770405781516149926?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/2770405781516149926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_5350.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2770405781516149926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/2770405781516149926'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_5350.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7686931713421492899</id><published>2012-01-23T11:50:00.000-08:00</published><updated>2012-01-23T11:51:11.586-08:00</updated><title type='text'>Re: High cpu usage for wsgi apache processes</title><content type='html'>Hello,&lt;br&gt;&lt;br&gt;Unless you tell us what your app is supposed to be doing, there&amp;#39;s very little chance any of us can offer any real help.&lt;br&gt;&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;AT&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Mon, Jan 23, 2012 at 5:47 PM, TINO THOMAS &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:tino85@gmail.com"&gt;tino85@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;  &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;Hello,&lt;br&gt;&lt;br&gt;I have a Django setup on cpanel  server with python 2.7, virtual env and mod_wsgi. I can see that cpu usage is high for these wsgi apache processes. Is there any way to control this behavior ?&lt;br&gt;  &lt;br&gt;&lt;br&gt;Regards&lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt; Tino&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com" target="_blank"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com" target="_blank"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;  For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en" target="_blank"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;br&gt;   &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7686931713421492899?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7686931713421492899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-high-cpu-usage-for-wsgi-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7686931713421492899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7686931713421492899'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-high-cpu-usage-for-wsgi-apache.html' title='Re: High cpu usage for wsgi apache processes'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-870565150832169052</id><published>2012-01-23T11:47:00.001-08:00</published><updated>2012-01-23T11:47:44.603-08:00</updated><title type='text'>High cpu usage for wsgi apache processes</title><content type='html'>Hello,&lt;br&gt;&lt;br&gt;I have a Django setup on cpanel  server with python 2.7, virtual env and mod_wsgi. I can see that cpu usage is high for these wsgi apache processes. Is there any way to control this behavior ?&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards&lt;br&gt; Tino&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-870565150832169052?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/870565150832169052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/high-cpu-usage-for-wsgi-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/870565150832169052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/870565150832169052'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/high-cpu-usage-for-wsgi-apache.html' title='High cpu usage for wsgi apache processes'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7478964504123837729</id><published>2012-01-23T10:30:00.000-08:00</published><updated>2012-01-23T10:31:05.807-08:00</updated><title type='text'>Re: Why can't erase this model object? "AssertionError: Question object can't be deleted because its id attribute is set to None."</title><content type='html'>I am a Django novice, so only a wild guess based on my Python knowledge...&lt;br&gt;&amp;#160;&lt;br&gt;&amp;gt; In the Django shell I do&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; quests = Question.objects.all()&lt;br&gt;&amp;gt; quests[579].delete()&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Why does the objects.all() invocation add this id=None crud&lt;br&gt;&amp;gt; to quests list?&lt;br&gt;&amp;#160;&lt;br&gt;Are you sure that you have 580 items in the container?&lt;br&gt;A Django program is to be executed at the web server side.&lt;br&gt;Therefore, it is desirable that the program does not crash&lt;br&gt;very easily.&amp;#160; Search for the information on how the quests&lt;br&gt;is implemented.&amp;#160; It is likely that it is not a &amp;quot;normal&amp;quot;, strict&lt;br&gt;container that react by raising the exception.&amp;#160; Returning&lt;br&gt;the special objects for the range outside the real data space&lt;br&gt;may be a good way to let you test further if the object really&lt;br&gt;exist.&amp;#160; My guess is that you do not have that many object.&lt;br&gt;(But I may be completely wrong ;)&lt;br&gt;&amp;#160;&lt;br&gt;Petr&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Django users&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:django-users@googlegroups.com"&gt;django-users@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:django-users%2Bunsubscribe@googlegroups.com"&gt;django-users+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/django-users?hl=en"&gt;http://groups.google.com/group/django-users?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7478964504123837729?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7478964504123837729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-why-cant-erase-this-model-object_6307.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7478964504123837729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7478964504123837729'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-why-cant-erase-this-model-object_6307.html' title='Re: Why can&apos;t erase this model object? &quot;AssertionError: Question object can&apos;t be deleted because its id attribute is set to None.&quot;'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-1514662062198091653</id><published>2012-01-23T10:20:00.000-08:00</published><updated>2012-01-23T10:21:25.991-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>For sanity purposes I removed my "hack" or start up script that had "import django" and "import IPython"&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Here it is:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;gt;&amp;gt;&amp;gt; import sys&lt;/div&gt;&lt;div&gt;&amp;gt;&amp;gt;&amp;gt; sys.path&lt;/div&gt;&lt;div&gt;['c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE', 'C:\\Python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\ipython-0.11-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\django-1.3.1-py2.7.egg', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages', 'c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\1.1']&lt;/div&gt;&lt;div&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;It looks like in both cases Django is included but I'm still not convinced that everything is right because in the windows command prompt I am able to start my server like a charm but in Visual Studio I don't think I can really do anything.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Are you not able to run Django commands from the Python prompt? That probably sounds stupid but to be honest I think the only time I can run Django commands is when I'm outside the Python interpreter in just the command prompt of Windows.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;JJ Zolper&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/64kazlpsOksJ"&gt;https://groups.google.com/d/msg/django-users/-/64kazlpsOksJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-1514662062198091653?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/1514662062198091653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_2496.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1514662062198091653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/1514662062198091653'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_2496.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-8987155178737508628</id><published>2012-01-23T10:18:00.000-08:00</published><updated>2012-01-23T10:19:51.837-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>the &amp;gt;&amp;gt;&amp;gt; indicates you are IN a python shell, which is different from your OS prompt. Try exiting the shell first (with exit()) and then run &amp;quot;python manage.py runserver&amp;quot; from a command prompt or terminal window.&lt;br&gt;  &lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;AT&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Mon, Jan 23, 2012 at 4:11 PM, JJ Zolper &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:coding@madtrak.com"&gt;coding@madtrak.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;  &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;gt;&amp;gt;&amp;gt; python manage.py runserver&lt;/div&gt;&lt;div&gt;  File &amp;quot;&amp;lt;stdin&amp;gt;&amp;quot;, line 1&lt;/div&gt;&lt;div&gt;    python manage.py runserver&lt;/div&gt;&lt;div&gt;                ^&lt;/div&gt;&lt;div&gt;SyntaxError: invalid syntax&lt;/div&gt;  &lt;div&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-8987155178737508628?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/8987155178737508628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_5293.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8987155178737508628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/8987155178737508628'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_5293.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2093540987347026662.post-7391794124016959348</id><published>2012-01-23T10:11:00.000-08:00</published><updated>2012-01-23T10:12:17.542-08:00</updated><title type='text'>Re: I need help with Python Tools for Visual Studio 2010 and Django</title><content type='html'>Here is the error:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;gt;&amp;gt;&amp;gt; python manage.py runserver&lt;/div&gt;&lt;div&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; python manage.py runserver&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^&lt;/div&gt;&lt;div&gt;SyntaxError: invalid syntax&lt;/div&gt;&lt;div&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;p style="margin-top: 1em; border-style: initial; border-color: initial; line-height: normal; text-align: left; "&gt;You've left out the most important bit - the actual traceback error. What is it?&lt;/p&gt;&lt;p style="margin-top: 1em; border-style: initial; border-color: initial; line-height: normal; text-align: left; "&gt;If it can't find something, then it could be a PYTHONPATH issue.&lt;br&gt;Google tells me PT4VS may not support the usual way modules are&lt;br&gt;discovered (&lt;a href="http://pytools.codeplex.com/discussions/254602" target="_blank" style="border-style: initial; border-color: initial; cursor: pointer; "&gt;http://pytools.codeplex.com/&lt;wbr&gt;discussions/254602&lt;/a&gt;), although&lt;br&gt;that should affect IronPython only, and not CPython (possibly&lt;br&gt;intellisense as well).&lt;/p&gt;&lt;p style="margin-top: 1em; border-style: initial; border-color: initial; line-height: normal; text-align: left; "&gt;Inside PT4VS, in the interactive window, type in the following and&lt;br&gt;paste the result -&lt;/p&gt;&lt;p style="margin-top: 1em; border-style: initial; border-color: initial; line-height: normal; text-align: left; "&gt;import sys&lt;br&gt;print sys.path&lt;/p&gt;&lt;p style="margin-top: 1em; border-style: initial; border-color: initial; line-height: normal; text-align: left; "&gt;&lt;br&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I'm not too familiar with these things yet. Are you saying CPython might be better if I want to work in Visual Studio with the setup I am trying?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Here is the response to&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="text-align: left; "&gt;import sys&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;print sys.path&lt;/span&gt;&amp;nbsp;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;it is:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;gt;&amp;gt;&amp;gt; import sys&lt;/div&gt;&lt;div&gt;...&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;gt;&amp;gt;&amp;gt; print sys.path&lt;/div&gt;&lt;div&gt;['c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE', 'C:\\Python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\ipython-0.11-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\django-1.3.1-py2.7.egg', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages', 'c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\1.1', 'C:\\Python27\\lib\\site-packages\\ipython-0.11-py2.7.egg\\IPython\\extensions']&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="text-align: left; "&gt;This smells like a hack. Your default working directory should already&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;be the directory your app is in. If it isn't, you need to check your&lt;/span&gt;&lt;br style="text-align: left; "&gt;&lt;span style="text-align: left; "&gt;project settings (you are using a Python VS project right?).&lt;/span&gt;&amp;nbsp;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Well I have no idea how I am hacking here...&lt;/div&gt;&lt;div&gt;But I didin't start a new project just through visual studio. I had already within the cmd prompt run the "startproject" command naming "mysite" to be "newartists." That was done at an earlier time so I just wanted to move to that directory within the python interpreter....&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Well I didn't use a Python VS project because the files were already created but if I start a new Python file I'll most likely just pick my options within Visual Studio. That would make the most sense.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;JJ Zolper&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Django users" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/django-users/-/94xoFRPnfRAJ"&gt;https://groups.google.com/d/msg/django-users/-/94xoFRPnfRAJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to django-users@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/django-users?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2093540987347026662-7391794124016959348?l=leequerv.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://leequerv.blogspot.com/feeds/7391794124016959348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_23.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7391794124016959348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2093540987347026662/posts/default/7391794124016959348'/><link rel='alternate' type='text/html' href='http://leequerv.blogspot.com/2012/01/re-i-need-help-with-python-tools-for_23.html' title='Re: I need help with Python Tools for Visual Studio 2010 and Django'/><author><name>akng</name><uri>http://www.blogger.com/profile/05338221695297055085</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
