Re: Jump on 1.7 in new project or stick to 1.6, target release date 30th of September

2014-08-22 Thread Robert
Imagine it's May 2014, with all the knowledge you had at that time. What would your answer be? Now do the same thinking for June. July. August. On Sunday, June 22, 2014 3:22:22 PM UTC+2, Jorge Andrés Vergara Ebratt wrote: > > I've been asking myself the same thing, I think I'm going to start w

Re: pyjs - a compiler from Python to JavaScript

2015-08-08 Thread Robert
#x27;s as far as I got, which is too bad, cause I really don't like Javascript. Robert -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-use

Admin page: How to add a column for user that added an item

2008-10-28 Thread Robert Dailey
Hi, I currently have the following model: class Note( models.Model ): content = models.TextField() I've setup the admin page to allow users to add "notes", which basically lets them fill in the content variable. However, on the admin page I want to add a column to show the user that add

Re: Admin page: How to add a column for user that added an item

2008-10-28 Thread Robert Dailey
On Oct 28, 10:29 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Robert Dailey wrote: > > Hi, > > > I currently have the following model: > > > class Note( models.Model ): > >    content = models.TextField() > > > I've setup the admin page to

Re: Admin page: How to add a column for user that added an item

2008-10-28 Thread Robert Dailey
On Oct 28, 11:17 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Robert Dailey wrote: > > On Oct 28, 10:29 am, Steve Holden <[EMAIL PROTECTED]> wrote: > > >> Robert Dailey wrote: > > >>> Hi, > > >>> I currently have the follow

Re: Is this a quirk with the admin template override mechanism or is it me?

2008-10-29 Thread Robert Lofthouse
On Oct 29, 1:14 pm, AndyB <[EMAIL PROTECTED]> wrote: > Let's say I want to override change_list.html for an app called 'cms'. > > I create a /admin/cms/change_list.html > > and then call back to the original admin template overriding just want > I want to change: > > {% extends "admin/change_list

Re: Admin page: How to add a column for user that added an item

2008-10-29 Thread Robert Dailey
On Oct 28, 2:47 pm, Robert Dailey <[EMAIL PROTECTED]> wrote: > On Oct 28, 11:17 am, Steve Holden <[EMAIL PROTECTED]> wrote: > > > > > Robert Dailey wrote: > > > On Oct 28, 10:29 am, Steve Holden <[EMAIL PROTECTED]> wrote: > > > >> Rober

DjangoCon Sao Paulo

2008-08-20 Thread Robert Lofthouse
Hi all, As this hasn't been widely advertised, I thought i'd mention it here. We will be providing a video conference service from Google Sao Paulo for anyone interested in going there to watch DjangoCon on both Saturday 6th September and Sunday 7th September. Everyone will meet at 11:00 local

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

2008-08-24 Thread Robert Erbaron
> Each time what? It's a development server, expected to be used as you > develop your code. It's pretty good but not perfect about re-loading itself I typically do a long-term development session for a day or two... then go off an do another project for a while (a couple days.) So I'd shut eve

Need suggestions on subversion structure for project

2008-09-04 Thread Robert Dailey
Hi, First, let me start by explaining what my goals are: - Have a django project & its apps in version control - Have all of the templates the apps will use in the same version control - Have all static content (images, css, etc) in the same version control. So far, this is the directory structu

Developing django on windows

2008-09-04 Thread Robert Dailey
Hi, I plan to host my production copy of my django project on a linux/ apache setup, however for my development I want to do a checkout through subversion and work exclusively on windows as I develop. This means I want to be able to run just the test server for django on windows while I develop t

Re: Developing django on windows

2008-09-04 Thread Robert Dailey
On Sep 4, 3:39 pm, Robert Dailey <[EMAIL PROTECTED]> wrote: > Hi, > > I plan to host my production copy of my django project on a linux/ > apache setup, however for my development I want to do a checkout > through subversion and work exclusively on windows as I develop. This

Re: Serving static files?

2008-09-05 Thread Robert Dailey
On Sep 1, 1:32 am, Davor Lučić <[EMAIL PROTECTED]> wrote: > If you are using Apache you can use mod_rewrite. > > http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html > > On Aug 31, 10:08 pm, Robert <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I just go

