Re: little problem with the django template language

2008-06-20 Thread mark
I guess it was a little confusing how I formulated my problem. I just try again. Sorry for that. In Python what I want to do would look like the following: item1 = '/test/something/' item2 = '/test/somethingelse/' if item2.startswith(item1): do_the_trick() Now since Django has thi

Re: little problem with the django template language

2008-06-20 Thread Daniel Roseman
On Jun 20, 8:50 am, mark <[EMAIL PROTECTED]> wrote: > I guess it was a little confusing how I formulated my problem. I just > try again. Sorry for that. > > In Python what I want to do would look like the following: > > item1 = '/test/something/' > item2 = '/test/somethingelse/' > > if i

Re: URL templatetag with URL naming not working

2008-06-20 Thread Daniel Roseman
On Jun 20, 1:42 am, kimus <[EMAIL PROTECTED]> wrote: > Hi, > > URL templatetag with URL naming not working for me. > > application urls.py > > urlpatterns = patterns('', > (r'^feeds/', include('blocks.apps.aggregator.urls')), > ) > > aggregator urls.py > > urlpatterns = patterns('', > url(r'^(?P\d

Mako templates with flatpages

2008-06-20 Thread mark
Hi there, I am new to Django. My current website is in Typo3 (PHP) and I want to redo most of it because I like Python better. Since I do not like the Django template language I want to use Mako templates. I found a way on how to use the Mako templates in Django. To get this working I have to ch

Re: Django HTML Editor

2008-06-20 Thread James Matthews
Code completion is not about knowing or not knowing a language well. It saves time when you don't have to type in all the method/function/class/variable names. On Thu, Jun 19, 2008 at 9:22 AM, Gene Campbell <[EMAIL PROTECTED]> wrote: > > I just wrote that I use jEdit and although it's not great

RE: Url tag issues

2008-06-20 Thread Emily Rodgers
Cheers, I have been thinking of that, but also using includes. Still haven't managed to make it work the way I want :( > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of phillc > Sent: 19 June 2008 20:31 > To: Django users > Subject: Re: U

Re: Using i18n to translate to a specific language

2008-06-20 Thread Baurzhan Ismagulov
On Wed, Jun 18, 2008 at 08:44:22AM -0700, Maximillian Dornseif wrote: > {% trans zh "distribution package"%} > {% trans en "distribution package"%} > {% trans de "distribution package"%} ... > OBviously until now the trans tag does not support manual language > selection. Any Idea how to archive t

Re: URL templatetag with URL naming not working

2008-06-20 Thread Kimus Linuxus
sorry, the namespace was just a test. Without the ns didn't work also. I change it to 'feeddetail' and still didn't work ! I notice that sometimes it did work and with a refresh or another page it didn't (!) so I disabled cache middleware and changed some names of the urls. With some refreshes it

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-20 Thread chris vigelius
me2... Am Freitag, 20. Juni 2008 05:50:13 schrieb Juan Hernandez: > me 2 :D > > On Fri, Jun 20, 2008 at 10:42 PM, k0001 <[EMAIL PROTECTED]> wrote: > > Can I jump into the "THANKS" bandwagon? > > > > Thanks. =) > > > > On Thu, Jun 19, 2008 at 11:41 PM, Gene Campbell <[EMAIL PROTECTED]> > > > >

Re: error on manipulator fields

2008-06-20 Thread TiNo
nlforms is "from django.contrib.localflavor.nl import forms as nlforms" so these are django's own forms. But now I understand. I hadn't taken notice of the newforms-admin branch. I noticed admin was using oldforms, but did not know what to do about it. I will try newforms-admin branch tonight. I

pulldown menu's

2008-06-20 Thread todd
Hi all, Being relatively new to Django, I was wondering if anyone out the could point me to a good example of a statement in a template that doesn't use javascript? I was looking at newforms, but I wasn't sure if I should use that or just build the select outside of a form. I'm trying to get a

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-20 Thread Valts Mazurs
Sure, me too :) On Fri, Jun 20, 2008 at 1:32 PM, chris vigelius <[EMAIL PROTECTED]<[EMAIL PROTECTED]>> wrote: > > me2... > > Am Freitag, 20. Juni 2008 05:50:13 schrieb Juan Hernandez: > > me 2 :D > > > > On Fri, Jun 20, 2008 at 10:42 PM, k0001 <[EMAIL PROTECTED]> wrote: > > > Can I jump into the

