Re: Python Web Development with Django by Wesley Chun

2012-05-24 Thread wesley chun
for those who aren't gainfully-employed, in emerging markets, or going through hard times, it may seem quite expensive to purchase the book at retail price ($49.99USD). below are some alternatives to obtaining this one book at less than that: 1. Kindle electronic version from Amazon (at 65% off [$

Re: Is there a custom forms component of python-web?

2012-05-24 Thread kevon wang
I want to find a plugin of django what it can custom fields in the form. The functions include custom fields in web page and create the fields in database. plug's flow like these: 1.we can define fields in web page --> 2.create the table in database(table includes all custom fields) --> 3.gene

Re: Is there a custom forms component of python-web?

2012-05-24 Thread bruno desthuilliers
plonk. On May 24, 9:58 am, kevon wang wrote: > I want to find a plugin of django what it can custom fields in the form. > The functions include custom fields in web page and create the fields in > database. > plug's flow like these: >      1.we can define fields in web page > --> 2.create the tab

Re: Registering and authenticating via iPhone/Android app

2012-05-24 Thread bruno desthuilliers
On May 23, 3:12 pm, Roarster wrote: > Thanks Bruno.  I've had a bit more of a look into this and everyone seems > to be using OAuth, as you mention.  I did try to get this working with the > Tastypie API but I couldn't really find any documentation and found it a > bit of a struggle.  I guess I'll

Re: derived fields and getattr

2012-05-24 Thread bruno desthuilliers
On May 23, 10:39 pm, Larry Martell wrote: > I was asked to make a mod to a large django app that I didn't write. > They wanted me to add a derived field to a query, e.g. select > col1-col2 from table ... I assume you're talking about using queryset.extra ? > I did that and it works, but in some

Re: Is there a custom forms component of python-web?

2012-05-24 Thread kevon wang
what is plonk. ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visi

django-crequest - New app announcement

2012-05-24 Thread Alireza Savand
Hi Yesterday i released an app for django. *Basically it's just a middleware to access current request of your django application from anywhere in your code.* Other information described in the README and pypi page. pypi: http://pypi.python.org/pypi/django-crequest github repo: https://g

Re: django-crequest - New app announcement

2012-05-24 Thread Daniel Roseman
On Thursday, 24 May 2012 11:35:37 UTC+1, Alireza wrote: > > Hi > Yesterday i released an app for django. > *Basically it's just a middleware to access current request of your > django application from anywhere in your code.* > Other information described in the README and pypi page. > > pypi: >

Re: Is there a custom forms component of python-web?

2012-05-24 Thread Alec Taylor
On Thu, May 24, 2012 at 8:29 PM, kevon wang wrote: > what is plonk. ? > Onomatopoeia See: http://www.urbandictionary.com/define.php?term=plonk -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@

Integrating Admin and Polls Applications

2012-05-24 Thread First Rock
I want to take forward the application creating experience with django, by integrating the polls and admin applications. As far as my knowledge is concerned in the polls appl we developed anyone could enter the url and cast their vote. I wish if we could integrate the admin apppl, and allow only r

sorl.thumbnail is not working

2012-05-24 Thread Oana Salageanu
I'm not sure what I'm doing wrong, this is my template code: {% load thumbnail %} {% thumbnail result.object.image_path|make_thumb "50x50" crop="80% top" as im %} {% endthumbnail %} where result.object.image_path|make_thumb, it's something like this: http://93.XXX.XX.XXX:8000/uploads/files/img/

Re: django-crequest - New app announcement

2012-05-24 Thread bruno desthuilliers
On May 24, 12:35 pm, Alireza Savand wrote: > Hi > Yesterday i released an app for django. > *Basically it's just a middleware to access current request of your django > application from anywhere in your code.* Uhu... What if I'm running my code from the shell or a command ? >From experience with

Re: django-crequest - New app announcement

2012-05-24 Thread Alireza Savand
So what about logging stuff. To doing some logging at strange places that i need that request object. specially in deeper and deeper methods/functions. i have to pass the request object to alot of functions which i don't need it in there exaclty but i will need it in inner method, classes. But with

Re: django-crequest - New app announcement