EuroDjangoCon '09

2009-01-28 Thread Robert Lofthouse
l for participation has opened and will close on March 1st. Registration for EuroDjangoCon '09 opens on February 6th. Kind Regards Robert Lofthouse Chairman EuroDjangoCon/DjangoCon --~--~-~--~~~---~--~~ You received this message because you are subscribed to

fastcgi can not send url to my backend server

2009-03-15 Thread Robert Chen
me 2009-03-15 16:08:05: (response.c.464) Rel-Path : /ziyoudu.fcgi/login/ 2009-03-15 16:08:05: (response.c.465) Path : /home/work/clubhome/web/clubhome/ziyoudu.fcgi/login/ 2009-03-15 16:08:05: (response.c.482) -- handling physical path 2009-03-15 16:08:05: (response.c.483) Path :

Re: fastcgi can not send url to my backend server

2009-03-15 Thread Robert Chen
Yes, that's the reason, thanks very much. I commented out "check-local" because I thought it came with "socket" configuration. That's the mistake. Now it woks. Thanks. Robert. On Sun, Mar 15, 2009 at 7:45 PM, Ramiro Morales wrote: > > On Sun, Mar 15, 2

Re: objects in memory that don't time out?

2009-06-26 Thread Robert Mela
e options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~----~~~--~~--~--~--- begin:vcard fn:Robert Mela n:Mela;Robert adr;dom:;;;Lexington;MA email;internet:rm...@rcn.com tel;cell:781-363-0982 x-mozilla-html:FALSE version:2.1 end:vcard

DjangoCon '09

2009-07-13 Thread Robert Lofthouse
.org/ Ted Leung (@twleung - http://www.sauria.com/blog/ ) DjangoCon '08 was a success at Google HQ in Mountain View (see the videos here: http://www.youtube.com/view_play_list?p=D415FAF806EC47A1 ) and I'm sure we're going to have a lot of fun this time around as well. Hope to s

DjangoCon '09 Talks and Registration

2009-07-15 Thread Robert Lofthouse
http://www.djangocon.org/conference/talk/ DjangoCon '09 Dates: 8th - 10th - Conference Days 11th - 12th - Sprint Days http://www.djangocon.org/ Regards Robert Lofthouse DjangoCon Chairman --~--~-~--~~~---~--~~ You received this message because you are subscribed to

DjangoCon '09 - DoubleTree Green Room Block

2009-08-05 Thread Robert Lofthouse
August. If you have already registered for the conference I will send around another email with the link for the hotel booking page. If you have any issues with registering due to paypal problems let me know and I'll make Google checkout an option. Regards Robert Lofthouse DjangoCon Cha

DjangoCon: Call for Proposals Ends Today

2009-08-07 Thread Robert Lofthouse
, August 8th). The schedule will be found in the "conference" section of the website, along with details on the talks and the speakers. http://www.djangocon.org/blog/2009/8/7/call-proposals/ Regards Robert Lofthouse DjangoCon Chairman [http://www.djangocon.org/] [http://djangocon09.even

DjangoCon '09 Schedule

2009-08-12 Thread Robert Lofthouse
Robert Lofthouse DjangoCon Chairman - http://www.djangocon.org/ Sponsors: Silver: Imaginary Landscape - http://www.imagescape.com/landing/python-django.html Eldarion - http://eldarion.com/ SquareFactor - http://squarefactor.com/ Bronze: Lexis Nexis - http://www.lexisnexis.com/ Python Software

How do I access an ID from a Foreign Key object?

2009-03-27 Thread Robert Chan
Hey is this possible? I'm getting angry 500s back class TeamBulletin(models.Model): team = models.ForeignKey(Team) author = models.ForeignKey(User) title = models.CharField(max_length = 500, blank = False) body = models.TextField(blank = False) image = mod

Re: Getting model's ID in save() method

2009-10-06 Thread Robert Field
On Oct 6, 10:09 am, Karen Tracey wrote: > > Personally I'd look pretty closely at the need to store a value dependent on > the primary key in some other field of the model.  Is this really absolutely > necessary? > > Karen In relational models it's pretty standard to use the primary key as the

