Re: inlineformset_factory KeyError after updating

2009-01-05 Thread Karen Tracey
On Mon, Jan 5, 2009 at 11:33 AM, Alistair Marshall < runninga...@googlemail.com> wrote: > > 2009/1/5 Karen Tracey : > > First, I would try 1.0.2 release or current trunk or 1.0.X branch instead > of > > 1.0. There have been additional fixes in this area that you may

Re: django discarding MySQL results for "in" operator

2009-01-05 Thread Karen Tracey
On Mon, Jan 5, 2009 at 3:37 PM, JonUK wrote: > > Apologies as this is a repost, but I'm completely stuck! > > I'm using django 1.0.2 and the tagging app to retrieve a tag via a > database "in" query, and something is causing the query results to be > discarded. > > In particular, this line of cod

Re: Does PhoneNumberField for models exist?

2009-01-05 Thread Karen Tracey
On Mon, Jan 5, 2009 at 5:33 PM, DragonSlayre wrote: > > http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ > > This lists PhoneNumberField as being a field type, but in the models > documentation, > http://docs.djangoproject.com/en/dev/ref/models/fields/#ref-models-fields > there is no

Re: File upload failing occasionally

2009-01-05 Thread Karen Tracey
On Mon, Jan 5, 2009 at 5:30 PM, ppdo wrote: > > I tried to monitor the interface using WireShark and the communication > just hangs during a data transfer: Apache is just acknowledging the > receipt of some packets and then just seems to hang. The suspicious > bit is a fairly long series of http

Re: Installing Django 1.0.2...

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 7:16 AM, Jay wrote: > > Karen, thanks for your comments, you are right. > However, it turns out that the file "...\Django-1.0.2-final\django > \utils\__init__.py" has size 0, and it seems when using winzip ( I > just realized why 7-zip may have been required for unzipping),

Re: autodiscover not being called? why?

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 9:43 AM, bongo wrote: > > Thanks. It is still not working but probably for another reason (maybe > I have put the admin.py in wrong directory or something). > > Your tip of deleting all the pyc files now results in "Discovered!" > being printed so I think autodiscover is ac

Re: Changing tutorial radio button to drop down

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 12:20 PM, Max wrote: > > Hello, > > Using the tutorial for detail.view, I changed the radio button to a > drop down. I kept the view the same as the tutorial. See > http://dpaste.com/106018/ > > When I select the choice on the drop down, I receive the error saying > I did

Re: strip_tags in django admin issues

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 12:14 PM, ChrisL <1angryc...@googlemail.com>wrote: > > Hi everyone, > > Been bashing against this one for a while now and am keen for > suggestions. I'm trying to apply custom validation to forms within > Django's default admin. First up, I want to strip out all html fro

Re: How to: Inverted ForeignKey usage - Using admin a little backwards?

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 8:01 PM, ZebZiggle wrote: > > Hi all, > > Sorry for the cryptic subject line, but I don't know how else to > describe it. > > I have two tables: > > class Opportunity(models.Model): > ... > > class Deal(models.Model): > opp = models.ForeignKey(Opportunity) > ... > > How

Re: Speeding up the tests, what am I missing?

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 9:25 PM, Todd O'Bryan wrote: > > On Tue, Jan 6, 2009 at 6:23 PM, Russell Keith-Magee > wrote: > > There are some plans in place to speed up test cases using > > transactions; I'm hoping to be able to look at this once I put the > > aggregation and F() code to bed, in the n

Re: ModelForm Default Value for Foreign Key

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 10:08 PM, Chris wrote: > > I've created a ModelForm from a model containing a foreign key field > (called user) linked to my User class. When the form is saved, I want > this value to be set to the current authenticated user. What's the > best way to do this? > > My form's