2012-05-24 Thread Alireza Savand
On Thursday, May 24, 2012 4:46:34 PM UTC+4, bruno desthuilliers wrote: > > On May 24, 12:35 pm, Alireza Savand wrote: > > Hi > > Yesterday i released an app for django. > > *Basically it's just a middleware to access current request of your > django > > application from anywhere in your cod

Re: How to call RegexValidator explicitly?

2012-05-24 Thread bruno desthuilliers
On May 24, 4:30 am, forthfan wrote: > > from django import forms > from django.core.validators import * > > class IdentForm(forms.Form): >   ident = forms.CharField() >   ident_type = forms.ChoiceField(choices=( >       ('EIN','Employer ID'), >       ('SSN','Social Security Number'), >   )) > >  

Re: track change

2012-05-24 Thread Carsten Jantzen
Thanks I have looked some into it, but will look some more. I was afraid that it gave to much information compare to what I wanted. On 24 Maj, 06:37, Andre Terra wrote: > Google for Django Audit Log and/or Audit Trail. While some of the packages > might not be under active development, they may

Soap Webservices with suds returns pdf response

2012-05-24 Thread Madhu
Hi! all I make client using suds & call the SOAP webservice & i get the response as pdf string format, but it is not in proper format, i want to convert it into proper format & store it in the pdf file. Can anybody suggest me, how this can be done? Thanks in advance. -- You received this mes

Re: derived fields and getattr

2012-05-24 Thread Larry Martell
On Thu, May 24, 2012 at 2:27 AM, bruno desthuilliers wrote: > On May 23, 10:39 pm, Larry Martell wrote: >> I was asked to make a mod to a large django app that I didn't write. >> They wanted me to add a derived field to a query, e.g. select >> col1-col2 from table ... > > I assume you're talking

Re: sorl.thumbnail is not working

