[no subject]

2012-02-29 Thread pp do
http://itsrealworld.com/wp-content/plugins/podpress/optional_files/wp1.5_2.0/wp-admin/grtkds.html -- 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

subprocess

2012-02-29 Thread dummyman dummyman
Hi , i am using django s view function to invoke py*thon script* to run in background. now i want to pass command line args to the script here is wat i did subprocess.Popen([sys.executable,"script_name","command_args1"]) i got the error execv requires arg 2 to be a string please help me --

view the code in .vmdk .vmx files

2012-02-29 Thread kalyani ram
I am now migrating from one version to another. the vendors have given my just 3 files with .vmdk and .vmx extension. however i installed vmware and finished the setup though, i wanted to view the code of my new version. any idea how to view the code of the product in vmware? Thanks in advance.

Tabularinline in CreateView ?????????????

2012-02-29 Thread Lestak
Hi all: My ask is here: http://dpaste.com/709735/ Thanks... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to

Re: Filtering model searches by a property (as opposed to a field)

2012-02-29 Thread Tom
Thank you very much for that Javier. After flailing around with raw SQL for a while I realised that Django has conveniently provided a powerful set of field lookups that I did not know about. I have ended up doing this, which is a million times simpler than what I was previously attempting:

Re: Filtering model searches by a property (as opposed to a field)

2012-02-29 Thread Javier Guerra Giraldez
On Wed, Feb 29, 2012 at 3:16 PM, Tom wrote: > Is it not possible to filter based on a property? queries are compiled to SQL to be sent and processed at the database; properties are Python code, the database knows nothing about them. that's why the compiler only allows you to

Re: using django templates to generate and replace a file

2012-02-29 Thread Kurtis Mullins
Hey, I just thought I'd give you a quick reply. First, you can save the rendered output of a template using this: https://docs.djangoproject.com/en/1.3/ref/templates/api/#rendering-a-context Then, take that String and write over that 'users.cfg' file. For example,

Re: Keeping filters when adding in the admin interface

2012-02-29 Thread Marc Aymerich
On Wed, Feb 29, 2012 at 10:55 PM, Marc Aymerich wrote: > On Wed, Feb 29, 2012 at 8:22 PM, Mauro Sánchez wrote: >> Hello, if I have the following Model: >> >> class A: >>    name >> >> class B: >>    name >>    a = models.ForeignKey(A) >> >> class C: >>    

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Daniel Roseman
On Wednesday, 29 February 2012 20:03:21 UTC, Django_for_SB wrote: > > Hi Anoop, > > Thank you for the kind reply, I've tried that already. Here are the 3 > variations that I've attempted so far within settings.py in TEMPLATE_DIRS: > >

Re: Keeping filters when adding in the admin interface

2012-02-29 Thread Marc Aymerich
On Wed, Feb 29, 2012 at 8:22 PM, Mauro Sánchez wrote: > Hello, if I have the following Model: > > class A: >    name > > class B: >    name >    a = models.ForeignKey(A) > > class C: >    name >    b = models.ForeignKey(B) > > And let's suppose that in the Admin Site I have a

Re: Unicode lists and form submissions

2012-02-29 Thread Mario Gudelj
Found an answer here http://stackoverflow.com/questions/9210117/attributeerror-str-object-has-no-attribute-n-when-using-dateutil Thanks guys. On 1 March 2012 00:30, Mario Gudelj wrote: > Hi djangoers, > > I've ran into an issue I'm not sure how to handle. > > I have a

using django templates to generate and replace a file

2012-02-29 Thread Paul Bunker
Hi Django Users, I'd like to use the django template system to generate a file 'users.cfg' that gets read some dispatching software. Is it possible to get django to generate this file and replace the existing one? Thanks -Paul -- You received this message because you are subscribed to the

jython django install - django import error

2012-02-29 Thread andzsinszan
Hi, I have problems installing django for jyhton. I followed instructions on the django / django-jython site, but can't import django from jython. Jython 2.5.3b1 django_jython-1.3.0b2 ### INSTALLATION # after # - installing jython # - adding JYTHON_DIR/bin to path: > jython pip install

Filtering model searches by a property (as opposed to a field)

2012-02-29 Thread Tom
Hi all, I have the following model: class Todo(models.Model): name = models.CharField(max_length=200) due_date = models.DateTimeField() location = models.CharField(max_length=200) type = models.CharField(max_length=4, choices=TODO_TYPES) owner =

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Sandro Dutra
Try: 'C:\Python27\my_Djando_projects\mysite\My_Templates\polls\index.html' 'C:\Python27\my_Djando_projects\mysite\My_Templates\polls\' 'C:\Python27\my_Djando_projects\mysite\My_Templates\' Or: abspath = lambda *p: os.path.abspath(os.path.join(*p)) PROJECT_ROOT = abspath(os.path.dirname(__file__))

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Sami Balbaky
Hi Anoop, Thank you for the kind reply, I've tried that already. Here are the 3 variations that I've attempted so far within settings.py in TEMPLATE_DIRS: 'C:/Python27/my_Djando_projects/mysite/My_Templates/polls/index.html' 'C:/Python27/my_Djando_projects/mysite/My_Templates/polls/'

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Anoop Thomas Mathew
You have to give template directories, not template names in the settings.py. Thanks, Anoop atm ___ Life is short, Live it hard. On 1 March 2012 01:16, Django_for_SB wrote: > Hello All, > > I'm going through the tutorial on djangoproject.com, and can't seem to >

Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Django_for_SB
Hello All, I'm going through the tutorial on djangoproject.com, and can't seem to hurdle over this section that reads "Write views that actually do something" Here's the code I have so far, which is directly copied from the tutorial or prescribed by the tutorial: views.py: "from django.template

