CSV output

2013-09-22 Thread Lachlan Musicman
Hola, I'm using a standard view function to retrieve all details about an object: header =[] headers = object._meta.get_all_field_names() row = [] for field in headers: value = getattr(object, field) row.append(value) to collect info on a particular object passed to

Re: Need help in my Django program

2013-09-22 Thread Mark Phillips
I don't think you will get anyone to wade through your code and correct it for you. You need to be much more specific in your question. What behavior do you expect from your code, what is it doing that it shouldn't be doing, what doe the error logs say, where is the specific problem in your code,

Formset from inlineformset_factory for the model who has multiple foreign key?

2013-09-22 Thread Trung Nguyen
I got this Error when I hit the submit from 'ManagementForm data is missing or has been tampered with'] class Course(models.Model): course = models.CharField(max_length=30) course_name = models.CharField(max_length=30) class Student(models.Model): first_name =

Need help in my Django program

2013-09-22 Thread ghenessa sabaldan
I am really stuck in my code. I have this printing project I have created. I wanted that in my student profile class, it will automatically update the the total printout and the available printout after the user has inputted the corresponding value in the prinout class. and also the report

Empty context within template tag render() method after using django.test.client.Client.login() method

2013-09-22 Thread jondbaker
Within my integration tests, it appears that after using the login() method of django.test.client.Client the context dict consists only of: [{'False': False, 'None': None, 'True': True}, {}, {}]. If I remove the use of login(), then the request dict consists of: [{'False': False, 'None':

Re: django 1.5.2

2013-09-22 Thread Harjot Mann
On Sun, Sep 22, 2013 at 10:51 PM, Deepak Sharma wrote: > In your urls your are passing three arguments but django 1.5.x accept > only one, so delete extra arguments. Solved, thnks. -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy:

Re: Overriding Settings before running any tests that loads fixtures.

2013-09-22 Thread Alex Thomas
Instead of buying the book I finally found a solution. I posted to the original stackoverflow question: http://stackoverflow.com/questions/18927935/what-is-the-order-of-execution-in-django-tests On Saturday, September 21, 2013 7:47:58 PM UTC-4, Alex Thomas wrote: > > My basic problem is that

Re: django 1.5.2

2013-09-22 Thread Deepak Sharma
On Sun, Sep 22, 2013 at 10:46 PM, Harjot Mann wrote: > While upgrading my django version I am getting this error. > > http://202.164.53.122/~harjotmann/error.png In your urls your are passing three arguments but django 1.5.x accept only one, so delete extra arguments.

django 1.5.2

2013-09-22 Thread Harjot Mann
While upgrading my django version I am getting this error. http://202.164.53.122/~harjotmann/error.png -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy: http://harjotmann.wordpress.com/daily-diary/ -- You received this message because you are subscribed to the Google

Re: Question on datetime.datetime.now() format

2013-09-22 Thread Euirim Choi
Thank you! On Sunday, September 22, 2013 12:33:29 PM UTC-4, Masklinn wrote: > > > On 2013-09-22, at 18:12 , Euirim Choi wrote: > > > Hello everyone, > > This might be a newbie question but I'm not sure why this code displays: > It > > is now Sept. 22, 2013, 11:29 a.m.. > > > > from

Re: Question on datetime.datetime.now() format

2013-09-22 Thread Masklinn
On 2013-09-22, at 18:12 , Euirim Choi wrote: > Hello everyone, > This might be a newbie question but I'm not sure why this code displays: It > is now Sept. 22, 2013, 11:29 a.m.. > > from django.http import HttpResponse > from django.template import Context > from django.template.loader

Question on datetime.datetime.now() format

2013-09-22 Thread Euirim Choi
Hello everyone, This might be a newbie question but I'm not sure why this code displays: It is now Sept. 22, 2013, 11:29 a.m.. from django.http import HttpResponse from django.template import Context from django.template.loader import get_template import datetime def hello(request): return

Re: Mysterious error messages

2013-09-22 Thread kooliah
I'm sorry but i started to send this message at 12.09 ...and at 14.00 google groups still does not show me neither on mail or web-interface. so i resend... Sorry again, next time i'll wait 24 hours, to see if a post is sent... On 09/22/2013 04:27 PM, Avraham Serour wrote: really? how many

Re: Mysterious error messages

2013-09-22 Thread Avraham Serour
really? how many times do you need to send and resend and cross post? On Sun, Sep 22, 2013 at 1:23 PM, wrote: > Everyday i receive 5-10 mysterious error messages of this kind > > ... ERRORS. > > File >

Mysterious error messages

2013-09-22 Thread alkatron
Everyday i receive 5-10 mysterious error messages of this kind ... ERRORS. File "../satchmo/satchmo/apps/satchmo_store/shop/context_processors.py", line 31, in settings 'shop_name': shop_config.store_name, AttributeError: 'NoneType' object has no attribute 'store_name'

Mysterious error messages

2013-09-22 Thread alkatron
Everyday i receive 5-10 mysterious error messages of this kind ... ERRORS. File "../satchmo/satchmo/apps/satchmo_store/shop/context_processors.py", line 31, in settings 'shop_name': shop_config.store_name, AttributeError: 'NoneType' object has no attribute 'store_name'

Mysterious errors message

2013-09-22 Thread alkatron
Everyday i receive 5-10 mysterious error messages of this kind ... ERRORS. File "../satchmo/satchmo/apps/satchmo_store/shop/context_processors.py", line 31, in settings 'shop_name': shop_config.store_name, AttributeError: 'NoneType' object has no attribute 'store_name'

Mysterious errors message

2013-09-22 Thread kooliah
Everyday i receive 5-10 mysterious error messages of this kind ... ERRORS. File "../satchmo/satchmo/apps/satchmo_store/shop/context_processors.py", line 31, in settings 'shop_name': shop_config.store_name, AttributeError: 'NoneType' object has no attribute 'store_name' ,

Re: Testing in Django - newbie questions on first test failure and coverage

2013-09-22 Thread Rafael Durán Castañeda
Hi, El 21/09/2013, a las 13:36, Derek escribió: > Rafael > > I appreciate your reply; below I try and explain further the reasoning behind > the approach I took. If you can respond to that, it would help. > > > Firstly, the issue of test file locations - there are

simple authentication for views

2013-09-22 Thread Christian Schulz
Hi, isn't it possible to use the the @login_required decorator with the admin login/logout backend? Thanks Christian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Mysterious error messages

2013-09-22 Thread kooliah
Everyday i receive 5-10 mysterious error messages of this kind ... ERRORS. File "../satchmo/satchmo/apps/satchmo_store/shop/context_processors.py", line 31, in settings 'shop_name': shop_config.store_name, AttributeError: 'NoneType' object has no attribute 'store_name' ,

Re: iterating over a queryset?

2013-09-22 Thread kooliah
Sorry...I wanted open a new discussion but i reply instead... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post

Mysterious error messages

2013-09-22 Thread kooliah
Everyday i receive 5-10 mysterious error messages of this kind ... ERRORS. File "../satchmo/satchmo/apps/satchmo_store/shop/context_processors.py", line 31, in settings 'shop_name': shop_config.store_name, AttributeError: 'NoneType' object has no attribute 'store_name' ,