Re: Logging mechanism in Django

2009-10-12 Thread Robert Mela
If you're running standalone WSGI you could pipe output to Apache's rotatelogs or to cronolog. There may be other generic log rotation subprocesses you can use. They're very reliable. For a straight WSGI server I wrote a logging handler to synchronize logging between threads & processes, wh

Use one project for a blog, forums, and custom application?

2009-10-16 Thread Robert Adams
Howdy Im still fairly new to Django, so please explain things with that in mind. I'm trying to create three websites using 2 subdomains and 1 domain: for the blog, blog.mysite.com for the forums, forums.mysite.com for the custom web app, mysite.com When building the custom web app, I used contr

Re: Use one project for a blog, forums, and custom application?

2009-10-16 Thread Robert Adams
Thanks for the reply. I realize it would be substantially easier to use mysite.com/blog type urls, but I would still prefer use the blog.mysite.com since that is often the convention. You bring up a good point about the authentication though. I had not thought of that. While it would be preferab

Pydoc and security

2010-11-20 Thread Robert S
Hi I'm trying generate documentation for a django project. The obvious tool is pydoc, which does work. The trouble is, pydoc publishes everything ... including passwords. Is there a simply way of controlling the output from pydoc? TIA -- You received this message because you are subscribed to

Re: Pydoc and security

2010-11-21 Thread Robert S
I'm not! Pydoc is picking up any variables that are not hidden in classes of functions. Is there a command to (selectivly) stop this? On Nov 21, 11:35 am, Łukasz Rekucki wrote: > On 20 November 2010 23:31, Robert S wrote: > > > Hi > > I'm trying generate docume

Re: Pydoc and security

2010-11-21 Thread Robert S
Thanks, I've just added the following line near the start of my settings file ... __all__ = ['INSTALLED_APPS'] ... that looks much better On Nov 21, 8:24 pm, Masklinn wrote: > On 2010-11-21, at 21:19 , Robert S wrote: > > > I'm not! > > Pydoc is pickin

Re: Loading CSS

2010-11-30 Thread Robert S
Well - that's one way A simpler way is to use your settings.py file to point to your media, and remove all reference to .css from your url.py files ... # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = '/path_to_media_root/static_media/'

Re: multidb - partitioning

2010-01-09 Thread Robert S
Hello, I'm new to django, so bear with me if this is a silly approach but, could you assign the project name to db_table at run time? Something like ... models.py ... # app_name and project_code may need to be declared with global scope ... APP_NAME = 'app_name' # might be optional global pro

Re: How crypt python code

2010-01-12 Thread Robert S
You could try uploading your .pyc files, without your .py source. That will be something of a maintenance night-mare, but should work -- 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.

Attempting to Implement the Feeds Example

2010-01-12 Thread Robert Capps
but receive the error below. Completely new at django so help is appreciated. Environment: Request Method: GET Request URL: http://localhost:8080/feeds/latest/ Django Version: 1.1 Python Version: 2.6.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contr

Re: How to make django to handle multiple requests at the same time

2010-03-03 Thread Robert Mela
Daniel Roseman wrote: This isn't a question about Django, but about WSGI deployment. Although I must say I'm confused, you say you're using WSGI but you're printing something, so it seems like you're using the development server since that prints to the console? Is this right? If so, you can't d

Re: is there any possibility for two settings.py

2010-03-14 Thread Robert Mela
We load custom environments at startup based on directory from which the app is loaded. The selection could just as easily be based on environment variable, machine name rather than directory path. The simple trick is to have settings.py serve as a proxy for those other, environment-specific

Re: problem with django dev server and subprocess.Popen

2007-07-06 Thread Robert Coup
Carl Karsten wrote: > Malcolm Tredinnick wrote: > >> I don't know what htmldoc does, but if it tries to access the url you >> give it, you can't do that. The dev server is single threaded. It is >> already serving one request (running your view), so it can't serve the >> second parallel access

Re: problem with django dev server and subprocess.Popen

2007-07-06 Thread Robert Coup
Robert Coup wrote: > Carl Karsten wrote: > >> Malcolm Tredinnick wrote: >> >> >>> I don't know what htmldoc does, but if it tries to access the url you >>> give it, you can't do that. The dev server is single threaded. It is >&g