Keeping filters when adding in the admin interface

2012-02-29 Thread Mauro Sánchez
Hello, if I have the following Model: class A: name class B: name a = models.ForeignKey(A) class C: name b = models.ForeignKey(B) And let's suppose that in the Admin Site I have a Filter in the C list that refers to the A model. Is there a way to keep that filter when I am

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread Kev Dwyer
furby wrote: > Caught it. Haha. What a funny bug. From models.py: > > 196 d = dt.datetime.today() > 197 expires = d.replace(year=d.year+1) > > There is no Feb. 29th, 2013. So this breaks. Thx for the help! > > On Feb 29, 9:50 am, Tom Evans wrote: >> On Wed, Feb

DateField - format in Django 1.3.1

2012-02-29 Thread Xavier Pegenaute
Hi, I saw there was some problems in the format which is rendered, validated and stored using a DateField in a form, and in a model. Are they still unresolved in 1.3.1 versio?, it's not working for me My form: 32 class EventForm(forms.Form): 33 name =

Loading multi-line SQL as part of syncdb

2012-02-29 Thread Christophe Pettus
The problem is: This doesn't work, as is well-known, because the current code breaks sql/.sql files into lines, and that fails if the SQL statement is multiline. The fix is generally noted to be, to quote mtredinnick on bug #3214: > If you want to pass in complex SQL, catch the post-syncdb

Re: facebook login problem

2012-02-29 Thread Vignesh Sunder
This might help you in managing the session. I had a similar problem a year ago and used the following snippet: http://djangosnippets.org/snippets/2065/ Cheers! On Wed, Feb 29, 2012 at 5:29 PM, dummyman dummyman wrote: > Hi , i am using django framework at the back end > >

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread Andre Terra
use something like >>> d + datetime.timedelta(days=365) http://docs.python.org/library/datetime.html#timedelta-objects Cheers, AT On Wed, Feb 29, 2012 at 12:59 PM, furby wrote: > Caught it. Haha. What a funny bug. From models.py: > > 196 d = dt.datetime.today() > 197

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread furby
Caught it. Haha. What a funny bug. From models.py: 196 d = dt.datetime.today() 197 expires = d.replace(year=d.year+1) There is no Feb. 29th, 2013. So this breaks. Thx for the help! On Feb 29, 9:50 am, Tom Evans wrote: > On Wed, Feb 29, 2012 at 3:33 PM, furby

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread Tom Evans
On Wed, Feb 29, 2012 at 3:33 PM, furby wrote: > The guy I built this for does not want to pay me to maintain it, so > it's still on .96.  And yet when something breaks randomly he wonders > why.  Debug enabled today for debugging.  There is no dev > environment.  Only

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread furby
The guy I built this for does not want to pay me to maintain it, so it's still on .96. And yet when something breaks randomly he wonders why. Debug enabled today for debugging. There is no dev environment. Only production for this. Here's the urlconf. I've literally commented out every

facebook login problem

2012-02-29 Thread dummyman dummyman
Hi , i am using django framework at the back end I have used facebook s social plugin login for authentication My Facebook Login Page http://connect.facebook.net/en_US/all.js";> FB.init({ appId:'My_app_id', cookie:true,

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread Tom Evans
On Wed, Feb 29, 2012 at 3:09 PM, furby wrote: > A site I built several years ago is breaking randomly today due to the > extra leap year day.  Any help on this would be appreciated.  I can't > track it down. > > Traceback (most recent call last): > File

Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread furby
A site I built several years ago is breaking randomly today due to the extra leap year day. Any help on this would be appreciated. I can't track it down. Traceback (most recent call last): File "/home/nolenjb/django/django_src/django/core/handlers/base.py" in get_response 68. callback,

Re: Post data Query Dict - Why not a list ?

2012-02-29 Thread Andre Terra
Excuse my brainfart moment.. sets and dicts are not ordered! On Wed, Feb 29, 2012 at 11:32 AM, Tom Evans wrote: > On Wed, Feb 29, 2012 at 1:46 PM, Andre Terra wrote: > > I may be misunderstanding something, but for one reason lists are not > >

Re: User actions logging app

2012-02-29 Thread akaariai
The log entry model above is very much like what is used in the Admin. You might want to investigate that model, too, for logging who-did- what. It can be found from django.contrib.admin.models. The reason why I use my own is that I usually have some extra columns related to the audit trail

Re: Post data Query Dict - Why not a list ?