Re: URL templatetag with URL naming not working

2008-06-20 Thread Kimus Linuxus
this is very strange... changed some more templates (no change on python) and stopped to work... wtf!! kimus On Fri, 2008-06-20 at 11:03 +0100, Kimus Linuxus wrote: > sorry, the namespace was just a test. Without the ns didn't work also. > I change it to 'feeddetail' and still didn't work ! >

Querying for an item with two values in a Many-To-Many Relation

2008-06-20 Thread Christoph Neuroth
Hi django-users :) I'm currently working on my first real django project and got stuck using the DB API: I defined these models: ---snip--- class RequestParameters(models.Model): parameter = models.CharField(max_length=64) value = models.CharField(max_length=64) class Request(models.Model):

Many To Many view in admin

2008-06-20 Thread Alessandro
I have a model company with a ManyToManyField(Address) An Address is for only one company, but a company has more than one Address. I need to be able to view in my admin page only the addresses of my company, not the list of all addresses, and maybe edit the address details (or open it in a new wi

Re: Many To Many view in admin

2008-06-20 Thread Scott Moonen
Alessandro, if an address is for only one company, then I suggest that you remove the ManyToManyField, and instead put a ForeignKey within the Address model that references Company. If you set the edit_inline parameter on this ForeignKey you should be able to edit the address right on the company

Re: Many To Many view in admin

2008-06-20 Thread Alessandro Ronchi
2008/6/20 Scott Moonen <[EMAIL PROTECTED]>: > Alessandro, if an address is for only one company, then I suggest that you > remove the ManyToManyField, and instead put a ForeignKey within the Address > model that references Company. If you set the edit_inline parameter on this > ForeignKey you shou

Re: createsuperuser error

2008-06-20 Thread Karen Tracey
On Fri, Jun 20, 2008 at 2:17 AM, jurian <[EMAIL PROTECTED]> wrote: > > I see now that this error doen not occur on an older version of the > 'newforms-admin' branch, so I assume that something was broken with a > recent update. > I cannot recreate this error with current (r7713) SVN newforms-admi

Re: Many To Many view in admin

2008-06-20 Thread Scott Moonen
Alessandro, It shows all the addresses inline of only the first? > It will show all of them inline. See http://www.djangoproject.com/documentation/model-api/#many-to-one-relationshipsand scroll down to the description of "edit_inline". -- Scott Moonen On Fri, Jun 20, 2008 at 8:48 AM, Alessan

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-20 Thread Oscar Carlsson
+1 Oscar On Fri, Jun 20, 2008 at 12:52 PM, Valts Mazurs <[EMAIL PROTECTED]> wrote: > Sure, me too :) > > > On Fri, Jun 20, 2008 at 1:32 PM, chris vigelius < > [EMAIL PROTECTED] <[EMAIL PROTECTED]>> wrote: > >> >> me2... >> >> Am Freitag, 20. Juni 2008 05:50:13 schrieb Juan Hernandez: >> > me 2 :

Re: Models advice

2008-06-20 Thread joshuajonah
Yeah i removed them, it seems to work fine pulling data from it. Thanx On Jun 19, 10:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I haven't looked through it fully, however you don't need to create > the primary keys, they are automatically created. > > On Jun 19, 8:38 pm, joshuajonah

Re: Why PostgreSQL?

2008-06-20 Thread Jeff FW
I haven't yet used Django's dumpdata and loaddata, but I've used mysqldump about a million times. (That's mostly what we use at my job, though I've been slowly pushing us towards postgres.) Try adding: /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; at the t

KSS and django