Re: Django.contrib.markup problems

2007-07-27 Thread Robert Coup
On 28/07/07, Steve <[EMAIL PROTECTED]> wrote: > I am on a shared hosting environment, and am attempting to make use of > the textile filter. I have installed the textile library in $HOME/lib/ > python2.3/site-packages, which is on my $PATH, and my $PYTHONPATH. I > can import textile through the py

Cannot catch _mysql_exceptions.OperationalError

2008-01-18 Thread Robert Swerdlow
I posted this note at comp.lang.python and the response there was that this all works outside of Django. What is the problem with using MySQL OperationalErrors with Django? - In our database code (we are using django v0.96) we wanted to catch and handle MySQL OperationalErrors. We us

Upgrade to 0.96.1

2008-02-13 Thread Robert Swerdlow
We are currently using 0.96 and want to upgrade to 0.96.1, but it is not clear if it is backward compatible. For example, does 0.96.1 have the newforms change from clean_data to cleaned_data? Which changes are in 0.96.1 and which are later? Bottom line: what changes do we need to worry abou

using zope.interface with Django models

2008-04-21 Thread Robert Gravina
It works fine when I get rid of the interface decalaration on the article. I've also seen the similar error using django.db.models.permalink. Sorry for the bad analysis here, but first I'd like to see if anyone else is using zope.interface in their models? Robert --~--~-~

Re: using zope.interface with Django models

2008-04-22 Thread Robert Gravina
On 22/04/2008, at 3:37 PM, Robert Gravina wrote: > Hi All, > > Others have experiemented with using the zope component architecture > in Django, with great results: > http://www.stereoplex.com/two-voices/adapters-in-django-and-the-revenge-of-zope > > I'd really like

Re: Django over modpython

2007-02-18 Thread Robert Coup
[EMAIL PROTECTED] wrote: > Yes, most of the hostings have fastCGI, but not flup. > I know the best is to have VPS hosting, but they are very expensive, > and I think I can manage with a shared hosting. > I think Blouehost looks good. > For VPS i can't recommend http://www.rimuhosting.com/ enoug

Re: Newbie Question: If statement in templates help

2007-02-25 Thread Robert Coup
Merric Mercer wrote: > I may be wrong but I believe that the you cannot use the If statement > inside a template to evaluate a specific value. You use it to > determine whether the object or value exists ( has been returned by the > view). > > I think that this is because the developers want

Re: Deployment with Subversion

2007-03-15 Thread Robert Coup
ScottB wrote: > One thing to consider when serving a working copy is all those .svn > directories could be accessible via your web server. Assuming your > code isn't within your web server's root (which it shouldn't be), > there's probably not much that can go wrong. Still, it might be worth > c

Re: Securing the admin site

2007-03-29 Thread Robert Smol
> > > This is a somewhat open-ended question: what are people doing to > secure their admin sites against unwelcome visitors? On my site, what > I've done is change the URL root from /admin/ to something else so > that casual visitors do not know where to look. > I guess apache is quite powerful

Re: upload_to with username

2007-04-02 Thread Robert Coup
Stephen Mizell wrote: > I'm wanting to have upload_to for my file so it uploads to a different > directory for each user. This works when I use it with a newform, but > when I try to use the Django admin, it puts None as the username (I > want to base it on whatever username I select for "user").

Re: Offline Django Apps

2007-05-22 Thread Robert Coup
James Bennett wrote: > On 5/22/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > >> I'm curious if there are others who could use this functionality but >> for Django. If so, perhaps we can all collaborate and come up with a >> solution that runs on Mac, Windows, and Linux. Data syncing would be >>

Re: Offline Django Apps

2007-05-22 Thread Robert Coup
Rob Hudson wrote: > Cool. What's the best way to coordinate the effort? A wiki page to > start with? > Current trends seem to be to use Google Code for projects that aren't likely to become part of the core django distro. A link from the Django wiki is probably a good idea though. > 1) Cros

Re: View (maybe middleware?) question

