Databrowse Template Problem

2007-06-03 Thread J.P. Cummins
I get the following error when loading the databrowse application: TemplateDoesNotExist at /databrowse/ (...) Using loader django.template.loaders.app_directories.load_template_source: /usr/lib/python2.4/site-packages/django/contrib/admin/templates/databrowse/homepage.html (File does not exist)

Re: use of save_FOO_file

2007-06-03 Thread sansmojo
Well, I'm really not sure what you've got going on. You definitely need enctype="multipart/form-data" for it to work. Have you tried saving a file in the default admin for the model? If so, does it work as expected? If not, maybe you have MEDIA_ROOT set wrong. Also try simplifying your form

Re: Custom Model Field Help

2007-06-03 Thread Sean
Cool! Thanks for the feedback and advice, I'll be excited to check out what you guys have come up with. On Jun 3, 10:23 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-06-04 at 10:20 +0800, Russell Keith-Magee wrote: > > On 6/2/07, Sean <[EMAIL PROTECTED]> wrote: > > > > I

Re: No module named managers

2007-06-03 Thread Malcolm Tredinnick
On Mon, 2007-06-04 at 03:00 +, akonsu wrote: > hello, > > this problem repro's even on an empty application freshly created > using manage.py. i do think that someone forgot to add a file to the > repository. I cannot repeat this on a new project or an existing (quite complex) project.

Re: No module named managers

2007-06-03 Thread akonsu
hello, this problem repro's even on an empty application freshly created using manage.py. i do think that someone forgot to add a file to the repository. konstantin On Jun 3, 9:32 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 6/4/07, akonsu <[EMAIL PROTECTED]> wrote: > > > > >

Re: Custom Model Field Help

2007-06-03 Thread Malcolm Tredinnick
On Mon, 2007-06-04 at 10:20 +0800, Russell Keith-Magee wrote: > On 6/2/07, Sean <[EMAIL PROTECTED]> wrote: > > > > I have gotten the encryption and decryption code down and I have been > > able to override the appropriate functions so that the data is > > encrypted when it is saved to the

Re: Custom Model Field Help

2007-06-03 Thread Russell Keith-Magee
On 6/2/07, Sean <[EMAIL PROTECTED]> wrote: > > I have gotten the encryption and decryption code down and I have been > able to override the appropriate functions so that the data is > encrypted when it is saved to the database. Unfortunately I have not > been able to figure out what function to

Re: Integrating Selenium web tests with django test suite

2007-06-03 Thread Russell Keith-Magee
On 6/2/07, Almad <[EMAIL PROTECTED]> wrote: > > Hi, > > I'd like to ask how do you integrate your webtests with django suite, > so it'll be run on manage.py test. ... > How do You integrate Your tests with Selenium? I haven't played with Selenium integration extensively; however, the broad use

Re: Can someone explain custom managers to me? (model methods vs. custom mgr. methods)

2007-06-03 Thread Malcolm Tredinnick
On Mon, 2007-06-04 at 01:27 +, [EMAIL PROTECTED] wrote: > I've been working with .91-bugfixes for a long time, and moving into > the development version makes me feel like a stranger lost in a > wonderful, yet foreign, country. I have no doubt all the changes are > for the better, but I'm a

Re: Announcing Flutterbox

2007-06-03 Thread [EMAIL PROTECTED]
Hello, I signed up for the website, but at the point where it started asking me to enter my username/password for many different social networking sites, red flags started to go up. What reason would your site need my password for digg.com, for example? Based on my username alone, the RSS feed

Re: Latin-1 text from the database.

2007-06-03 Thread Malcolm Tredinnick
On Sun, 2007-06-03 at 04:54 -0700, Roger wrote: > Hi all, > I am pretty new to django, and am trying fix some code I inherited, so > far I have much success and have > been impressed with Django. > > I do have one problem I hope someone here can help me with. I have > some messages in the

Re: automated testing of django apps via browser