2012-02-29 Thread Tom Evans
On Wed, Feb 29, 2012 at 1:46 PM, Andre Terra wrote: > I may be misunderstanding something, but for one reason lists are not > ordered, so you'd never know which item to get, agreed? > Lists are ordered, I think you are confusing something :) Cheers Tom -- You received

Jquery/ajax + django

2012-02-29 Thread Stanwin Siow
Hello, I've gotten this json object back from django. I was wondering how do we use ajax/jquery to retrieve just the words that are highlighted? I'm stumped. {"new_list":{"blue": {"sub_datetime": "2012-02-29 22:14:44", "exp_datetime": "2012-03-07 22:14:44", "keyword": "blue"}, "teleport":

Re: Post data Query Dict - Why not a list ?

2012-02-29 Thread Andre Terra
On Wed, Feb 29, 2012 at 5:46 AM, Szabo, Patrick (LNG-VIE) < patrick.sz...@lexisnexis.at> wrote: > Should I not get lists ? > > ** ** > > i.e: > > ** ** > > [Monatsreport] > > [2,29,42] > I may be misunderstanding something, but for one reason lists are not ordered, so you'd never

Unicode lists and form submissions

2012-02-29 Thread Mario Gudelj
Hi djangoers, I've ran into an issue I'm not sure how to handle. I have a form with 7 checkboxes representing 7 days of the week. I want to collect the submitted days and use them in rrule to generate some dates. The form field looks like this: weekly_interval =

Re: User actions logging app

2012-02-29 Thread Mario Gudelj
Wow. Legend! That's so much Annsi. On 29 February 2012 18:00, Babatunde Akinyanmi wrote: > Yes, they definitely will. > > On 2/28/12, akaariai wrote: > > On Feb 28, 11:35 pm, Mario Gudelj wrote: > >> Hi list, > >> > >> I was

Re: Learning Django: DjangoProject Poll application

2012-02-29 Thread Tom Evans
On Wed, Feb 29, 2012 at 6:07 AM, WuWoot wrote: > https://docs.djangoproject.com/en/dev/intro/tutorial01/ > > I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami > ran on Ubuntu 11.10 with PostgreSQL 9.1.2 > You're doing the dev/trunk tutorial but have django

Re: Is it able to nest block in a conditional tag in the template of Django 1.3?

2012-02-29 Thread Tom Evans
On Wed, Feb 29, 2012 at 7:20 AM, Patto wrote: > Here is my need: > > {% if request.user.is_csr %} >       {% block csr_block %} > > > > {% endif %} > No. Inside child templates, most nodes outside of blocks are ignored. You can do this instead: {% block csr_block %} {% if

Re: Learning Django: DjangoProject Poll application

2012-02-29 Thread Denis Darii
try to use DjangoStack 1.4b1-0 instead of 1.3.1-1 On Wed, Feb 29, 2012 at 7:07 AM, WuWoot wrote: > https://docs.djangoproject.com/en/dev/intro/tutorial01/ > > I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami > ran on Ubuntu 11.10 with PostgreSQL 9.1.2 > >

Is it able to nest block in a conditional tag in the template of Django 1.3?

2012-02-29 Thread Patto
Here is my need: {% if request.user.is_csr %} {% block csr_block %} {% endif %} -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/GwJ0AOf-DYYJ. To

Learning Django: DjangoProject Poll application

2012-02-29 Thread WuWoot
https://docs.djangoproject.com/en/dev/intro/tutorial01/ I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami ran on Ubuntu 11.10 with PostgreSQL 9.1.2 Sorry for my newbie question. I got to the portion where it asks me to import timezone from the django.utils module but all I

Re: Post data Query Dict - Why not a list ?

2012-02-29 Thread Martin J. Laubach
Also, having a form to parse and validate the POST data is really the way to go. Even if you never actually show the form to the user, for example in an AJAX callback, deferring all that responsibility and just use "form.is_valid()" and "form.cleaned_data" is a lot better than doing parameter

AW: Post data Query Dict - Why not a list ?

2012-02-29 Thread Szabo, Patrick (LNG-VIE)
Exactly what i was looking for...thx a lot! . . . . . . . . . . . . . . . . . . . . . . . . . . Ing. Patrick Szabo XSLT Developer LexisNexis A-1030 Wien, Marxergasse 25 mailto:patrick.sz...@lexisnexis.at Tel.: +43 1 53452 1573 Fax: +43 1 534 52 146 -Ursprüngliche Nachricht- Von:

Re: Post data Query Dict - Why not a list ?

2012-02-29 Thread Masklinn
On 2012-02-29, at 09:46 , Szabo, Patrick (LNG-VIE) wrote: > Hi, > > If i do > > for key in request.POST.keys(): > > print request.POST[key] > > Over this (which is the result of print request.Post): > > u'29', u'42']}> > > I get: > > Monatsreport > > 42 > > Should I not get lists ?

Post data Query Dict - Why not a list ?

2012-02-29 Thread Szabo, Patrick (LNG-VIE)
Hi, If i do for key in request.POST.keys(): print request.POST[key] Over this (which is the result of print request.Post): I get: Monatsreport 42 Should I not get lists ? i.e: [Monatsreport] [2,29,42] I need those other information from