2007-05-30 Thread Robert Coup
Chris Kelly wrote: > I am in the process of writing an app that will have a "theme" based > on if a subdirectory is specified e.g.: > > http://somesite.com/app/(theme)/abunchofviews/ > > basically, if they go to /app/bluetheme/register, it'll give them a > registration page with a blue theme heade

0.96 login issue with cookies

2007-10-17 Thread Robert Šmol
onf: from django.contrib.auth.views import login, logout (r'^$', direct_to_template, {'template':'index.html'}), (r'^accounts/login/$', login), Thank you Robert --~--~-~--~~~---~--~~ You received this message because you are s

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-25 Thread Robert Bunting
On Oct 24, 10:27 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > so is this a legacy database - meaning a database which had data > before you upgraded to unicode django? In that case, we have seen in > postgres that the old data is b0rked and needs to be reentered, > otherwise it wont work.

Online "beta" Book

2006-11-15 Thread Robert Hicks
In the databases section, Oracle is listed as supported. I have been on hiatus for bit. Has Oracle made it into Django .95 or is that entry in anticipation of Django going 1.0 before the book is released? Robert --~--~-~--~~~---~--~~ You received this message

Re: Online "beta" Book

2006-11-17 Thread Robert Hicks
Exactly my position. I was even looking at TurboGears because they use SQLAlchemy but then I see that it isn't totally integrated yet either. Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: special characters in model

2007-01-02 Thread Robert Slotboom
Hi Ramiro, In BBedit I saved the file as utf8 and the problem was solved. Thanks Rob Op 31-dec-06 om 19:27 heeft Ramiro Morales het volgende geschreven: Try encoding the models.py file using utf-8 (use iconv to re-encode it if it is encoded in ASCII or ISO 8859-x) and flag the encodig expli

Re: admin > custom error message

2007-01-09 Thread Robert Slotboom
Hi James, > You don't need to write a manipulator; just write a validator > function, and put it in the validator_list for that field on the > model. Django will handle calling the validator for you any time one > of the "automatic" manipulators (e.g., in the admin) gets used. > Ok I got it work

Re: sorting the results of a queryset

2007-01-09 Thread Robert Slotboom
Hi Brian, Of course the parenthesis... I'll this fix tomorrow. > sorted(Category.objects.all(), key=Category.get_absolute_url) This is a very nice approach! Although, shouldn't these "get_absolute_url" calls be followed by () ? Thank's Rob > > Rob Slotboom wrote: >> in the model class: >>

Re: sorting the results of a queryset

2007-01-11 Thread Robert Slotboom
sorting problem because there can only be one level for parent . Unfortunately none of these solutions can be applied for the simple category, subcategory, n-category realtions. But I've got my taxanomic tree!!! -- Robert Slotboom > Not since the sorting is done in Python instead of SQL

Re: javascript and form fields

2007-02-02 Thread Robert Coup
[EMAIL PROTECTED] wrote: > Not necessarily... You don't have to get them by ID. You can get them > by tagname or, with a simple helper, class name. > Or group them, then cycle through... something like > var controls = > document.getElementById("controls").getElementsByTagName("a") > for(var i=0;i

Re: [howto] Django profiling with hotshot and kcachegrind

2007-02-11 Thread Robert Coup
[EMAIL PROTECTED] wrote: > The link: http://www.rkblog.rk.edu.pl/w/p/django-profiling-hotshot-and- > kcachegrind/ > The cool screenshot: http://www.rkblog.rk.edu.pl/site_media/resources/ > python.rk.edu.pl/images/djangoprof2.png > > Kcachegrind can visualize profilers logs in many nice readable >

Re: Filtering foreign items in admin

2007-02-12 Thread Robert Slotboom
Hi Rob, Perfect! Thank's Robert Slotboom Op 10-feb-07 om 17:13 heeft Rob Hudson het volgende geschreven: > "limit_choices_to --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Name in admin for Foreign Key's

2005-09-08 Thread Robert Wittams
Milton Waddams wrote: > I'm trying to associate multiple users with a team and each user having a > specific role within that team. > > eg. not my situation though easiest way to make it clear what I'm attempting > to achieve... > CEO = meta.ForeignKey(User) > CFO = meta.ForeignKey(User) > > w