2008-06-20 Thread Manuel Meyer
Did anyone succeed in integrating KSS in django? I tried to make the kss.django demo-app "coolwiki" run, but it didn't work: KeyError: 'Plugin is not registered: scriptaculous-effects' Where should the PlugIn be, where can I add it? Thanks, Manuel --~--~-~--~~~-

Accessing a ManyRelatedManager by introspection for JSON/AJAX ?

2008-06-20 Thread Tim Adler
Hey everybody, I'm currently trying to build an AJAX-JSON-processor with Django, which receives a JSON-encoded request and then writes those values to the database. Here is what I basically looks like: {"class":"pages.page", "id":"1", "show_more_on_topic":"0", "show_arch

CSS not working in exe

2008-06-20 Thread Molly
I am creating a stand alone app. Everything is working as a .py, when I launch the website everything is perfect. When I create my .py into an exe (py2exe) it still works, but the css is not there. I have tried many things and cannot figure out the solution. ===

Re: Querying for an item with two values in a Many-To-Many Relation

2008-06-20 Thread Rajesh Dhawan
Hi Chris, > ---snip--- > class RequestParameters(models.Model): > parameter = models.CharField(max_length=64) > value = models.CharField(max_length=64) > > class Request(models.Model): > locale = models.CharField(max_length=32, default=LOCALES[1][0], > choices=LOCALES) > lastCheck = model

Re: Models advice

2008-06-20 Thread Richard Dahl
While I am not one to insist on 3rd normal form or anything like that, I would recommend you look at normalizing this db a bit. Perhaps you could create a table or two for the companies and contact info, it can be dangerous to limit yourself to one phone number or even one address in many cases.

Re: Remove empty value ('---------') from HTML SELECT choices

2008-06-20 Thread Huuuze
You da man. This worked perfectly out of the box. Thank you! On Jun 19, 5:54 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > On Jun 19, 3:45 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > > >                 if self.instance.state == 'processing': > >                     queryset = q

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-20 Thread Norman Harman
Django just rocks, thanks. It has, taught me some advanced Python made me money on consulting gigs allowed storymash.com's owner's vision rapidly come to life got me working and actually making progress on a couple personal projects helped me land full-time position primarily devel

Re: Automatic Update of template

2008-06-20 Thread Norman Harman
[EMAIL PROTECTED] wrote: > Hi, > > I am writing a web based chat client in Django framework. When ever I > receive a message, I get that in a python function which is in the > same file as my views. Can I directly pass this data to the template > (by using response_to_render ) to update the templ

Re: CSS not working in exe

2008-06-20 Thread chris vigelius
Hi Molly, please consider using dpaste.com or similar for posting long code examples. Not only does this reduce list traffic, but you'll get syntax coloring and readable formatting, too... On to your question: I must admit I never used py2exe, so my advice may be misguided, but shouldn't this

Re: user profile is not getting saved in admin

2008-06-20 Thread Deniz Dogan
On 20 Juni, 05:26, "Gene Campbell" <[EMAIL PROTECTED]> wrote: > I have looked through the docs and search the group and web. Seems other's > are asking the question, but I haven't seen an answer yet. > > class UserProfile(models.Model): > country = models.ForeignKey(Country, core=True) >

Email This Page

2008-06-20 Thread mike
Hello, I am working on a django app that displays call logs for our customers. I am using a print.css along with a print button that only prints the rendered information. I would like to add an "email this page" submit button. That will send an email containing all the rendered information. What

email this page

2008-06-20 Thread Support Desk
Hello, I am working on a django app that displays call logs for our customers. I am using a print.css along with a print button that only prints the rendered information. I would like to add an "email this page" submit button. That will send an email containing all the rendered information. What

Re: Email This Page

2008-06-20 Thread Michael Trythall
Mike, Why not just send a link to that particular page? It would be a lot less work, and from a usability standpoint it wouldn't be as jarring. Most users don't expect unsolicited HTML e-mails, and some folks can't read them. The link would be easier, and universally more accessible. Just a thou

