Re: Customising Admin

2006-12-11 Thread spako
thanks for that, it permissions did the tricks. the editable=False does not do what i require, i want the administrator to be able to view fields but not edit them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Customising Admin

2006-12-11 Thread spako
i'm using django.contrib.admin for the cms of the site i am building. there are a bunch of things i want to do with the cms that i think might be possible, i've just not found much documentation for this addon, these things include: * replacing a field's output in edit view to what i want (i.e.

date filter OverflowError

2006-09-22 Thread spako
when i try use the date filter in my template with the value "1900-01-01 16:27:32.14+01" i get an overflow error. this seems to be because the date is outside the unix timestamp range. a) should this not fail silently? b) can the date filter be changed to handle any date? i'll gladly submit a p

Re: Extend User.AddManipulator?

2006-08-10 Thread spako
please ignore this silly silly typo mistake --~--~-~--~~~---~--~~ 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

Extend User.AddManipulator?

2006-08-10 Thread spako
i'm busy building a site with public side registrations. instead of extending the User class i created a UserProfile class. that way the django stuff is a bit seperate from mine. i've built a public registration form. what i now want is for the password field to appear as a password field and to

Re: psycopg2

2006-08-09 Thread spako
yes you can, in your settings file: DATABASE_ENGINE = 'postgresql_psycopg2' --~--~-~--~~~---~--~~ 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 T

Re: Loop in template

2006-08-02 Thread spako
thanks for the short answer :) saved me around hunting for something. --~--~-~--~~~---~--~~ 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 unsub

Loop in template

2006-08-01 Thread spako
i was wondering if there is a way to use the for loop to loop through a sequence of numbers? i.e. in python you would: for i in range(10): how would you do this in the template? i'd like to use this for some paging i'm building. i want to keep all the html in the templates, as there i

Registration Form - Manipulators

2006-07-17 Thread spako
Hi i'm using django's built in User for web registered users, to add extra fields to these users i've created a UserProfile model and linked it to User using a OneToOneField. Now when someone goes to the site to register I want them to see a form with fields from User and some from UserProfile.

Re: Request context processors - shortcut

2006-07-11 Thread spako
Thanks, that's exaclty what i needed! --~--~-~--~~~---~--~~ 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 ema

Request context processors - shortcut

2006-07-11 Thread spako
i'm going to be using custom context processors a lot so i've written my own shortcut to invoke RequestContext and get a template rendered. this is my function: def render_to_response_with_context_processors(template_name, request, args={}): """ this function was written to provide a "sho

Re: file upload with flash 8 uploader

2006-07-08 Thread spako
thanks for the response guys. i fixed the problem to with something similar to what you suggest Malcom. i started a new thread here: http://groups.google.com/group/django-users/browse_thread/thread/baa6c6d64f59639e that fixed the problem, seemed to will be sure to keep it together next time! also

Re: FIXED - file upload with flash 8 uploader

2006-07-08 Thread spako
i've had a look and did actually use the keyword 'and', i think i made the patch in haste before i tested and corrected it, the patch should be: /django/http/__init__.py Index: __init__.py === --- __init__.py (revision 3287) +++ __i

FIXED - file upload with flash 8 uploader

2006-07-07 Thread spako
i think... here's the patch: /django/http/__init__.py Index: __init__.py === --- __init__.py (revision 3287) +++ __init__.py (working copy) @@ -48,7 +48,7 @@ POST = MultiValueDict() FILES = MultiValueDict() for submes

Re: file upload with flash 8 uploader

2006-07-07 Thread spako
i've added some print statements in the django code like this: Index: __init__.py === --- __init__.py (revision 3287) +++ __init__.py (working copy) @@ -39,6 +39,8 @@ return '' def parse_file_upload(header_dict, post_data)

Re: file upload with flash 8 uploader

2006-07-07 Thread spako
have gotten the following reqeust header, from a header monitor. i also get an error prointed which i will paste below. also i've pasted the view here, it doesn't seem like the request gets to the view. i have tried hitting the view directly in the browser and that works fine. --- view def

file upload with flash 8 uploader

2006-07-07 Thread spako
hi i'm building a site with which will let the public upload files (after registration) to the site. i'm going to use flash to upload the files since the files will be large and with the new flash you can see the progress of an upload. the uploader is in a view i have built. i'm expecting the up

syncdb ignores db_index=True

2006-06-30 Thread spako
when i do: > manage.py syncdb no indexes are created, i've printed out all the sql statements and the SQL for the indexes were infact missing. to check if django at least knows about them i did: > manage.py sqlall and the SQL for the indexes were printed. i've found the ticket http://code.dj

Re: inheriting from models.Model

2006-06-29 Thread spako
for this problem i used the Generic foreign key/relationships. an example in the documentation: http://www.djangoproject.com/documentation/models/generic_relations/ although i didn't find anything about it in the Model API. there is another thing i'd like to do with the above comments example: w

inheriting from models.Model

2006-06-28 Thread spako
hi i'm trying to create a class that contains fields that can be inherited by Model classes like this (User and Video also inherit from Model): class Comment: author = models.ForeignKey(User) comment = models.TextField() date_commented = models.DateTimeField(auto_now_add=True) class