befuddled with formfields.py

2005-09-16 Thread Robert Wittams
I have a problem wherein no select field is prepopulated in any update form, or a create form where I provide some already filled fields. I investigated this, and now I have no idea how this has ever worked : in http://code.djangoproject.com/browser/django/trunk/django/core/formfields.py#l114

Re: befuddled with formfields.py

2005-09-18 Thread Robert Wittams
scottpierce wrote: > See http://code.djangoproject.com/ticket/338. The patch works. > > Scott Pierce > > So basically, mainipulators are completely useless when it comes to ForeignKeys and ManyToManys and need to be hacked around in the view function? This is a horrible fix. I'm going to fix

Re: Table-less model as base class?

2005-09-18 Thread Robert Wittams
Adrian Holovaty wrote: > On 9/18/05, Eric Walstad <[EMAIL PROTECTED]> wrote: > >>I'd like to make a base class for my model classes that defines some >>fields but doesn't result in a table in the database. If my base class >>is derived from meta.Model, then django makes a table for it in the >>d

Re: Problem With Image Field

2005-09-25 Thread Robert Wittams
Have you got PIL installed? http://www.pythonware.com/products/pil/

Re: Controlling which fields to display when editing an object inline

2005-09-28 Thread Robert Wittams
mortenbagai wrote: > Hello, > > I have two model objects, Section and Page. Each Page is mapped to a > Section through a regular ForeignKey field. On the Section edit detail > display in the Django admin app, I'd like to list the Page objects > belonging to that Section and having a few fields be

Re: Controlling which fields to display when editing an object inline

2005-09-28 Thread Robert Wittams
Adrian Holovaty wrote: > On 9/28/05, Robert Wittams <[EMAIL PROTECTED]> wrote: > >>However, the patch I have been making to clean up the admin and >>metasystem, on ticket #535, includes a feature that may help. >> >>Rather than doing edit_inline=meta

Re: Javascripts for forms, onchange etc

2005-09-29 Thread Robert Wittams
[EMAIL PROTECTED] wrote: > Hi All > > I would like to be able to implement onchange functionality for form > fields in my django app. > > My app has a Questions Module which has related Module Answers edited > inline (just like in django admin) > > Questions can be correct or incorrect and only

Re: serving PDF

2005-09-30 Thread Robert Wittams
he dev server is not designed to serve static files. Robert

Re: Admin three levels deep

2005-10-06 Thread Robert Wittams
[EMAIL PROTECTED] wrote: > Hi there, > > I'm very new to Django and I'm learning it by adapting the stuff from > the tutorial to a new (test) application, a Forum. The tutorial nicely > explains that you don't want "Polls" and "Choices" in the main menu, > because "Choices" is a part of "Poll". W

Re: Admin three levels deep

2005-10-06 Thread Robert Wittams
rrent situations. Also, be aware that you could make your own entirely custom views that override areas of the admin if you like. Just hook them into the admin urlconf. Robert

Re: LIST[object.attribute] lookup in template

2005-10-13 Thread Robert Wittams
Andreas Stuhlmüller wrote: > Hi Adrian, > > >>In your case, pass ITEM_NAMES[item.type] >>to the template context. > > > Easier said than done. The template was intended to do something like > this: > > {% for item in items %} > {{ ITEM_NAMES[item.type] }} > {% endfor %} > > Is it possibl

Re: Manipulators that span a relationships?