Re: Email This Page

2008-06-20 Thread Bruno Tikami
Mike, I agree with Michael about the HTML content, you should follow his line . IF you still do want to email html content, it's not that hard I just have 1 question for you: is your page's content on the database or on your file system? []s! Tkm http://djangopeople.net/brunotikami/ On Fri, Jun

Re: Querying for an item with two values in a Many-To-Many Relation

2008-06-20 Thread Christoph Neuroth
Hi, just did an svn update, your code works. I tried that before but it wasnt implemented in my older version. Thanks a lot :) chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Email This Page

2008-06-20 Thread mike
the pages content come from a mysql database. sending a link wouldnt work, cause its a rendered template. Im using a print css, so when you click on "file" "print preview" it only shows the tables with data in them. This is what i would like to email. I could write a seperate view with an email.t

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-20 Thread Juan Hernandez
what is the best way to contribute to the project?? It's karma! you have to return somehow what you get :) On Sat, Jun 21, 2008 at 10:18 AM, Norman Harman <[EMAIL PROTECTED]> wrote: > > Django just rocks, thanks. > > It has, > taught me some advanced Python > made me money on consulting gigs

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-20 Thread [EMAIL PROTECTED]
http://www.djangoproject.com/documentation/contributing/ On Jun 20, 10:39 am, "Juan Hernandez" <[EMAIL PROTECTED]> wrote: > what is the best way to contribute to the project?? > > It's karma! you have to return somehow what you get :) > > On Sat, Jun 21, 2008 at 10:18 AM, Norman Harman <[EMAIL PR

Re: Querying for an item with two values in a Many-To-Many Relation