2007-06-03 Thread Russell Keith-Magee
On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Has anybody experience in selenium and django ? > > During ./manage test there are mechanism to load fixtures, which I tried to > use. During first tests with selenium I need to run ./manage runserver on my > test system. Since the

Re: wicket like templating

2007-06-03 Thread Russell Keith-Magee
On 6/4/07, Ittay Dror <[EMAIL PROTECTED]> wrote: > > > On Jun 3, 9:50 am, Nicola Larosa <[EMAIL PROTECTED]> wrote: > > IttayDror wrote: > > > I was wondering if anyone has thought about makingdjango'stemplating > > > system more in the concepts of wicket (there are other such templating > > >

Re: No module named managers

2007-06-03 Thread Russell Keith-Magee
On 6/4/07, akonsu <[EMAIL PROTECTED]> wrote: > > hello, > > i have just synched to the latest trunk and my application has stopped > working: Some more detail would help. What revision _was_ the application on? What revision is it now? ("latest trunk" is a vague description). > ViewDoesNotExist

Can someone explain custom managers to me? (model methods vs. custom mgr. methods)

2007-06-03 Thread [EMAIL PROTECTED]
I've been working with .91-bugfixes for a long time, and moving into the development version makes me feel like a stranger lost in a wonderful, yet foreign, country. I have no doubt all the changes are for the better, but I'm a little tripped up on managers. (probably because I never fully

Re: FileInput widget behaviour related to upload_to attribute

2007-06-03 Thread Russell Keith-Magee
On 6/3/07, cesco <[EMAIL PROTECTED]> wrote: > > I created a form for adding Offer objects as follows: > > class AddOfferForm(forms.Form): > picture = forms.CharField(widget=forms.FileInput()) File uploads aren't currently handled by the newforms framework. The FileInput widget has been

Re: [Announce] Django on Gentoo (DoG) Linux EC2 Image

2007-06-03 Thread Michael Trier
Thanks for the kind words. I have the dyndns stuff implemented for myself but didn't include in the image. I'm still working all that out. Here's a good post with some great ideas on scalability: http://developer.amazonwebservices.com/connect/thread.jspa?messageID=57395 It looks like he is

Re: Creating a current path Context Processor

2007-06-03 Thread James Bennett
On 6/3/07, Evan H. Carmi <[EMAIL PROTECTED]> wrote: > I don't know how to pass the context processor with HttpResponse so my > template can do the ifequal. If someone can send me in the right > direction it would be glorious. Have a look at the documentation, which covers the fact that you need

Creating a current path Context Processor

2007-06-03 Thread Evan H. Carmi
Hi, I am trying to follow the DRY principle. For the navigation of my site I want to have a single template. My problem is that I need a way to change the class of the nav links depending on what page is currently being visited. I want to try and do something of this sort: In my template do a

Re: Django-multilingual newforms-admin branche?

2007-06-03 Thread [EMAIL PROTECTED]
Hi, On Jun 1, 11:05 am, Glin <[EMAIL PROTECTED]> wrote: > Hi, I wonder if there is branch of django-multilingualfor newforms- > admin? Nope, there is no such branch yet, but I would be more than happy to see someone helping out with this. It would be even better if it was possible to detect

Announcing Flutterbox

2007-06-03 Thread Sam Willis
Hi, I have been following discussions on this group for a while now and believe that this is a good place to gain some feedback on my site - www.flutterbox.com. Flutterbox is a social networking tool that allows each user to track what their friends and colleagues are doing on multiple websites

HELP ME OUT OF THIS!

2007-06-03 Thread ikgajeaccountvernakken
hi all, Im new here can you please click on the following link so i can get some points??? It would be helpfull :http://s1.metaldamage.nl/c.php? uid=112331 sorry for my bad english...i'm working on it. greetzz --~--~-~--~~~---~--~~ You received this message

Re: use of save_FOO_file

2007-06-03 Thread cesco
On Jun 3, 6:52 pm, sansmojo <[EMAIL PROTECTED]> wrote: > The raw, binary data of the file. After uploading, it ends up at > request.FILES['file']['content'] (where 'file' is the name of your > form field). > > An example: > > if request.FILES.has_key('file'): > new_file =

SEO in Pakistan & Karachi

2007-06-03 Thread koom2023
1-Month Garneted TOP-10 Ranking in Google and/or Yahoo with Over 150 Search Engines Submissions in Google, Yahoo, MSN, DOMZ & etc including Submissions Log Report.. For Order Now by Call/SMS Please Contract at 0333-2303103 or 0345-3034510. For Order Now by E-mail Please Contract at [EMAIL

Re: wicket like templating

2007-06-03 Thread Forest Bond
On Sun, Jun 03, 2007 at 10:43:12AM -0700, Ittay Dror wrote: > On Jun 3, 9:50 am, Nicola Larosa <[EMAIL PROTECTED]> wrote: > > IttayDror wrote: > > > I was wondering if anyone has thought about makingdjango'stemplating > > > system more in the concepts of wicket (there are other such templating > >

Re: wicket like templating

2007-06-03 Thread Ittay Dror
On Jun 3, 9:50 am, Nicola Larosa <[EMAIL PROTECTED]> wrote: > IttayDror wrote: > > I was wondering if anyone has thought about makingdjango'stemplating > > system more in the concepts of wicket (there are other such templating > > engines, this is the one i've used). > > That's not going to

Re: best practice for portal-like pages?

2007-06-03 Thread oggie rob
Ahh, yeah, I suppose so! I didn't really think the rendered text through, and you're right that it has the same flexibility. -rob On Jun 3, 2:40 am, "patrick k." <[EMAIL PROTECTED]> wrote: > actually, I donĀ“t have to change the view for whatever layout I want > to have with my approach ... > >

Re: wicket like templating

2007-06-03 Thread Ittay Dror
ffu, here is how to use kid in django http://blogs.translucentcode.org/mick/2005/09/29/using_kid_with_django/ On Jun 3, 9:50 am, Nicola Larosa <[EMAIL PROTECTED]> wrote: > IttayDror wrote: > > I was wondering if anyone has thought about makingdjango'stemplating > > system more in the concepts of

A.MrsLove.com, Multi-Million Dollar Homepage. Who are the Rich people /companies and at the Top?

2007-06-03 Thread Thomas
A.MrsLove.com, Multi-Million Dollar Homepage. Who are the Rich people / companies and at the Top? The bigger amount of promotion /payment will be arranged in topper position of Multi-Million Dollar Homepage. To reveal, kindly visit Multi-Million Dollar Homepage: http://A.MrsLove.com/ To How It

automated testing of django apps via browser

2007-06-03 Thread dummy
Hi all, I currently working on an company application which needs a lot of automated tests to make sure that changes on code won't break usability for out production environment. I wrote doctests for our models via models.py. I wrote small application tests via TestCases. Until now I have

Re: use of save_FOO_file

2007-06-03 Thread sansmojo
The raw, binary data of the file. After uploading, it ends up at request.FILES['file']['content'] (where 'file' is the name of your form field). An example: if request.FILES.has_key('file'): new_file = File(some_field='some_val', date_uploaded=datetime.now())

dtect changes for many-to-many relation

2007-06-03 Thread sihing Krzysztof Kaczmarek
Hello, class Section(models.Model): name = models.CharField(blank=True, unique=True, maxlength=100) students = models.ManyToManyField (Student,filter_interface=models.HORIZONTAL) I want detect students-field's changes and when a Student is remove or add to relation, I want

use of save_FOO_file

2007-06-03 Thread cesco
In the following method available for FileFields: save_FOO_file(filename, raw_contents) what does "raw_contents" represents? I didn't find any example on the web about it. Many thanks Francesco --~--~-~--~~~---~--~~ You received this message because you are

Creating a number array in a model?

2007-06-03 Thread Andreas Pfrengle
Hi all, I'm looking for a good possibility to handle integer and decimal arrays in a database. I'm using postgresql, which seems to have array types; but since I'm not very familiar with sql (or databases at all), I won't like to fall back to code it directly. So is there any other easy way to

Re: Latin-1 text from the database.

2007-06-03 Thread Margaret
using UTF8 replace the others On 6/3/07, Roger <[EMAIL PROTECTED]> wrote: > > Hi all, > I am pretty new to django, and am trying fix some code I inherited, so > far I have much success and have > been impressed with Django. > > I do have one problem I hope someone here can help me with. I have >

Latin-1 text from the database.

2007-06-03 Thread Roger
Hi all, I am pretty new to django, and am trying fix some code I inherited, so far I have much success and have been impressed with Django. I do have one problem I hope someone here can help me with. I have some messages in the database in several languages. When I read the English text, no

Re: Very large scale sites in Django

2007-06-03 Thread Daniel Ellison
On Saturday 02 June 2007 10:02:08 Simon Willison wrote: > Memcached is pretty much the industry standard now for caching on high > traffic sites, at least those that use the LAMP stack. Flickr and > Wikipedia both use it, but the highest traffic install at the moment > is probably Facebook who

Re: FileInput widget behaviour related to upload_to attribute

2007-06-03 Thread cesco
> Can you tell us more info about your view code ? Thanks for the quick response! in the view I have the following if request.method == 'POST': form = AddOfferForm(request.POST) if form.is_valid(): #new_offer = form.save()

Re: FileInput widget behaviour related to upload_to attribute

2007-06-03 Thread sansmojo
Are you handling the file yourself? Are you using the save_FIELD_file method of the image field? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: FileInput widget behaviour related to upload_to attribute

2007-06-03 Thread EL AATIFI Sidi Mohamed
Can you tell us more info about your view code ? --~--~-~--~~~---~--~~ 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

Re: Template question

2007-06-03 Thread sansmojo
You could set an extra context variable in each view that tells whether to display the div. The variable is accessible from the parent template. base.html: {% if show_inset %} {% block inset %}{% endblock %} {% endif %} You could also use a template tag for the whole chunk, but this

FileInput widget behaviour related to upload_to attribute

2007-06-03 Thread cesco
I have a model called Offer containing, besides other fields, a picture field as in the following example: class Offer(models.Model): picture = models.ImageField(null=True, blank=False, unique=False, upload_to='offers/') I created a form for adding Offer objects as follows: class

Re: Add a css file into the admin zone

2007-06-03 Thread sansmojo
Most of the admin templates have an extrahead block that you can use to insert additional stylesheets. If it's a stylesheet that you want to load throughout the admin, it's easy. Just copy the base.html template (django/contrib/admin/templates/admin/base.html) to your own

Re: Querysets of ManyToMany Fields

2007-06-03 Thread Tom Baylis
Hi The sorting now seems to work a treat! As everything else in django can be done in simple and intuitive ways I war certain this would be as easy, but I couldn't get my head around this. Thanks for the help and the quick reply! / Tom --~--~-~--~~~---~--~~

Re: wicket like templating

2007-06-03 Thread Nicola Larosa
Ittay Dror wrote: > I was wondering if anyone has thought about making django's templating > system more in the concepts of wicket (there are other such templating > engines, this is the one i've used). That's not going to happen, as you know by now. However, using any other templating system

DATANDO E CHATTING, GALERIA QUENTE DAS FOTOS, BUSCA DAS MENINAS

2007-06-03 Thread desiga
DATANDO E CHATTING, GALERIA QUENTE DAS FOTOS, BUSCA DAS MENINAS http://www.datardebrasil.blogspot.com DATANDO E CHATTING : http://brazildating.googlepages.com DATING AND CHATING : http://www.chatfordating.blogspot.com BRAZIL GIRLS SEARCH : http://www.chattingsingles.blogspot.com