2012-05-24 Thread krzysiekpl
Did you correctly set up MEDIA_ROOT in settings ? Sorl-thumbnail only use files from MEDIA_ROOT try to move uploads/ to media a then use realtive path to file. On 24 Maj, 06:40, Oana Salageanu wrote: > I'm not sure what I'm doing wrong, this is my template code: > {% load thumbnail %} > > {% thum

Re: Sorl permissions issues in media directory

2012-05-24 Thread Chet Pilley
Are you doing any development work using runserver apart from working on the Apache-delivered site? Sorl uses the server user's account (in the Apache case www-data) to create the hashed directory tree, and if you're using runserver then any directories made with have the ownership of the server us

Re: track change

2012-05-24 Thread bruno desthuilliers
On May 23, 10:45 pm, Carsten Jantzen wrote: > When I load the player I would like to see his latest stats. > If I goto the players page I would like to be able to view when and > what skill changed. > > I am looking for a good way to implement it. > I was thinking to make the skill it's own objec

Re: django-crequest - New app announcement

2012-05-24 Thread bruno desthuilliers
On May 24, 2:57 pm, Alireza Savand wrote: > On Thursday, May 24, 2012 4:46:34 PM UTC+4, bruno desthuilliers wrote: > > > > Uhu... What if I'm running my code from the shell or a command ? > > By the way, there is also *set_request*(*request*) for that situation. Yes. In Zope/Plone too, and then y

Re: derived fields and getattr

2012-05-24 Thread bruno desthuilliers
On May 24, 3:44 pm, Larry Martell wrote: > On Thu, May 24, 2012 at 2:27 AM, bruno desthuilliers > > wrote: > > On May 23, 10:39 pm, Larry Martell wrote: > >> I was asked to make a mod to a large django app that I didn't write. > >> They wanted me to add a derived field to a query, e.g. select >

Re: ordering m2m query based on through table

2012-05-24 Thread akaariai
On May 23, 11:33 pm, akaariai wrote: > On May 23, 3:36 pm, akaariai wrote: > > > I guess (again!) that the reason for the LEFT JOIN is this call in sql/ > > compiler.py:_setup_joins() > > > self.query.promote_alias_chain(joins, > >      self.query.alias_map[joins[0]].join_type == self.query.LOUTE

Off-line Django apps / Caching and synchronizing data

2012-05-24 Thread ALJ
I've been asked to create an closed web application for our field staff. The trouble is is that they are sometimes in areas where there is no cell covereage and therefore no data connection. Has anyone else had a similar situation and do you have any pointers into solution approaches or apps I

Error with Views on Admin and Index page

2012-05-24 Thread cat123
I'm new to Django and recently got my very first environment set up (Python 2.7, Django 1.3, with Postgres 9.1.3 and virtualenv)... I set up everything for "Admin," (first time setup),got the LogIn Page. But when I logged in, instead of going to the admin screen, I got a message saying: TemplateS

Re: Error with Views on Admin and Index page

2012-05-24 Thread Apokalyptica Painkiller
Hello why don't you check this two links: http://stackoverflow.com/questions/5350241/django-import-error-that-refer-to-template-tags http://stackoverflow.com/questions/3496920/django-viewdoesnotexist Good luck :) 2012/5/24 cat123 > I'm new to Django and recently got my very first environment

Re: Error with Views on Admin and Index page

2012-05-24 Thread cat123
Hi Apo: Thanks for the feedback...When I look at those links, they're both about views from apps that have been created. I haven't created any apps yet... so which Views do you think it may be talking about, and where would I look for this? On May 24, 12:14 pm, Apokalyptica Painkiller wrote: >

Re: Registering and authenticating via iPhone/Android app

2012-05-24 Thread Roarster
On Thursday, 24 May 2012 04:11:48 UTC+1, somecallitblues wrote: > > I read somewhere that Instagram use django-piston. But them some people > are saying that Piston has had any development done in over a year. > > -m > Yeah, as far as I can tell Piston development seems to be pretty much dead a

Re: Error with Views on Admin and Index page

2012-05-24 Thread Apokalyptica Painkiller
Are you doing django's tutorial? If it is correct in which part are you? 2012/5/24 cat123 > Hi Apo: > > Thanks for the feedback...When I look at those links, they're both > about views from apps that have been created. I haven't created any > apps yet... so which Views do you think it may be tal

Re: Error with Views on Admin and Index page

2012-05-24 Thread cat123
No I'm not doing the Django tutorial. I'm following a couple of older Django books that were published circa 2009 using Django 1.1. ('m using Django 1.3). I did set up Staticfiles (the Django 1.3 way, the best I could as a newbie, following djangoproject directions) but staticfiles is of course fo

Re: Error with Views on Admin and Index page

2012-05-24 Thread Apokalyptica Painkiller
I'm not sure about it, i'm more than newbie with django, sorry about that :( 2012/5/24 cat123 > No I'm not doing the Django tutorial. I'm following a couple of older > Django books that were published circa 2009 using Django 1.1. ('m > using Django 1.3). I did set up Staticfiles (the Django 1.3

Re: Error with Views on Admin and Index page

2012-05-24 Thread cat123
Thanks for your offer of help. Appreciate it anyway. :-) On May 24, 1:42 pm, Apokalyptica Painkiller wrote: > I'm not sure about it, i'm more than newbie with django, sorry about that :( > > 2012/5/24 cat123 > > > > > > > > > > > No I'm not doing the Django tutorial. I'm following a couple of o

Re: track change

2012-05-24 Thread Carsten Jantzen
Hi Bruno It's only to overview the stats and be able to track it. I had started looking at binding the skill to the player og detecting in the skill if it's changed. If its change then create a new one. But I can see the point in putting it en a seperate class and make it a skill changed instead.

Django installation error

2012-05-24 Thread jggal...@prodigy.net.mx
Hi, I hope somebody can help me, I'm triying to install django on Win XP. I downloaded it from django's official site. Of course I have already python installed and when I do "python setup.py install" python give me the following message: D:\python_27\Lib\site-packages\Django-1.4>python setu

Re: Django installation error

2012-05-24 Thread Karen Tracey
On Thu, May 24, 2012 at 4:19 PM, jggal...@prodigy.net.mx < jggal...@prodigy.net.mx> wrote: > D:\python_27\Lib\site-packages\Django-1.4>python > Python 2.4.5 (#1, Jul 22 2011, 02:01:04) > Python 2.4 is too old for Django 1.4. You need to have Python 2.5, 2.6, or 2.7 installed, see: https://docs.dj

Re: Question object permission approach

2012-05-24 Thread Paul
Thanks for thinking along. Guardian sounds really well, also given the recent commits However, such 'dynamic' authentication method (meaning users shall be explicitly authorized or not) is overhead in my case since the permission is 'static'; its simply dependent on the user field of the mode

GeoIP install failure, advice needed

2012-05-24 Thread DF
Several hours of frustration here and looking to see if anyone has any advice. I'm trying to install GeoIP vie Homebrew and receive the following error just prior to the install finishing: "Error: The linking step did not complete successfully The formula built, but is not symlinked into /usr/l

Re: GeoIP install failure, advice needed

2012-05-24 Thread Andre Terra
sudo brew link geoip? Total guess, btw. Cheers, AT On Thu, May 24, 2012 at 6:39 PM, DF wrote: > Several hours of frustration here and looking to see if anyone has any > advice. > > I'm trying to install GeoIP vie Homebrew and receive the following error > just prior to the install finishing: >

Re: GeoIP install failure, advice needed

2012-05-24 Thread DF
Tried that. Got this: "Cowardly refusing to `sudo brew link'" On Thursday, May 24, 2012 5:41:39 PM UTC-4, Andre Terra (airstrike) wrote: > > sudo brew link geoip? Total guess, btw. > > > Cheers, > AT > > On Thu, May 24, 2012 at 6:39 PM, DF wrote: > >> Several hours of frustration here and look

Re: derived fields and getattr

2012-05-24 Thread Larry Martell
On Thu, May 24, 2012 at 9:29 AM, bruno desthuilliers wrote: > On May 24, 3:44 pm, Larry Martell wrote: >> On Thu, May 24, 2012 at 2:27 AM, bruno desthuilliers >> >> wrote: >> > On May 23, 10:39 pm, Larry Martell wrote: >> >> I was asked to make a mod to a large django app that I didn't write. >

Django GeoIP Module not found; can't remedy

2012-05-24 Thread DF
I've spent several hours attempting to resolve my problems setting up GeoIP in Django to no avail and was hoping to get some guidance on what the problem(s) might be. I'm working on an existing Django application that required some geolocation abilities, specifically getting a users IP and la

Re: Off-line Django apps / Caching and synchronizing data

2012-05-24 Thread Andy McKay
> Somehow create a standalone django app that is the same as the online one > and then have it synchronize when it goes back online. Something ala Google > Gears / HTML5. But not done anything like this and I'm not sure how > complicated the synchronizing would be and I'm reluctant to roll out djan

Re: Django GeoIP Module not found; can't remedy

2012-05-24 Thread DF
It appeared an import statement error caused the initial problem. But once that was fixed, the following error results: ">>> from django.contrib.gis.utils.geoip import GeoIP Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/2.7/lib/py

Re: How to setup Python 2.7 and Virtualenv on a shared host with no root access?

2012-05-24 Thread darwin31
Hi, Dan Yes you can do it. First of all you will need to install a new version of Python in a folder that do not require admin permissions to write files. 1) Follow this tutorial to accomplish this first step (New python install on a shared host

Re: I need a django application to embed a chat javascript in admin site

2012-05-24 Thread francescortiz
Implementing a simple global chat is pretty straightforward: 1- Don't use database 2- Implement filesystem based locking (multithread safe) 3- if there user wrote a new line, acquire lock and append the new line to the file. 4- releaase lock 5- send the last lines to the users. I recommend you to

loop over model ids ? possible ?

2012-05-24 Thread doniyor
hey guys, i need to loop over the number of ids of objects in my db table and create accordingly the same number of html fields. how can i do it.. my effort is this: numberOfIds = Produkt.objects.count() i = 1; for i in range(0,numberOfIds): p = Produkt.objects.get(

Re: loop over model ids ? possible ?

2012-05-24 Thread kenneth gonsalves
On Thu, 2012-05-24 at 23:19 -0700, doniyor wrote: > hey guys, > i need to loop over the number of ids of objects in my db table and > create > accordingly the same number of html fields. how can i do it.. my > effort is > this: > numberOfIds = Produkt.objects.count() > i = 1; >