2008-06-20 Thread Christoph Neuroth
Theres still a problem with this :( Request.objects.filter(parameters=1, parameters=2) is not the same as Request.objects.filter(parameters=2, parameters=1) However the following two queries seem to be working as expected now (i'm pretty sure they didnt work when I tried it the last time - or I h

Re: Timestamped comment field

2008-06-20 Thread Elizabeth Kellner
I just implemented pretty much exactly what you are looking to do by using the comments module, and it worked right out of the box. The module's a little complicated, but I found that it was easy to just leave most functionality out. I followed along with the instructions here: http://www.guindi

Re: Some Django unit tests fail...

2008-06-20 Thread Ramiro Morales
On Thu, Jun 19, 2008 at 11:20 AM, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On Thu, Jun 19, 2008 at 10:08 PM, Ramiro Morales <[EMAIL PROTECTED]> wrote: >> >> >> Maybe a note about this dependency of that particular Django test >> suite component could >> be added to the "Unit tests" sect

Re: Email This Page

2008-06-20 Thread Michael Trythall
Can Django's cache system help here? I haven't worked with it enough to know, but it feels to me like you might be able to cache the query and reference it in the print-view. I don't see a way to pull this off without a separate view and template, though. On 6/20/08, mike <[EMAIL PROTECTED]> wrote

Re: CSS not working in exe

2008-06-20 Thread Molly
Thanks for that tip, Chris! I have been wondering about that actually. I think I am going to switch to Apache, because I have been having a lot of trouble with the exe. Thanks for the help, I aprreciate it :) Molly On Jun 20, 10:56 am, chris vigelius <[EMAIL PROTECTED]> wrote: > Hi Molly, > >

ugh, TypeError: Cannot resolve keyword err ...

2008-06-20 Thread Milan Andric
This TypeError message always baffles me and is hard to debug. I'm using SVN 6962 which means I should probably upgrade, but I tried that a month or so ago around query-set-refactor merge and things were unhappy so decided to wait. TypeError: Cannot resolve keyword 'presentation' into field. Cho

Re: Querying for an item with two values in a Many-To-Many Relation

2008-06-20 Thread Rajesh Dhawan
On Jun 20, 12:07 pm, Christoph Neuroth <[EMAIL PROTECTED]> wrote: > Theres still a problem with this :( > Request.objects.filter(parameters=1, parameters=2) > is not the same as > Request.objects.filter(parameters=2, parameters=1) Yes. Sorry for suggesting that query earlier. Please see below.

typing in django

2008-06-20 Thread Adam Fraser
In the code snip below, I am overriding the save() method of my "Project" object so that I can record the modification to that project by creating and saving a "ProjectModification" object. The idea is simple, but note that I have to convert the project field values to strings before comparing th

Re: Url tag issues

2008-06-20 Thread Rajesh Dhawan
Hi Emily, > > > > > > The problems I am hitting are mainly to do with the {% url > > > app.views.function keyword=optval %} tags to generate urls > > for my link bar. Firstly, as phillc suggests, it's a good idea to first name your index page so it's easier to reference it in your url tags.

Accessing model from view

2008-06-20 Thread diggs
Hello, I've defined a set of choices in my model.py file that are used in a particular model via the CHOICE arg. Is it possible to access these values from a view to populate a random select list? In models: ROLES = ( ('Associate', 'Associate'), ('Role 2', 'Role2'), ) I don't want to ha

Re: Accessing model from view

2008-06-20 Thread Richard Dahl
sure, its just python: for r in ROLES: r[0] #retrieves 'Associate' the first iteration r[1] # also retrieves 'Associate' You just need to ensure that ROLES is imported into your views. hth, -richard On 6/20/08, diggs <[EMAIL PROTECTED]> wrote: > > > Hello, > > I've defined a set of choi

Re: Accessing model from view

2008-06-20 Thread diggs
Thanks. It's actually the importing part that I don't know how to do. On Jun 20, 2:29 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote: > sure, its just python: > for r in ROLES: >     r[0] #retrieves 'Associate' the first iteration >     r[1] # also retrieves 'Associate' > > You just need to ensure

Need help encapsulating a form

2008-06-20 Thread Brandon Taylor
Hi everyone, I have a feedback form which needs to be functional across 3 different actions within the same view... My actions are: references_list reference_detail thanks Here's my current form processing code: if request.method == 'POST': form = SuggestionForm(request.POS

Re: Accessing model from view

2008-06-20 Thread Juanjo Conti
In views.py: from models import ROLES Greets, Juanjo -- mi blog: http://www.juanjoconti.com.ar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Re: Accessing model from view

2008-06-20 Thread diggs
Thank you. Now I'm realizing that I didn't ask my question correctly. I want to access ROLES from within a template. Do I have to pass it to the template each time I need it or can I access it directly somehow? On Jun 20, 2:47 pm, Juanjo Conti <[EMAIL PROTECTED]> wrote: > In views.py: > > from mo

Re: Accessing model from view

2008-06-20 Thread Richard Dahl
You should be able to access it in a template from an instance of a model that uses it via: model_instance_object.ROLES but if you just want to access from the template generically, then yes, you need to pass it to the template. hth, -richard On 6/20/08, diggs <[EMAIL PROTECTED]> wrote: > > > T

Re: Need help encapsulating a form

2008-06-20 Thread Richard Dahl
put all of the otherwise duplicative code into its own function within another module. then import that function into your views.py, i.e: at the top of views.py: from formprocessing.py import formprocessor then within formproccessor.py def processemail(email, reference_name): subject

Re: Initializing a form.

2008-06-20 Thread Adi
Thanks !!@ On Jun 19, 7:13 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > On Jun 19, 4:36 pm, Adi <[EMAIL PROTECTED]> wrote: > > > In order to set up the initial values on a couple of fields of my > > form, I need to pass in a couple of model objects to my ModelForm's > > init method. > > T

Re: Need help encapsulating a form

2008-06-20 Thread Brandon Taylor
Hi Richard, Thanks for taking the tie to address my question. Here's my current views.py file. As you can see there's quite a bit of duplication. I guess what's throwing me for a loop is that I can abstract processing the form out, checking to see if the request is a post, etc, but the redirect d

Djangodomain.com is down for the hole day

2008-06-20 Thread Daniel de la Cuesta
Hi, Anybody is hosted at www.djangodomain.com? What is wrong with this company. Their servers are down since this morning. Increible!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Accessing model from view

2008-06-20 Thread Adi J. Sieker
Hi, On Fri, 20 Jun 2008 20:42:57 +0200, diggs <[EMAIL PROTECTED]> wrote: > Thanks. It's actually the importing part that I don't know how to do. > assuming you have: models.py: ROLES = ( whatever ) views.py: import models models.ROLES and since you are probably interacting with y

Re: Need help encapsulating a form

2008-06-20 Thread Richard Dahl
OK I *think* I see what is wrong: You are returning the redirect from within the 'process_form' function, but not assigning it to anything or further processing it. SO, the process form returns a redirect, which is promptly and efficiently ignored, then returns a render_to_response from the view.

Re: Need help encapsulating a form

2008-06-20 Thread Brandon Taylor
Ah, I see now. Here's my views.py file now: from django.shortcuts import render_to_response, get_object_or_404 from django.newforms import form_for_model from django.core.mail import send_mail from django.http import HttpResponseRedirect from lua.references.models import * from lua.references.fo

Re: createsuperuser error

2008-06-20 Thread chris.gemignani
We're seeing this error with django trunk on Ubuntu 8.04 and OS X. It's present when you use "django-admin.py syncdb" but not in "python manage.py syncdb". On Jun 20, 8:49 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Jun 20, 2008 at 2:17 AM, jurian <[EMAIL PROTECTED]> wrote: > > > I se

Re: Need help encapsulating a form

2008-06-20 Thread Richard Dahl
Its possible of course to collapse some of the views together, but that would result in more complex logic in the views and probably not worth the trouble, I probably would not do it myself in this situation, although I have done simliar things with larger projects. It comes down to where do you w

Re: Need help encapsulating a form

2008-06-20 Thread Brandon Taylor
Cool. I'll leave it be an more on :) Thanks again for your time and patience! Brandon On Jun 20, 3:38 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote: > Its possible of course to collapse some of the views together, but that > would result in more complex logic in the views and probably not worth t

Re: Email This Page

2008-06-20 Thread mike
I ended up, just using the same template and adding a form to it, and passing the variables back and forth On Jun 20, 11:30 am, "Michael Trythall" <[EMAIL PROTECTED]> wrote: > Can Django's cache system help here? I haven't worked with it enough to > know, but it feels to me like you might be able

Django and Memcache

2008-06-20 Thread Alex Ezell
We recently had an interesting problem. We have an app which shares session with a PHP app. These sessions live in memcache. So, in php.ini, we might have memcache pointed to: php.ini = session.save_path = "tcp://10.0.0.10:11211, tcp://10.0.0.9:11211" And in settings.py for Django, we might hav

Fwd: User Profile in Admin interface (using trunk)

2008-06-20 Thread ristretto
Was there any solution to this? I'm looking through the tickets, wiki, docs, web, and now the source trying to figure out how to get my profile data saved along with a User in the admin. Anyone have that working? My situation is the same as this poster's, except I don't get any error; I just g

Re: user profile is not getting saved in admin

2008-06-20 Thread ristretto
You'd think, indeed. I'm wondering if there's a work around or best practice way to handle it. I noticed in the docs stating to wrap access to the user.get_profile() call around a try: except: and create it if you get an error. But, I don't see how to do that simply in the Admin system. On J

Re: upload is working, but how to store the path in the imagefield?

2008-06-20 Thread chefsmart
> > it looks like the this method is magically added to the model, right ? > right, this is magically added to the model, it's automatically available for a model's field if that field is an ImageField. > > or must we implement this ?it sounds like you were trying to > implement this. > no,

TemplateDoesNotExist at /admin/

2008-06-20 Thread sggottlieb
Hello all, I am running 0.96 and and was breezing through the tutorials until I hit the part where you enable the admin site (http:// www.djangoproject.com/documentation/0.96/tutorial02/). I get this error message: TemplateDoesNotExist at /admin/ admin/login.html Request Method: GET Re

Re: upload is working, but how to store the path in the imagefield?

2008-06-20 Thread chefsmart
> > or must we implement this ?it sounds like you were trying to > implement this. > I was explicitly calling save_FOO_field in my view before calling save() on the model, if that's what you mean. On Jun 18, 10:37 pm, felix <[EMAIL PROTECTED]> wrote: > sorry, I can't quite help you. > > I'm

Re: ugh, TypeError: Cannot resolve keyword err ...

2008-06-20 Thread Steve Potter
On Jun 20, 12:20 pm, Milan Andric <[EMAIL PROTECTED]> wrote: > This TypeError message always baffles me and is hard to debug. I'm > using SVN 6962 which means I should probably upgrade, but I tried that > a month or so ago around query-set-refactor merge and things were > unhappy so decided to

Re: Email This Page

2008-06-20 Thread Kenneth Gonsalves
On 20-Jun-08, at 8:36 PM, mike wrote: > Hello, I am working on a django app that displays call logs for our > customers. I am using a print.css along with a print button that only > prints the rendered information. I would like to add an "email this > page" submit button. That will send an ema

Re: Mako templates with flatpages

2008-06-20 Thread Peter Rowell
> Is this possible? Short answer: No. (At least I can't see anyway to accomplish it.) On the other hand, the flatpages code is really quite straightforward. views.py is 46 lines and models.py is only 36 lines. Why not grab a copy, possibly rename it to avoid confusion, and hack away? --~--~---

Re: createsuperuser error

2008-06-20 Thread Karen Tracey
On Fri, Jun 20, 2008 at 4:25 PM, chris.gemignani <[EMAIL PROTECTED]> wrote: > We're seeing this error with django trunk on Ubuntu 8.04 and OS X. > It's present when you use "django-admin.py syncdb" but not in "python > manage.py syncdb". > Ah, thanks, that django-admin bit is the key difference;

Re: Why PostgreSQL?

2008-06-20 Thread Russell Keith-Magee
On Fri, Jun 20, 2008 at 9:14 PM, Jeff FW <[EMAIL PROTECTED]> wrote: > > I haven't yet used Django's dumpdata and loaddata, but I've used > mysqldump about a million times. (That's mostly what we use at my > job, though I've been slowly pushing us towards postgres.) Try > adding: > > /*!40014 SET

Re: TemplateDoesNotExist at /admin/

2008-06-20 Thread Karen Tracey
2008/6/20 sggottlieb <[EMAIL PROTECTED]>: > Hello all, > > I am running 0.96 and and was breezing through the tutorials until I > hit the part where you enable the admin site (http:// > www.djangoproject.com/documentation/0.96/tutorial02/). > > I get this error message: > > > TemplateDoesNotExist

Re: email this page

2008-06-20 Thread Russell Keith-Magee
On Fri, Jun 20, 2008 at 11:07 PM, Support Desk <[EMAIL PROTECTED]> wrote: > Hello, I am working on a django app that displays call logs for our > customers. I am using a print.css along with a print button that only > prints the rendered information. I would like to add an "email this page" > su

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-20 Thread Russell Keith-Magee
On Fri, Jun 20, 2008 at 10:48 PM, Norman Harman <[EMAIL PROTECTED]> wrote: > > Django just rocks, thanks. On behalf of the core developers, and everyone else that has put their time and effort into making Django what it is - you're welcome. > Lately I've been answering what questions I can on th

Re: Some Django unit tests fail...

2008-06-20 Thread Russell Keith-Magee
On Sat, Jun 21, 2008 at 12:29 AM, Ramiro Morales <[EMAIL PROTECTED]> wrote: > > On Thu, Jun 19, 2008 at 11:20 AM, Russell Keith-Magee > <[EMAIL PROTECTED]> wrote: >> >> On Thu, Jun 19, 2008 at 10:08 PM, Ramiro Morales <[EMAIL PROTECTED]> wrote: >>> > >>> >>> Maybe a note about this dependency of t