Re: wondering how to do something similar to save_model for inline.

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 10:10 PM, Timboy wrote: > > Still no solution to this. It has been confirmed by another user. Is > it a bug? > (Where was it confirmed by another user? I don't see that.) The doc list "save_formset" under "ModelAdmin methods" yet you seem to have added it to your inline

Re: Could not import settings

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 2:49 PM, Bradley wrote: > > I move an existing website running django onto a shared webhost via > FastCGI. > > No matter what I do, I get the following error: > > ImportError: Could not import settings 'seymourherald.settings' (Is it > on sys.path? Does it have syntax error

Re: Making changes to models

2009-01-06 Thread Karen Tracey
On Wed, Jan 7, 2009 at 12:48 AM, Travis Veazey wrote: > So now we get to the question: As I can't even begin to conceive of myself > being the only person in this boat, I have to believe there's one or more > generally-accepted and "good" ways of dealing with updating database > structures while m

Re: Drop down list not seeing newly added record

2009-01-07 Thread Karen Tracey
On Wed, Jan 7, 2009 at 7:47 AM, jeffhg58 wrote: > > I have a 2 forms. One to add a new author and then another form for > Articles which has a drop down list to reference the authors. The > behavior I am seeing is that when I add a new author and then go to > the New Article form which references

Re: Shouldn't blank=True imply null=True?

2009-01-07 Thread Karen Tracey
On Wed, Jan 7, 2009 at 10:51 AM, Jeff Anderson wrote: > varikin wrote: > > I agree with this. I use null=False, blank=True for some ImageFields > > and integers. > I'm interested in how a blank integer looks in a MySQL database. Can you > provide an example? > > I believe the further description a

Re: lighttpd + django on windows

2009-01-07 Thread Karen Tracey
On Wed, Jan 7, 2009 at 9:54 AM, Eric Simorre wrote: > > Does anybody know a tutorial about deploying django with lighttpd on > windows ? > > it does not work , and I don't find what to do > If nobody responds with a pointer to a tutorial, you might want to provide a few more details on what exac

Re: Using a model method in ModelAdmin fieldsets

2009-01-07 Thread Karen Tracey
On Wed, Jan 7, 2009 at 11:45 AM, EagerToUnderstand wrote: > > What I try to achieve: > I have a couple of model methods that exposes real time information. > (Retrieved when method is called.) This is information I want to > display not only in the list_display, but also within the change view. >

Re: Shouldn't blank=True imply null=True?

2009-01-07 Thread Karen Tracey
On Wed, Jan 7, 2009 at 12:48 PM, Jeff Anderson wrote: > Karen Tracey wrote: > > On Wed, Jan 7, 2009 at 10:51 AM, Jeff Anderson >wrote: > > > > > >> varikin wrote: > >> > >>> I agree with this. I use null=False, blank=True for some ImageField

Re: How to impose a permission-based filter in admin?

2009-01-07 Thread Karen Tracey
On Wed, Jan 7, 2009 at 12:30 PM, ZebZiggle wrote: > > Hi, > > I have two Model classes: > > class Opportunity(models.Model): >rep = models.ForeignKey(User) > ... > > class Deal(models.Model): >opportunity = models.ForeignKey(Opportunity) > ... > > > I want to limit the admin UI so that

Re: NewBie Question about ForeignKey relationships

2009-01-07 Thread Karen Tracey
On Wed, Jan 7, 2009 at 8:26 PM, Mark Jones wrote: > > Ok, here is some simple code: > > class Maker(models.Model): >name = CharField(max_length=20) > > class Auto(models.Model): >name = CharField(max_length) >maker = ForeignKey(Maker) > > > maker = Maker.objects.get(pk=1) > > How do I

Re: Setting Bound Fields Programmatically

2009-01-07 Thread Karen Tracey
On Thu, Jan 8, 2009 at 12:28 AM, Keyton Weissinger wrote: > > I have a form with the following fields (all required): > - first_name > - last_name > - site_id > > I'd like to use a template to display only the FIRST two items to the > user for him to fill out: > > > {{ form.first_name }} > {{ f

Re: Admin | Lookup via foreign key | Expected Behavior or Bug?

2009-01-07 Thread Karen Tracey
On Thu, Jan 8, 2009 at 12:28 AM, Glen Jarvis wrote: > I'm not certain if this is a bug, or expected behavior. It certainly looks > like a Django bug to me. However, after looking at the same database for > hours on end, it could simply be a cross-eyed user error. > > In sort, the admin interface

Re: ModelForm: exclude fields missing in request

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 11:34 AM, Flo Ledermann wrote: > > Hi all, > > after some more thinking, the workaround I came up with is now: > > if form.is_valid(): >for key in form.cleaned_data.keys(): >if not key in request.POST: del form.cleaned_data[key] >form.save() > > This removes

Re: upload_to not found

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 3:16 PM, Kottiyath Nair wrote: > Hi, > I was trying out a form - with filefield. I used the option upload_to, > and django server erred out saying - upload_to not found. > I checked django code : > >>> import django > >>> django.VERSION > (1, 0, 2, 'final', 0) > > class

Re: Django Models + ManyToMany

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 12:06 PM, rabbi wrote: > > Hi, > I have a question that is probably very simple to answer. > > class Example(models.Model): >value = models.CharField(max_length=200) >related_examples = models.ManyToMany > ('self',related_name='related_example_set') > > If I define

Re: bug in models.Model __str__ return and non-ascii characters !?

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 6:14 PM, adrian wrote: > > hi, > i am posting here to follow the "i found a bug" guide ... > > let's assume i have a model like this: > > --- > class Test(models.Model): >testname = models.CharField(max_length=60, null=False, > blank=False, unique=True) >[... so

Re: get_profile not working (get_model returns None)

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 6:24 PM, Hans Fangohr wrote: > > > Dear all, > > I have difficulties with the get_profile to link my Profile class with > the inbuilt User object. > > The error message (which can be obtained through the 'chatroom' view > shown below, or via the shell) is: > > -

Re: AlreadyRegistered at /admin/, The model #### is already registered

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 6:33 PM, rabbi wrote: > > OK, thanks > I also tried deleting the db file and then calling syncdb again... it > didn't help > Do you have any suggestions? > Try importing your admin.py from a manage.py shell prompt, and see if that shows a more useful exception. Karen --~

Re: Django Models + ManyToMany

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 7:08 PM, rabbi wrote: > > Thanks Karen, > I actually deleted the thread soon after posting it as I came across > what you have written above. > Somehow you still managed to reply to a deleted thread though...? > Impressive > I don't use the Google groups interface to read

Re: AlreadyRegistered at /admin/, The model #### is already registered

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 7:48 PM, rabbi wrote: > > I get the same exception(s) > > The 1st time I try to import swenglish.admin I get: > ImproperlyConfigured: 'EntryAdmin.fieldsets[3][1]['fields']' refers to > field 'created_date' that is missing from the form. > > The 2nd time I try to import swen

Re: get_profile not working (get_model returns None)

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 11:19 PM, Hans Fangohr wrote: > > You are right: using 'People.profile' works. To be clear (for others): the > application name should (in contrast to the documentation) NOT be converted > to lowercase. (But the actual model -- here 'Profile' -- should.) > Then everything

Re: Django/Apache on Ubuntu - admin page looks weird

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 11:45 PM, djangofett wrote: > > Hi, I am trying to get Django running on an Ubuntu server with Apache. > Everything seems to be installed fine (mod_python, plus MySQL with > MySQLdb python bindings), and I am running the main tutorial on the > Django site. I am doing the se

Re: Problem when using RAW SQL Query with Django (not all arguments converted during string formatting)

2009-01-08 Thread Karen Tracey
On Thu, Jan 8, 2009 at 11:41 PM, Kedare wrote: > > Hi, i have made a Cache management Page for Django, but i have a > problem, i need to expire single cache entries, so i made this : > > (the url is like that by example: "/admin/cache_management/? > > action=clear&key=views.decorators.cache.cache

Re: django-admin.py not working on Vista

2009-01-09 Thread Karen Tracey
On Fri, Jan 9, 2009 at 10:55 PM, Rex wrote: > > I installed Django on my Vista box. Using the Windows command shell, I > go to the site-packages/django/bin directory and here's what I get > when I type various commands: > > > django-admin.py help > Type 'django-admin.py help' for usage. > > > pyt

Re: django-admin.py not working on Vista

2009-01-09 Thread Karen Tracey
On Sat, Jan 10, 2009 at 1:25 AM, Rex wrote: > > On Jan 9, 11:51 pm, "Karen Tracey" wrote: > > On Fri, Jan 9, 2009 at 10:55 PM, Rex wrote: > > > ... > > > I Googled around, and the only thing I found was this comment: > > > > > "you

Re: can't get a model in the admin

2009-01-11 Thread Karen Tracey
On Sun, Jan 11, 2009 at 7:19 PM, Bobby Roberts wrote: > > here's my model: > > from django.db import models > > class Testimonial(models.Model): >active=models.IntegerField(max_length=11, blank=False) >testimony=models.CharField(max_length=500) >name=models.CharField(max_l

Re: newforms library.

2009-01-12 Thread Karen Tracey
On Mon, Jan 12, 2009 at 6:11 AM, seki wrote: > > Hi guys, > I have been teaching myself Django and I have worked with the latest > release. To me it seems the new library isn't shipped with the > newforms library ( i.e Django-1.0.2-final)... > I just coppied the library from an older version. > H

Re: First page access from another box, not 127.0.0.1

2009-01-12 Thread Karen Tracey
On Mon, Jan 12, 2009 at 11:15 AM, moiseyo wrote: > > I'm new with Django , and I'm follow the tutorial. > > I have install Django on my Linux box , and use My Windows box as a > development station - Web Browser , Editor , File copy etc. I use > SAMBA to access Linux files. > > I made a f

Re: django installation problem

2009-01-12 Thread Karen Tracey
On Mon, Jan 12, 2009 at 2:31 PM, bconnors wrote: > > At my pythonpath directory I type in: > > Python django-admin.py > > and I get : > > Type 'django-admin.py help' for usage, which is : > What is it you want to do? You get the "here's how to get help" message because you haven't provided any

Re: Importing old projects into a fresh django installation

2009-01-12 Thread Karen Tracey
On Mon, Jan 12, 2009 at 6:20 PM, Robocop wrote: > > Esteemed colleagues: > > I've just built a small web server running django .97, with python > 2.4, mysql-python-1.2, and mod_python 3.2.8. There was never a Django 0.97 release. Anything that reports itself as Django 0.97-pre is an SVN checko

Re: Importing old projects into a fresh django installation

2009-01-12 Thread Karen Tracey
On Mon, Jan 12, 2009 at 6:42 PM, Robocop wrote: > > Well i definitely have code written for .96 (i may be running .96 or > a .97 svn checkout). My problem here is i'm trying to replicate the > old environment (i.e. i have .96 installed currently), yet something > is going haywire. So as of righ

Re: Validating imported data

2009-01-12 Thread Karen Tracey
On Mon, Jan 12, 2009 at 10:42 PM, Peter wrote: > > Hello, > > I'm trying to build an application with django that supports data > import from a CSV. The problem that I'm having is validating the data. > I know how to validate data that comes from a form. > > However, in my case the user is using

Re: Newbie questions concerning nesting blocks, for loop and super

2009-01-13 Thread Karen Tracey
On Tue, Jan 13, 2009 at 12:31 PM, dr.mob...@googlemail.com < dr.mob...@googlemail.com> wrote: > > Hello, > I'm new to DJango, but I'm already lovin' it. I have a few questions > however - can someone offer any guidance, please? > > Is the possible following in a template: > { inherits ... } > I t

Re: How to find out more info about "Error: No module named ..."

2009-01-13 Thread Karen Tracey
On Tue, Jan 13, 2009 at 1:21 PM, jhill10110 wrote: > > I am getting a module load error but I can't tell what is causing it. > > Running `./django-admin.py validate --verbosity 2` returns "Error: No > module named config". > > I have no idea what is trying to load this module and can't find any >

Re: Any reason to not extend User model using model inheritance (vs UserProfile approach)?

2009-01-13 Thread Karen Tracey
On Tue, Jan 13, 2009 at 9:14 PM, ldm999 wrote: > > I need some extra fields on User and my first assumption was I could > subclass user (yes, I am a newbie). Then I read the docs and they talk > about using UserProfile. This article (http://scottbarnham.com/blog/ > 2008/08/21/extending-the-django

Re: Very high com_admin_commands with django/mysql

2008-07-14 Thread Karen Tracey
On Mon, Jul 14, 2008 at 6:12 PM, fordprefect <[EMAIL PROTECTED]> wrote: > > We have been optimizing our server (db and caching) since our recent > launch and one thing we've been looking at is our server status: > > Total queries: 4,307,827 > Com_admin_commands: 3,754,356 > Com_insert: 37,790 > Co

Re: multiple one-to-one relationships

2008-07-16 Thread Karen Tracey
On Wed, Jul 16, 2008 at 2:49 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > I've got an issue with multiple one-to-one relationships, which > probably arises from poor design decisions on my part. Given a model > like the following: > > class Translator(models.Model): > user = models.OneToOn

Re: Turning on mod_python in Apache does not allow non-Django pages to rendor correctly

2008-07-16 Thread Karen Tracey
On Wed, Jul 16, 2008 at 10:51 AM, danielk <[EMAIL PROTECTED]> wrote: > > I've been doing things with PHP (and phpDocumentor) and recently > started looking into Django. > > I now have the following in my 'httpd.conf' file: > > LoadModule python_module "C:/Progra~1/Apache~1/Apache2.2/modules/ > mod

Re: Turning on mod_python in Apache does not allow non-Django pages to rendor correctly

2008-07-16 Thread Karen Tracey
On Wed, Jul 16, 2008 at 1:49 PM, danielk <[EMAIL PROTECTED]> wrote: > > On Jul 16, 12:03 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > On Wed, Jul 16, 2008 at 10:51 AM, danielk <[EMAIL PROTECTED]> > wrote: > > > > > I'

Re: Using an email as the user login

2008-07-17 Thread Karen Tracey
On Thu, Jul 17, 2008 at 12:04 PM, rootbit <[EMAIL PROTECTED]> wrote: > > Hey everyone. > i would like to change the authentication system, so that usernames > will be email > like on facebook. > > > how should i go about doing that? > > The answer that has been given other times people have asked

Re: URL encoding problem

2008-07-17 Thread Karen Tracey
On Thu, Jul 17, 2008 at 1:01 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hi, > I have a problem about the encoding of the variables that i have in my > views.. > > I've an url like this: > > http://elvis.sinedita.it/dossiers/Comunità/1/

Re: Strange ProgrammingError - What causes it?

2008-07-17 Thread Karen Tracey
On Thu, Jul 17, 2008 at 5:02 PM, andrewljohnson <[EMAIL PROTECTED]> wrote: > > Hi, > > I am getting a strange programming error, and I wonder what causes it? > > The Error > > ProgrammingError at /trips/viewtrip/2/ > ERROR: current transaction is aborted, commands ignored until end of > t

Re: 64 bit integer field

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 12:30 AM, simon <[EMAIL PROTECTED]> wrote: > > How do i create a long long integer field in my model ? Do I use > decimal ? (worried about performance of the decimal field). I am using > the mysql backend. > > There's a very old ticket that has not yet been closed for addin

Re: Validation Implementation (architectural question) with newforms

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 10:47 AM, Nash <[EMAIL PROTECTED]> wrote: > > Hi all, > > There are loads of places to validate your data in django. You can do > it at the Model's field, at the Model.save() at the form's field level > clean_FIELD_NAME(), at the form level clean_data() etc. > > If I have a

Re: newforms-admin weird error ( 'str' object has no attribute '_default_manager' )

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 10:57 AM, Bram de Jong <[EMAIL PROTECTED]> wrote: > > Hello all, > > just updated to latest newforms-admin (r7947) and > Do you know what level you updated from? That's always handy to know when trying to pinpoint when a problem was introduced. > This is the admin f

Re: inspectdb don't build model form MySQL

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 7:42 AM, anoval <[EMAIL PROTECTED]> wrote: > > hi everyone, > > short summary says all about my problems, here is the case; > > -- > [snipped table definitions and basically empty models.py] > > did i do something wrong or it's the Django thing? > > oh, and yeah all tables

Re: Admin fields setting raises FieldDoesNotExist

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 8:44 PM, Justin Myers <[EMAIL PROTECTED]> wrote: > > Hello again! Still working on the blogging app I mentioned a couple of > days ago for my student newspaper. It's working on our production > server right now (so some of the other editors can check it out and > make sugge

Re: newforms-admin branch has been merged into trunk

2008-07-19 Thread Karen Tracey
On Fri, Jul 18, 2008 at 10:11 PM, Robvdl <[EMAIL PROTECTED]> wrote: > > Thanks very much for this > > I have been running Newforms Admin for a while, so when the big > changeover was going to hit, I would be ready, not changing too much > existing code. > > One thing I noticed now, running SVN 796

Re: superuser has no rights with newforms admin

2008-07-19 Thread Karen Tracey
On Sat, Jul 19, 2008 at 12:36 PM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > > > I've tried alternating between using admin.autodiscover() in my > > urls.py, and manually registering my models using > > admin.site.register(Person), but I still get the permission error in > > the admin site. I've

Re: Great work with newforms-admin

2008-07-19 Thread Karen Tracey
On Sat, Jul 19, 2008 at 8:50 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > Is there a complete reference for newforms-admin (not a FAQ, tutorial > or changelist) other than the code itself? > http://www.djangoproject.com/documentation/admin/ Karen --~--~-~--~~~--

Re: Great work with newforms-admin

2008-07-19 Thread Karen Tracey
to the admin doc. > There is a ticket: http://code.djangoproject.com/ticket/7829, at least for the 1st. Not sure it mentions the 2nd so you could add a note there if you like. Karen > > On Jul 19, 2008, at 7:54 PM, Karen Tracey wrote: > > On Sat, Jul 19, 2008 at 8:50 PM, R

Re: custom AdminSite access for non-staff user (newforms-admin)

2008-07-20 Thread Karen Tracey
On Sun, Jul 20, 2008 at 3:37 AM, SanPy <[EMAIL PROTECTED]> wrote: > Is it possible to allow a non-staff member access to a custom > AdminSite? When I try to login as a non-staff user, I get the error > message: "Please enter a correct username and password. Note that both > fields are case-sensiti

Re: Sets

2008-07-20 Thread Karen Tracey
On Sun, Jul 20, 2008 at 10:05 AM, Cole Tuininga <[EMAIL PROTECTED]> wrote: > > On Sat, Jul 19, 2008 at 11:50 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > > 'set' is a Python standard object [1], since version 2.4. In version > > 2.3 you need to import the 'Set' package first. > > So, if you

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
On Sun, Jul 20, 2008 at 11:05 AM, Jon Atkinson <[EMAIL PROTECTED]> wrote: > >> > I have no idea what is going on in cases where people have > >> > admin.autodiscover() in their urls.py yet still get this "You don't > have > >> > permission to edit anything" message. I'd suggest you put a print >

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
On Sun, Jul 20, 2008 at 9:11 AM, eka <[EMAIL PROTECTED]> wrote: > > Hi > > I'm installing it from SVN and got "You don't have permission to edit > anything", I made it work before, but now when I try to follow the > book can't. Could you tell me what should I add to have full > permissions? > I h

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
On Sun, Jul 20, 2008 at 12:32 PM, Jon Atkinson <[EMAIL PROTECTED]> wrote: > > > You can't really be using trunk 7951 -- that's from before newforms-admin > > merge which was 7967?? Try updating to latest trunk? > > So I feel slightly ... foolish :-) > Does that mean it works for you as well if y

Re: superuser has no rights with newforms admin

2008-07-20 Thread Karen Tracey
On Sun, Jul 20, 2008 at 12:01 PM, Jon Atkinson <[EMAIL PROTECTED]> wrote: > I've uploaded my complete project tree (it's fairly small, and I've > included the sqlite database). The admin username and password is > 'test'. It's available at: > > http://jonatkinson.co.uk/static/junk/myproj.zip > > F

Re: URL encoding problem

2008-07-21 Thread Karen Tracey
On Mon, Jul 21, 2008 at 12:23 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Some news; > I found an old trunk (0.97-pre-SVN-unknown ... ?!?!) and I downgraded > the django version.. > Now all works well... > > It's a bug of the new versions..? > > Not likely. It's more likely your code is

Re: django-admin.py not recognized in Windows Vista despite adding it to the PATH

2008-07-21 Thread Karen Tracey
On Mon, Jul 21, 2008 at 2:13 PM, Tye <[EMAIL PROTECTED]> wrote: > > I've had this issue as well. > > Just restart. > Or, exit and re-open all your command prompts. Changing the PATH setting in the System settings doesn't update the path for existing command prompts. At least not on 2K/XP, I don'

Re: Newforms admin problem: TemplateSyntaxError at /admin/

2008-07-21 Thread Karen Tracey
On Mon, Jul 21, 2008 at 10:59 AM, Florencio Cano <[EMAIL PROTECTED]> wrote: > > Uhm, the solution was to delete the database and recreate it. Now it > runs correctly. > Note this sort of thing (delete/recreate database) IS NOT generally necessary for updating to the newforms admin code, which is

Re: ImportError: cannot import name parse_lookup

2008-07-21 Thread Karen Tracey
If you search this list for likely keywords like the book you are using and the app you are trying to get working you will find that other people have hit the same problem, and I believe they have described solutions. I don't have time to look up specific posts right now, but I know I have seen th

Re: URL problems after newforms admin migration

2008-07-24 Thread Karen Tracey
On Tue, Jul 22, 2008 at 2:17 PM, Matthew <[EMAIL PROTECTED]> wrote: > > Hey everyone, I recently updated a development version of my Django > site to use the newforms admin, following the tutorial here > > http://oebfare.com/blog/2008/jul/20/newforms-admin-migration-and-screencast/ > It all went f

Re: internal server error with new development version

2008-07-24 Thread Karen Tracey
On Tue, Jul 22, 2008 at 7:12 AM, ajo11 <[EMAIL PROTECTED]> wrote: > > Hi, > > After upgrading from development version 7933, I'm getting a 500 > Internal Server Error page. This doesn't happen every time. > Sometimes it gives the expected response & sometimes it gives a normal > 500 page. > I thi

Re: UnicodeDecodeError and mysql

2008-08-20 Thread Karen Tracey
On Wed, Aug 20, 2008 at 3:31 AM, anonymous <[EMAIL PROTECTED]> wrote: > > Hello all, > > I get the following error: > > In [2]: from myapp.models import * > > In [3]: Mymodel.objects.all() > Out[3]: > --- > UnicodeDecodeE

Re: problems with request.user

2008-08-20 Thread Karen Tracey
On Wed, Aug 20, 2008 at 5:13 PM, Burr Settles <[EMAIL PROTECTED]> wrote: > > I recently came back to a project I put on hold for a couple weeks, > and after updating the Django trunk, all my references to > "request.user.id" are broken. Here is an example view for a rating > widget: > > 1 @login_r

Re: Problem with generic views in tutorial example

2008-08-22 Thread Karen Tracey
On Fri, Aug 22, 2008 at 4:38 AM, Rodney Topor <[EMAIL PROTECTED]> wrote: > > On Aug 22, 4:18 pm, Anurag Goel <[EMAIL PROTECTED]> wrote: > > I was able to implement the generic views change with yesterday's > > trunk version successfully. I did not have to do anything special (no > > separate admin

Re: import of mysql in settings.py

2008-08-22 Thread Karen Tracey
On Thu, Aug 21, 2008 at 10:23 PM, Ian Holsman <[EMAIL PROTECTED]> wrote: > > Cortland Klein wrote: > > I just had the same problem. It has something to do with MySQLdb not > > being included. > > > > > > when it rain's it pours. I'm been hitting my head on the same problem. > to verify that this i

Re: Set invalid error on exception SMTPSenderRefused

2008-08-22 Thread Karen Tracey
On Fri, Aug 22, 2008 at 7:13 AM, janedenone <[EMAIL PROTECTED]>wrote: > > Hi, > > I validate my contact form through Django's form validation framework. > The SMTPSenderRefused exception, however, is not caught in the > validation process. Now I would like to > >try: >send_

Re: Form validation

2008-08-23 Thread Karen Tracey
On Sat, Aug 23, 2008 at 4:34 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > OK, I've found why it wasn't returning an httpresponseobject. It was > because I wasn't returning a render_to_response on validation fail. > However I cannot get my errors to show on the form. Any ideas ? > Follow th

Re: Modify data before save?

2008-08-23 Thread Karen Tracey
On Sat, Aug 23, 2008 at 9:19 PM, Paddy Joy <[EMAIL PROTECTED]> wrote: > > What is the best way to modify form data before it is saved to the > database? > Generally this is done during cleaning/validation. > I have tried the following but can't seem to get it to work, can > anyone help? > More

Re: First App: devel server - can't establish a connection to 127.0.0.1

2008-08-23 Thread Karen Tracey
On Sat, Aug 23, 2008 at 10:42 PM, Rob Erbaron <[EMAIL PROTECTED]>wrote: > > Next question: Is there a way to set up this development server as a > service so I don't have to start it from a terminal each time? > Each time what? It's a development server, expected to be used as you develop your c

Re: pagination best practices

2008-08-23 Thread Karen Tracey
On Fri, Aug 22, 2008 at 8:05 PM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > I have this very simple and primitive pagination method being called with > this instruction in urls.py > > [snipped] > Every time I hit something like domain/pyisp/menu/2 it shows the second > page of the QuerySet. Everyt

Re: pagination best practices

2008-08-23 Thread Karen Tracey
On Sun, Aug 24, 2008 at 1:23 AM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > > So, let's say that everytime i get a page, the internat query to the db > just gets the, lets say, 10 rows that I requested? because I'm using > objects.all(). In that process, where is the DB being hit? > > Model.object

Re: Template path for new admin doc broken in revision 8520?

2008-08-24 Thread Karen Tracey
On Sun, Aug 24, 2008 at 10:27 AM, Shadow <[EMAIL PROTECTED]>wrote: > > Hi, not an expert! > > but I think I had this same problem. The admin docs were fairly > recently moved into a separate app. So you'll need to update your urls > to something like: > > --

Re: Admin problems :(

2008-08-24 Thread Karen Tracey
On Sun, Aug 24, 2008 at 11:33 AM, Shadow <[EMAIL PROTECTED]>wrote: > > But I'm not sure why the "Change password" link still isn't working. > I'm not sure it's associated with the models? > > http://dpaste.com/73515/ > That's a bug in Django. I've opened a ticket with a patch to get it fixed: h

Re: Saving an unbound form

2008-08-24 Thread Karen Tracey
On Sun, Aug 24, 2008 at 4:56 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > Hello, > > I have a form that I have created and it works fine. I am now trying > to save this form. The data returned from the form spans a > relationship and should update 2 tables associated by a foreign key. > > F

Re: Outputting PDF

2008-08-25 Thread Karen Tracey
On Mon, Aug 25, 2008 at 9:01 AM, saeb <[EMAIL PROTECTED]> wrote: > > Hi, > > Following is my view. http://dpaste.com/73677/ > In the template I have 2 buttons, one is to retrieve results for the > id typed in the input box and other is to generate a PDF of the > results (if user desires). The resu

Re: photologue installation

2008-08-25 Thread Karen Tracey
On Mon, Aug 25, 2008 at 12:39 PM, Briohny <[EMAIL PROTECTED]> wrote: > > I'm using the Django-1.0-alpha_2 version and I'm trying to install the > photologue application. When i run my database sync it's coming up > with the following error: > > > File "C:\Documents and Settings\TR\Sample > > Proj

Re: Empty template_name for login

2008-08-25 Thread Karen Tracey
2008/8/25 Ludwig <[EMAIL PROTECTED]> > I am using the 1.0 beta 1 release. > > I think I am following the documentation, when I set > > ('^accounts/login/(.*)', 'django.contrib.auth.views.login', {}), > > in my urls.py > > But then I get a TemplateDoesNotExist exception when opening > /accounts

Re: Strategies for staying current with django development

2008-08-25 Thread Karen Tracey
On Mon, Aug 25, 2008 at 5:01 PM, Steve Potter <[EMAIL PROTECTED]>wrote: > If you look in the django-users archive I think I remember a few other > people having the same auth problems you are describing, however I > don't remember the solution. > As I recall a lot of people reported this error, b

Re: simple multiplication in models

2008-08-25 Thread Karen Tracey
On Mon, Aug 25, 2008 at 5:22 PM, Chris Amico <[EMAIL PROTECTED]> wrote: > > This seems like it should be simple, but I'm getting errors. > > I have a model tracking individual purchases. User inputs an item cost > and quantity; I want the total cost calculated. Here are the relevant > parts: > > c

Re: Empty template_name for login

2008-08-26 Thread Karen Tracey
On Tue, Aug 26, 2008 at 7:21 AM, Ludwig <[EMAIL PROTECTED]> wrote: > > ('^accounts/login/(.*)', 'django.contrib.auth.views.login'), > ('^accounts/profile/(.*)', 'django.contrib.auth.views.profile'), > ('^accounts/logout/(.*)', 'django.contrib.auth.views.logout', > {'next_page': '/'}),

Re: Problems with photologue installation

2008-08-26 Thread Karen Tracey
On Tue, Aug 26, 2008 at 2:50 AM, Benjamin Buch <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm working with the most recent versions of both django and photologue. > When I add photologue to the INSTALLED_APPS, the testserver stops > working and I get this traceback: > > Validating models... > Unhandle

Re: NOT follow foreign key relation

2008-08-26 Thread Karen Tracey
On Tue, Aug 26, 2008 at 7:49 AM, robin <[EMAIL PROTECTED]> wrote: > > ###MODELS.PY### > class Body(models.Model): > body=models.CharField(max_length=50,primary_key=True) #eg. sedan, > hatchback > def __unicode__(self): >return unicode(self.body) > > class Car(models.Model): > body=models.Fo

Re: problems while running through django.core.handlers.wsgi.WSGIHandler

2008-08-26 Thread Karen Tracey
On Tue, Aug 26, 2008 at 11:35 AM, vv2 <[EMAIL PROTECTED]> wrote: > > I am running my app on latest trunk (r8580 at the moment of writing > this post) and I have nothing but problems while trying to deploy my > stuff over mod_wsgi. > > Exception I am receiving is generic " 'str' object has no attri

Re: problems while running through django.core.handlers.wsgi.WSGIHandler

2008-08-26 Thread Karen Tracey
On Tue, Aug 26, 2008 at 12:07 PM, vv2 <[EMAIL PROTECTED]> wrote: > > Hi Karen, > > Thanks for your immediate reply! > > I will extract problematic app into separate project and get in touch > with you later this day. > > OK, I was able to recreate with the project provided. I too see the failure

Re: convenient method of getting related objects with the database API?

2008-08-26 Thread Karen Tracey
On Tue, Aug 26, 2008 at 4:41 PM, Andrew D. Ball <[EMAIL PROTECTED]>wrote: > > Is there a convenient way to get all objects related to > a given model instance? I want to check for objects > that would be deleted with a cascading delete before > actually performing a deletion. > The admin does th

Re: FileUploadHandler does strange things

2008-08-26 Thread Karen Tracey
On Tue, Aug 26, 2008 at 5:27 PM, mwebs <[EMAIL PROTECTED]> wrote: > ... > When I am uploading a file and taking a look at the directory where > the files should be stored, I > produced 212 files aa.txt to aa_...___.txt. Furthermore I get > an IOError for "no such file or directory", which

Re: what's wrong with the djangoadmin tool of mine

2008-08-26 Thread Karen Tracey
On Tue, Aug 26, 2008 at 9:38 PM, App Engine <[EMAIL PROTECTED]> wrote: > I don't understand. > > I using ubuntu_server edition apache mysql python pyton-mysqldb > > I install django follow the guide but when I finish it ,I found the admin > tool can't display the static files.like img and css >

<    1   2   3   4   5   6   7   8   9   10   >