2005-10-13 Thread Robert Wittams
Ian Maurer wrote: > Is there a way to create a manipulator that will span a foreign key > relationship, similar to the "edit_inline" feature in the Admin tool? > > I know I cannot leverage the edit_inline feature now (ticket #535 may > fix that) but is there a "smart" way of leveraging the valida

Re: Manipulators that span a relationships?

2005-10-13 Thread Robert Wittams
Ian Maurer wrote: > That's a pretty slick implementation, I'd like to try it out... some > questions: > > Is it in a usable format? > Are there any directions for pulling this branch down to my local environment? > What happens if the main branch gets updated? > > > thanks... > ian > > > W

Re: LIST[object.attribute] lookup in template

2005-10-14 Thread Robert Wittams
Andreas Stuhlmüller wrote: > Robert Wittams wrote: > >>Alternatively, the easy way to do this would be to use >>template_decorators.py from the new-admin branch > > > The simple tag decorator looks like an extremely useful enhancement. At > the moment I'm not

Re: LIST[object.attribute] lookup in template

2005-10-14 Thread Robert Wittams
Andreas Stuhlmüller wrote: > Robert Wittams wrote: > >>I can't really work this out without more information. Could you file a >>ticket with a minimal example. ( or at least include a backtrace. ) > > > I didn't expect you to solve the probl

Re: templates with multiple repeating blocks

2005-10-14 Thread Robert Wittams
he template 'my_app/menu': {for item in items} {{item}} {endfor} to use it: {% load mytemplates %} {% main_menu user %} where user is a variable holding your user object. If you don't have any logic in there, maybe the include tag in #598 would be a good fit. {% include "my_app/menu" %} Robert

Re: Manipulators that span a relationships?

2005-10-14 Thread Robert Wittams
Ian Maurer wrote: > I didn't get very far with the new branch. My template is failing to > render right off the bat... I haven't had a chance to investigate > this, but my templates were/are working just fine under the main > branch. Below is the end of my traceback... any thoughts? > > -ian I c

Re: Manipulators that span a relationships?

2005-10-15 Thread Robert Wittams
Ian Maurer wrote: > I didn't get very far with the new branch. My template is failing to > render right off the bat... I haven't had a chance to investigate > this, but my templates were/are working just fine under the main > branch. Below is the end of my traceback... any thoughts? > > -ian > >

Re: Do's and Dont's for Application Writers

2005-10-20 Thread Robert Wittams
kmh wrote: >>On 10/20/05, kmh <[EMAIL PROTECTED]> wrote: >> >>>Shouldn't we encourage a model where site templates are able to >>>explicitly "include" application templates, rather than the other way >>>around? > > >>On 10/20/05, Sune Kirkeby <[EMAIL PROTECTED]> wrote: >>That's not how applicati

Re: I want to start a django project for a forum

2005-10-31 Thread Robert Wittams
Ian Holsman wrote: > is anyone else interested in joining? I was thinking of similar to > what phpBB does. > > If so I propose we open up a sourceforge project, or perhaps we could > even host it on code.djangoproject.com if they let us ;-) > > any volunteers? > > regards > Ian > > -- > [EMAIL

Re: Editing inline object individually

2005-11-07 Thread Robert Wittams
ne hit, when this future branch is merged to trunk, rather than in dribs and drabs. For the specific case of editing an inline_edited object seperately in its own admin form, (which I believe the original poster would be satisfied with as a stop gap measure), this should already work in new-admin AFAIK. The foreign key with edit_inline=whatever is rendered as a foreign key select field like any other, ie you can select the objects "parent". Robert

Re: Running new-admin branch with trunk

2005-11-10 Thread Robert Wittams
[EMAIL PROTECTED] wrote: > Hi > > I currently have the trunk django running a little prject on my server > (it's working well its a great product) > > However when I come to make a second application some of the things I > need to do I'm told are only possible in the new admin branch. > > I nee

Re: New-admin problem

2005-11-11 Thread Robert Wittams
[EMAIL PROTECTED] wrote: > Incredible. I checked this out yesterday and it was revisions 1157 > > This morning, 1168, things are really moving fast on this branch > > Thanks this version doesn't have the same problem > > This was due to me forgetting to save/commit a few files after merging A

Re: use admin features in external applications

2005-11-13 Thread Robert Wittams
tonemcd wrote: > I hate to do this, but - me too! > > I've svn'ed the new-admin branch in the hope that it would be easier to > do it from that checkout, but no joy as yet. > > Not really sure what you want to do, so I hope the reply to frank h will help you too.

Re: use admin features in external applications

2005-11-13 Thread Robert Wittams
frank h. wrote: > hello, > how can i reuse some features of the admin app in my external > applications? > the search_fields and date_hierarchy features are so nice! > is there a simple way? > -frank > > Your best bet is the new-admin branch. However, the particular features you have mentioned

Re: use admin features in external applications

2005-11-14 Thread Robert Wittams
tonemcd wrote: > Thanks for the info Robert - I was aiming at using some of the forms > etc. functionality from the admin interface in my own applications > (trying to not re-invent the wheel). > > I will have a look around the admin_list.py code and see whether I can > pick th

Re: Repeating Blocks Within a Template

2005-11-14 Thread Robert Wittams
Simon Willison wrote: > > > On 14 Nov 2005, at 06:06, Tom Tobin wrote: > >> A bit stumped here . . . Is there a recommended convention for >> repeating blocks within a template? e.g., I have a paginated >> object_list generic view, and I want to repeat my pager code (i.e., >> "back", "next")

Re: understanding regroup

2005-11-15 Thread Robert Wittams
Sean Perry wrote: > > I have the following classes in my model: > > class Category: > description = charField() > > class Thing: > self.description = charField() > self.category(ForeignKey, Category) > > I would like a page layed out like: > > Category1 > * foo > * bar > * baz >

Re: why pub_date is split to pub_date_date and pub_date_time

2005-11-16 Thread Robert Wittams
t is not yet documented and won't be until the API is fully baked. (Post core fields removal.) Robert

Re: why pub_date is split to pub_date_date and pub_date_time

2005-11-16 Thread Robert Wittams
can take a look at >>how it is done by the admin in the new-admin branch. However, this part >>is not yet documented and won't be until the API is fully baked. (Post >>core fields removal.) >> >>Robert >> > > > Thanks. > > -- > I like python! > My Blog: http://www.donews.net/limodou > NewEdit Maillist: http://groups.google.com/group/NewEdit >

Re: why pub_date is split to pub_date_date and pub_date_time

2005-11-16 Thread Robert Wittams
limodou wrote: >>This isn't very well documented right now. >>See "http://www.djangoproject.com/documentation/model_api/";, under >>DateTimeField: >> >>"the admin represents this as two fields, with >>JavaScript shortcuts. " > > > But there are no JavaScript shortcuts in output code of generic

Re: 20 minute wiki, sortof.

2005-11-18 Thread Robert Wittams
David Ascher wrote: > Stumbling blocks: > * figuring out that I had to do "import > django.contrib.markup.templatetags.markup" to get the markup filters > registered was harder than it should have been. Did {% load markup %} not work? Maybe this tag needs to be pointed out more prominently - it is

Re: Bi-Directional ManyToMany

2005-11-18 Thread Robert Wittams
[EMAIL PROTECTED] wrote: > Hi > > I've just defined a manytomany relationship in the following way > > class ItemType(meta.Model): > name = meta.CharField(maxlength=100) > descritpion = meta.CharField(maxlength=250) > > class PropertyType(meta.Model): > name = meta.CharField(maxleng

Re: 20 minute wiki, sortof.

2005-11-20 Thread Robert Wittams
Simon Willison wrote: > > > On 18 Nov 2005, at 15:26, Robert Wittams wrote: > >> Hm, maybe when DEBUG is on, CommonMiddleware should put up an >> interstitial page to tell the developer what is happening? It does seem >> to bite a lot of people. > >

Re: Bi-Directional ManyToMany

2005-11-23 Thread Robert Wittams
plisk wrote: > Anyone working on this ? Would be great to have such functionality, so > if noone started to do it i could give a look. Also where will this > bidirectional ManyToMany select appear in itemtypes, below all the > controls it has in model ? > > I am working on core-fields removal a

Re: Per-user data: any pointers?

2005-11-27 Thread Robert Wittams
David Ascher wrote: > I'm trying to figure out how best to do per-user data (think of the > relationship between users and her photos on flickr). > > I notice that there's a nifty concept of "permissions", which in some ways > is per-user binary data. There is also the mostly undocumented (?) >

Re: generic views + new admin templates

2005-11-27 Thread Robert Wittams
stava wrote: > I'm trying to use generic views together with the newly separated admin > templates, but it's failing miserably. > > I specify the generic view I want to use in url.py: > countries = { > 'app_label': 'ttime', > 'module_name': 'countries', > } > urlpatterns = patterns('', > (r

<    1   2   3   4   5   >