Re: SUPPORTS_TRANSACTIONS Error while running tests

2010-10-07 Thread girish shabadimath
Hi all, i looked into the *setup_databases()* code, here it basically checks for MIRROR,,if db is a mirror ,then it simply points to it or else creates test db,,,where dis *SUPPORTS_TRANSACTIONS *check is happening..? trace-out shows its present in testcases.py,,but how *setup_database* gets

Re: Generate a daily serial/batch/lot number

2010-10-07 Thread Darryl Ross
On 06/09/10 19:09, kmpm wrote: Regarding UUIDs, one of the business requirements (which I don't control) is that the identifier that is to be used on barcodes and what not is to be in the format "YYMMDD" where is the number we are talking about. So UUID would be great and unique, as

Exclude Inherited Fields in Admin

2010-10-07 Thread nkatt
Hi there, I have a UserExtended model that extends the User model. I am trying to upgrade from 1.1.1 to 1.2.3, and I no longer seem to be able to specify inherited fields to be excluded in the admin forms - it was working fine in 1.1.1. For example, I had the "is_staff" field in the admin

Re: Manually sorting items in a table - Doubly-Linked List vs sort_index

2010-10-07 Thread esatterwh...@wi.rr.com
I'm assuming you are talking about the client facing site with html/ css/javascript. If that is the case, A DOM tree is already a doubly linked list. Elements are aware of their parent, their siblings and their children, who are again aware of their parents, children and siblings. All you

Re: unique_together to bind three fields

2010-10-07 Thread meenakshi
Thanks for the great suggestions. In order to display the poll scores I would add the query in the results page template right? I apologiz for these newbie questions Meenakshi On Oct 7, 2:39 am, Tom Evans wrote: > On Thu, Oct 7, 2010 at 4:54 AM, meenakshi

I can't select day with calendar widget

2010-10-07 Thread renevie...@gmail.com
Hello. I've a problem with the calendar widget. I created a sandbox project with just one entity and one date attribute then I registered in the admin nothing else the problem happens when I select 2010-10-10 in the widget , then 2010-10-09 is set in the field. I don't know if this happens

Re: An app to create sprite bundles (django-imaginator)

2010-10-07 Thread Brandon Taylor
Hello, >From my experience with sprites, you wouldn't be using an image tag to render the sprite. Rather, you would be giving an id or class attribute on a div or some other type of HTML container tag that positions the background image (sprite) and possibly sets a width and height on the

Re: Iterating tree-like data structures with django

2010-10-07 Thread Sam Walters
Also for all your tree related needs there is Django Treebeard: https://tabo.pe/projects/django-treebeard/ On Thu, Oct 7, 2010 at 2:51 AM, Cesar Canassa wrote: > I had the same issue a few months ago. > My only answer to you is that is not worth to develop this all

RE: OS Error, Permission Denined

2010-10-07 Thread Rizwan Mansuri
Hi Shawn, I've pasted my model code. That doesn't sort out my issue. from django.db import models from django.contrib import admin import datetime import os PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) class Portfolio(models.Model): title = models.CharField('Title',

Re: Django admin in app installed in directory below root.

2010-10-07 Thread Joe Murphy
On Oct 6, 1:15 pm, Daniel Roseman wrote: > > Are you using mod_wsgi? If so, there must be something wrong with your > configuration. Can you post your .wsgi file? > -- > DR. Hi DR -- thanks for the reply, and the pointer. Yup, I'm using mod_wsgi, and I'll dig in that

Re: Django Registration password reset problem

2010-10-07 Thread Felipe Prenholato
So you need to make your reverse calls use this views, if is really needed. If only template names are changed, have no sense to add custom views, just use same names in right place. and about this right place...when I used: accounts/templates/registration/ some templates for password get

Re: Django Registration password reset problem

2010-10-07 Thread Joel Klabo
Yeah. I don't understand that either. Except that auth_views.py uses different templates I think… Sent from my iPhone On Oct 7, 2010, at 1:50 PM, Felipe Prenholato wrote: But about views that you have at auth_views.py, are same of django auth views? this

Re: Django Registration password reset problem

2010-10-07 Thread Felipe Prenholato
But about views that you have at auth_views.py, are same of django auth views? this registration/auth_views.py exists for something, not? 2010/10/7 Joel Klabo > Awesome, that fixed it. All I had to do was change "from registration > import auth_views" to "from

Re: OS Error, Permission Denined

2010-10-07 Thread ShawnMilo
The problem here is most likely due to the forward-slash in front of your path name. Django's trying to actually write to a non-existant folder at a level you don't have access to in any case on shared hosting. Try taking it out and see if that fixes it. Shawn -- You received this message

Best way to change pk field type

2010-10-07 Thread indymike
Here's my issue - I'm going to run out of integers for my primary key in one of my tables. I'm using MySQL, which has been absolutely fantastic, and will for at least a few more decades if I can make a change from INT to BIGINT. What's the right way to switch from INT to BIGINT so the PK works

Re: Django Registration password reset problem

2010-10-07 Thread Joel Klabo
Awesome, that fixed it. All I had to do was change "from registration import auth_views" to "from django.contrib.auth import views as auth_views" Thank you so much On Thu, Oct 7, 2010 at 12:56 PM, Ted wrote: > I think your problem is in auth_urls.py > > 28 - from

Re: OS Error, Permission Denined

2010-10-07 Thread Shawn Milochik
I have Webfaction. I found a file named /etc/redhat-release which states that my server is running CentOS release 5.5 (Final). I hope that helps. Look for a file in /etc beginning with 'lsb' (for Linux Standard Base') or 'redhat.' Shawn -- You received this message because you are

RE: OS Error, Permission Denined

2010-10-07 Thread Rizwan Mansuri
it's Linux. I don’t know Have you heard of webfaction hosting company. -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of Gonzalo Delgado Sent: 07 October 2010 20:57 To: django-users@googlegroups.com Subject: Re: OS Error,

Re: dictionary doesn't get properly updated

2010-10-07 Thread jimgardener
right..that is what was happening.. thanks for pointing it out.. regards jim On Oct 7, 11:41 pm, Doug wrote: > Could it be that garbage collection is deleting your "tm" instance > when it falls out of scope at the end of the view call?  If that is > the only place you've

Re: Django Registration password reset problem

2010-10-07 Thread Ted
I think your problem is in auth_urls.py 28 - from registration import auth_views in my version of registration this is: from django.contrib.auth import views as auth_views Then you can understand why you get this error: NoReverseMatch: Reverse for

Re: OS Error, Permission Denined

2010-10-07 Thread Gonzalo Delgado
El 07/10/10 16:21, Rizwan Mansuri escribió: > Could you please guide me to any document that explain this? Sorry, I may have assumed too much on my previous response. What OS is your Django project running on? Here is a guide for Linux: http://www.zzee.com/solutions/linux-permissions.shtml --

RE: OS Error, Permission Denined

2010-10-07 Thread Rizwan Mansuri
Thanks very much for your reply, Could you please guide me to any document that explain this? Thanks again, -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of Gonzalo Delgado Sent: 07 October 2010 20:17 To:

Re: OSError Permission denied

2010-10-07 Thread Ale
On Thu, Oct 7, 2010 at 3:58 PM, Rizwan Mansuri wrote: > Hello Django Gurus, > > > > I am newbie in Django. I ‘m stuck at this point. I have developed one apps > in django which has Imagefield. While I am trying add this content in site > its giving me error saying OSError at

Re: OS Error, Permission Denined

2010-10-07 Thread Gonzalo Delgado
El 07/10/10 16:05, Rizwan Mansuri escribió: > > > I am newbie in Django. I ‘m stuck at this point. I have developed > one apps in django which has Imagefield. While I am trying add this > content in site its giving me error saying OSError at > /admin/portfolio/portfolio/add/ > > [Errno 13]

OS Error, Permission Denined

2010-10-07 Thread Rizwan Mansuri
Hello Django Gurus, I am newbie in Django. I 'm stuck at this point. I have developed one apps in django which has Imagefield. While I am trying add this content in site its giving me error saying OSError at /admin/portfolio/portfolio/add/ [Errno 13] Permission denied: '/myproject'.

OSError Permission denied

2010-10-07 Thread Rizwan Mansuri
Hello Django Gurus, I am newbie in Django. I 'm stuck at this point. I have developed one apps in django which has Imagefield. While I am trying add this content in site its giving me error saying OSError at /admin/portfolio/portfolio/add/ [Errno 13] Permission denied: '/myproject'.

Re: dictionary doesn't get properly updated

2010-10-07 Thread Doug
Could it be that garbage collection is deleting your "tm" instance when it falls out of scope at the end of the view call? If that is the only place you've instantiated it, I'm guessing the reference count would go to zero 'singleton' or not. -- You received this message because you are

Re: iPhone posting FILEs = "Invalid content length"

2010-10-07 Thread Eric Chamberlain
We ran into the same error with ASIHTTPRequest, our fix was to turn off persistent connections. On Sep 30, 2010, at 3:55 AM, Danny Bos wrote: > > Hey there, > I've got a new error I'm totally stumped on. All searches are saying > it's a "http vs https" or similar. > I'd be keen to hear your

Add message on specific error to 500 page

2010-10-07 Thread Streamweaver
On our 500 error page I would like to display a message specifically if the error is in the Database connection, and not display the message on any other uncaught exception but I can't seem to figure out a way to catch the specific exception going to a 500 page. Has anyone done this? -- You

Re: Django Registration password reset problem

2010-10-07 Thread Joel Klabo
I am just using it as is. I haven't modified any of the code from django-registration. I'm confused as to how these are connected. Thanks for looking. On Thu, Oct 7, 2010 at 10:20 AM, Felipe Prenholato wrote: > This auth_views.py doesn't exist in trunk (that is this

Migrating Groups of Permissions

2010-10-07 Thread Dan Gentry
As I deploy my application into production, I haven't found a good way to migrate the groups of permissions I have defined and tested in development. In fact, due to my poor typing and reviewing, I missed one in production and caused a small amount of concern with the users until I figured it

Re: Django Registration password reset problem

2010-10-07 Thread Felipe Prenholato
This auth_views.py doesn't exist in trunk (that is this version), sounds like you writing custom admin views? Or you just copied admin/views.py locally? You already tried to resolve via name of url? Else, if you writing custom admin views, isn't right to reference this custom views? (anyway,

Re: Django documentation search not working

2010-10-07 Thread NoviceSortOf
Steve: Thanks, the problem must be Firefox plugin I'm running because Opera works just fine. Thanks for the suggestion. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To

Re: Django Registration password reset problem

2010-10-07 Thread Joel Klabo
Also, all my code is on Github if you would like to see something else: http://github.com/joelklabo/brooski I really appreciate your help, thank you. On Thu, Oct 7, 2010 at 9:43 AM, Joel Klabo wrote: > My version is: VERSION = (0, 8, 0, 'alpha', 1) > > Yeah, I have that

Re: Django Registration password reset problem

2010-10-07 Thread Joel Klabo
My version is: VERSION = (0, 8, 0, 'alpha', 1) Yeah, I have that include in my version as well... It sends and email with this link: http://brooski.net/accounts/password/reset/confirm/1-2r2-ce8f57c2669d29e5f24e/ and

Re: dictionary doesn't get properly updated

2010-10-07 Thread Steve Holden
I don't believe so, guess you have to keep looking. regards Steve On 10/7/2010 11:46 AM, jimgardener wrote: > I am using the development server..will that cause such a problem? > jim > >> Are you sure that everything is being run in the same process? If (for >> example) you are using Apache as

Problems with MultipleModelChoiceField

2010-10-07 Thread janedenone
Hi, I try to create an admin form field using both a custom label and the FilteredSelectMultiple widget: from django.contrib.admin.widgets import FilteredSelectMultiple class UserMultipleModelChoiceField(forms.ModelMultipleChoiceField): def label_from_instance(self, obj): return "%s

Django 1.2.3 flatpage tests fail

2010-10-07 Thread jamstooks
I'm running into a weird error when running the tests for my project. For some reason the flatpage tests seem to be failing because my login page is issuing a 404. When I `runserver` this url is available, so I don't understand the discrepancy. These tests don't fail when I revert to 1.2.1,

Re: dictionary doesn't get properly updated

2010-10-07 Thread jimgardener
I am using the development server..will that cause such a problem? jim > Are you sure that everything is being run in the same process? If (for > example) you are using Apache as a front-end then, as I understand it, > there are no guarantees about that. > > regards >  Steve > -- > DjangoCon US

Re: dictionary doesn't get properly updated

2010-10-07 Thread Steve Holden
On 10/7/2010 10:20 AM, jimgardener wrote: [...] > > When the view add_new_threadobj() is executed a couple of times,this > is the print output > adding for the first time, > tm= > TM::before::threads: {} > TM:: add_thread()::added=threadname1 > TM::after::threads:

Re: Strange 404s

2010-10-07 Thread shacker
On Oct 6, 2:51 pm, Daniel Roseman wrote: > Yes, there are all sorts of bots around, and the referrer is easy to > fake - it's just an HTTP header. I quite frequently get reports with > referrers that have never even existed on my site. Would it make sense for the Django

Re: dictionary doesn't get properly updated

2010-10-07 Thread jimgardener
hi this is what I wrote class MySingleton(object): _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: cls._instance = super(MySingleton, cls).__new__(cls) return cls._instance I did unit test on this .. def setUp(self): self.tm=TM()

Localization of decimal fields

2010-10-07 Thread Michel Thadeu Sabchuk
Hi guys, how are you? I'm using some model forms to edit DateTimeFields and DecimalFields. I wanted to localize the input/output of these fields. Django 1.2 comes with a localization method. If I set the USE_L10N setting, it is supposed to have the forms fields localized. The DateTimeField works

Re: dictionary doesn't get properly updated

2010-10-07 Thread Daniel Roseman
On Oct 7, 3:20 pm, jimgardener wrote: > hi > In my django view ,I am creating a Thread subclass and adding it to a > ThreadManager TM to keep in a dictionary with name of thread as key > and instance as value.I have implemented TM as a singleton and > verified that only one

Re: Django structure and git as VCS

2010-10-07 Thread Piotr Zalewa
Thanks Brian, It looks like it will manage the git repositories for me. It might be a good idea, but I think I'll keep it it "custom" build. I (wishful thinking) don't use Apache, etc. On 10/07/10 13:56, Brian Bouterse wrote: > Maybe not an exact answer to your question, but we do something kind

dictionary doesn't get properly updated

2010-10-07 Thread jimgardener
hi In my django view ,I am creating a Thread subclass and adding it to a ThreadManager TM to keep in a dictionary with name of thread as key and instance as value.I have implemented TM as a singleton and verified that only one instance of TM exists .However,when the view calls tm.add_mythread() ,I

Re: Django regroup not working as expected

2010-10-07 Thread Scott Gould
Your .list is in the wrong place: {% for date in sale_list%} {{ date.grouper }} {% for sale in date.list %} {{ sale.item }} - {{ sale.qty }} {% endfor %} {% endfor %} Regards Scott On Oct 5, 2:28 pm, Gath wrote: > Guys

Re: How updated is the online version of the Django Book?

2010-10-07 Thread Shawn Milochik
Is there anything specific you're concerned about? Almost everything is applicable to the latest version. If you're not using trunk, then just being familiar with the 1.2 release notes will be enough to let you know if what you're reading is deprecated. Most Django books out there haven't ben

How updated is the online version of the Django Book?

2010-10-07 Thread MrMuffin
The django book found here : http://www.djangobook.com/en/2.0/ is great, but is it being kept up to date with the current version of django? Just wondering. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django structure and git as VCS

2010-10-07 Thread Brian Bouterse
Maybe not an exact answer to your question, but we do something kind of similar to what you are describing. Basically, we have app authors (both frontend and backend) work with their app in their own repo and publish them into this repository . Then we use

Re: Django Registration password reset problem

2010-10-07 Thread Felipe Prenholato
Actually auth urls is 'appended' to urls in default backend (and should be added to your own backend if you create one). Take a look at this line: http://1l.to/bf1/ ... so you don't need to add it (again) to your urls. I don't have this error with password_reset_complete view , but I'm using my

Django structure and git as VCS

2010-10-07 Thread Piotr Zalewa
Hi, I'm working on defining the structure of an application It will have quite a few apps, with few of them opensourced. I was thinking how to make it easier for people involved into the project. In essence front-end developer should work on one repository only - that's also goes quite nicely

Inline editing of related models in tree-like fashion

2010-10-07 Thread Neo
I'm stuck with the inline Tree-like-eiditing of related models on same page. I've got three models, A, B and C. Class A Class B fb = foreignkey(A) Class C fc = foreignkey(B) In admin.py I'm doing something like AdminA inlines = [inlineB] AdminB

Re: Possible backwards incompatibility introduced by change 12950 (in upgrade from 1.1.1 to 1.1.2)

2010-10-07 Thread Steve Holden
On 10/7/2010 3:24 AM, Jyrki Pulliainen wrote: >> So -- my original analysis still stands -- albeit for slightly more >> > complex reasons. The issue here is that your code was previously in >> > error, and now we're a little more vigilant about reporting the >> > potential problem. > Now that

import error

2010-10-07 Thread shalini
i am bigner to django my appache sever is running suceesfully and python manage.py runserver is running sucessfully but i have import error can somebody help me i had attached error and conf file belo To configure Django with mod_python I added this in httpd.conf file

import error

2010-10-07 Thread sami nathan
Occured error while using url http://localhost/fllyp/ MOD_PYTHON ERROR ProcessId: 844 Interpreter:'192.168.1.116' ServerName: '192.168.1.116' DocumentRoot: 'C:/Program Files/Apache

How to use django session outside of the view

2010-10-07 Thread andy
>>> from django.contrib.sessions.backends.db import SessionStore >>> s = SessionStore(session_key='2b1189a188b44ad18c35e113ac6ceead') >>> s['last_login'] = datetime.datetime(2005, 8, 20, 13, 35, 10) >>> s['last_login'] datetime.datetime(2005, 8, 20, 13, 35, 0) >>> s.save() The above shows how to

unittest fixture doesn't load from TestCase

2010-10-07 Thread jimgardener
hi I have a 'sample.json' that has some data I use for unittesting my app.I have put it in fixtures folder of myapp alongside 'initial_data.json'.In my TestCase subclass,I put it as, class MyTC(TestCase): fixtures=['sample.json'] def setUp(self): ... However,when I run the

Re: unique_together to bind three fields

2010-10-07 Thread Tom Evans
On Thu, Oct 7, 2010 at 4:54 AM, meenakshi wrote: > Hi, >   I am new to Django and Python and have been working through the > tutorial.  I would like to modify the polls app in the tutorial such > that I can track individual users who vote in a poll, keep a record of >

Django facebook group

2010-10-07 Thread Lakshman Prasad
Hi, I just created a django facebook group: http://www.facebook.com/home.php?sk=group_114422875284562 Those interested may join. PS: I know it doesn't matter to some people. If it doesn't matter, it shouldn't matter even to complain, I think :) -- You received this message because you are

Re: Possible backwards incompatibility introduced by change 12950 (in upgrade from 1.1.1 to 1.1.2)

2010-10-07 Thread Jyrki Pulliainen
On Oct 6, 5:12 pm, Russell Keith-Magee wrote: > Hi Jyrki, > > My apologies for not responding -- your message ran off the bottom of my > inbox. No prob, thanks for the response! > I've had a look at your sample code; the problem is that you're > importing the app1