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

2008-08-23 Thread Rob
> First question: are you really running the development server on your > local box? Yes, definitely the local box. Well, let me clarify... I've got Python and Apache on the local box but my Apache Web root is actually on a share on another box (my file server). But I just point t

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

2008-08-24 Thread Rob
Running Fedora and Python 2.4. Working my way through the first installation... I've successfully run "python manage.py runserver" and gotten the expected Validating models... 0 errors found Django version 1.0-beta_1-SVN-unknown, using settings 'dja.settings' Development server is running

foreign key passed as form field?

2008-09-14 Thread Rob
he validation works, but after tyring a bunch of things I can't pass the Book.id into the Shelf model as a ManytoMany. The idea is I'd like each user to be able to create a shelf of exisiting books in the database. I give them the id on each book page. Many thanks, Rob --~--~-

Settings for an application - define as a model?

2009-02-16 Thread Rob
what I am doing here? How does one store variables which don't really conform strictly to the "model". I want these values to be changeable via views in the web interface. Thanks for any input, Rob --~--~-~--~~~---~--~~ You received this message

Re: Settings for an application - define as a model?

2009-02-17 Thread Rob
OK, thanks a lot for that. I have only just started using Django and, for that matter, Python. It's really valuable to gain a bit of insight into how the more experienced might tackle the issues I am facing. Thanks again for the suggestions, Rob On Feb 16, 11:47 pm, Alex Gaynor wrote:

OS X install, not in home directory?

2010-04-24 Thread Rob
27;ll hand copy the files, but there must be a way with setup.py. ? thanks, Rob -- 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.com. To unsubscribe from this group, send em

Re: OS X install, not in home directory?

2010-04-27 Thread Rob
ry/Frameworks/Python.framework/Versions/2.6 running install ... Removing /Users/rob/Library/Python/2.6/site-packages/Django-1.1.1- py2.6.egg-info Writing /Users/rob/Library/Python/2.6/site-packages/Django-1.1.1- py2.6.egg-info So it put in my home dir. Same with --prefix=/Library/Python/2.6. Using --

Re: Getting a Blog included in the Django community aggregator

2010-04-27 Thread Rob
feed for Django is http://www.robgolding.com/blog/feed/?tag=django. It would be really great if my content could be included :). Thanks, Rob Golding On Apr 21, 9:32 am, Russell Keith-Magee wrote: > On Wed, Apr 21, 2010 at 4:28 PM, Daniel Roseman wrote: > > On Apr 20, 3:36 pm, Russell Ke

Re: OS X install, not in home directory?

2010-04-28 Thread Rob
overriding the normal setup.py behavior. Rob -- 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.com. To unsubscribe from this group, send email to django-users+unsubscr...@g

override a form field, to allow usernames with '@'

2010-05-02 Thread Rob
ite.unregister(User) UserAdmin.form = OurUserChangeForm UserAdmin.add_form = OurUserCreationForm admin.site.register(User, UserAdmin) But it doesn't work. The user form is still validating with the 'username' from the superclass, which is a RegexField. Is this working as designed? Are

Re: Error in form validation with choices

2010-06-13 Thread Rob
Thanks for starting this thread ... just hit this myself porting to 1.2.1 from 1.1.1 ... On May 18, 4:38 pm, Jori wrote: > Thanks, you're correct. I don't know how I didn't notice but then > again it worked just fine with 1.1.1. > > -Jori -- You received this message because you are subscribed

Re: inheriting User class

2010-10-24 Thread Rob
Probably most of us are using the separate profile model, as recommended. I actually have multiple models associated with users on one project: User (from auth) UserInfo (things rarely accessed such as address, emergency contact info, etc.) UserProfile (my application specific profile) I'm going

main categories in menu

2010-12-03 Thread Rob
the view? (r'^(.*)$', view), A consideration I have that I will end up having double content (which is bad for Google). Is it also an option to remember the choice made in a session, and render the menu on page load (through middleware)? Rob -- You received this message because you

Re: main categories in menu

2010-12-04 Thread Rob
the database --> render a menu of all pages which are linked to main1 --> show page1 Rob > r'^main1/\w+/$' > > which will pass all characters matching the regex (here, alphanumeric > chars) to the view you specify as a positional arg.  You can also pass > them as a k

Re: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-06 Thread Rob
Have you managed to figure this out - I'm having a similar (I believe the same) issue. On Jan 5, 6:27 am, Patrick May wrote: > Can you make it fail in the development server, with DEBUG turned on? > > If so, you can get more helpful error display and/or do pdb.set_trace() and > poke around. > > I

How can I rename uploaded files to a random filename?

2007-06-24 Thread rob
We upload all of our images via the Admin app and would like all uploaded images to be renamed to a set of numbers. We can generate the random numbers fine, but is there an easy way to rename the file once it's uploaded in the Admin app? Thanks. --~--~-~--~~~---~--~-

Beginner: (db) help with assigning unique names to multiple ForeignKeys

2007-06-26 Thread rob
e) And an example of what I'd like: This obviously doesn't work because if I try to create two themes with the same name but in a different category (using the Admin app), it'll complain that a theme with the same name already exists. Can a

Re: Beginner: (db) help with assigning unique names to multiple ForeignKeys

2007-06-26 Thread rob
this: http://rawb.net/after.png? Thanks for the help, Rob --~--~-~--~~~---~--~~ 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 unsubsc

Lookups that span relationships

2006-06-07 Thread rob
Hi there, I'm having trouble with the documentation at http://www.djangoproject.com/documentation/db_api/#lookups-that-span-relationships It says that I can follow a 'reverse' relationship by using the lowercase name of the model, but when I try with the model below, I get an error. What am I do

Re: DoesNotExist at /accounts/login/

2006-06-07 Thread rob
hat you'll need. All the best, Rob --~--~-~--~~~---~--~~ 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 gr

Redirect form after post, and download pdf

2012-06-07 Thread Rob
doesn't work at all (because the view "stops" after the return). Any idea? Rob -- 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

Validation error with formwizard and formset

2012-07-21 Thread Rob
I have a basic formwizard example from the Django 1.4 documentation: https://docs.djangoproject.com/en/1.4/ref/contrib/formtools/form-wizard/ When I replace the forms with a modelform and a formset i keep getting validation errors: (ManagementForm data is missing or has been tampered with) The

Re: Validation error with formwizard and formset

2012-07-21 Thread Rob
The validation error i got was due to a custom view i wrote, and had nothing todo my my template etc etc. I switched back to the default example view provided by the Django site, and everything works. -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: Difficulties using generic views (Tutorial 4, Django 1.4)

2012-07-24 Thread Rob
Sometimes the browser cache is making trouble too. Especially with Firefox I occasionally have this kind of problems. Clear the browser cache, or test with a different browser mostly helps. -- You received this message because you are subscribed to the Google Groups "Django users" group. To vi

Button with save and custom action in Admin

2012-12-10 Thread Rob
In Django 1.4 I am working on a small mailing app, and in the admin change page I would like to add a button called "send mailing". When the user presses the button the model should be saved first, en then redirected to a custom page to view and confirm the mailing before send. I saw lots of sn

Re: Button with save and custom action in Admin

2012-12-10 Thread Rob
I found a snippet which does everything I want (in case anybody runs into the same problem): http://djangosnippets.org/snippets/2005/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.googl

Custum save on Foreignkey in Admin

2013-02-02 Thread Rob
I have two models: class Tickets(models.Model): ticketnumber = models.IntegerField() total_amount = models.DecimalField() class TicketItems(models.Model): name = models.Charfield(max_length=30) ticket = models.ForeignKey(Tickets) price = models.DecimalField() amount = models.In

Re: Custum save on Foreignkey in Admin

2013-02-02 Thread Rob
Thank you for the reply! I was working on a custom save in models.py, never thought about working on the formset in admin.py Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

get_form in formwizard gives validation error

2013-03-05 Thread Rob
y: class BoekForm3(forms.Form): Activiteit = forms.ModelChoiceField(queryset=Activiteit.objects.none(), widget=forms.RadioSelect, empty_label=None) Anybody an idea about this? Rob -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: get_form in formwizard gives validation error

2013-03-07 Thread Rob
I am a bit further now. When I use the default widget in forms.py the validation error disappears. BoekForm3 becomes: Activiteit = forms.ModelChoiceField(queryset=Activiteit.objects.all(), empty_label="(Nothing)") I ran into another issue however (below is my complete view): I use get_form to ma

How to update a form in formwizard

2013-03-07 Thread Rob
l'] == '5': filter3 = 'Middag + Avond' elif y['Dagdeel'] == '6': filter3 = 'Dag + Avond' form.fields['Activiteit'].queryset = Activiteit.objects.filter(Soort__Groep = filter1).filter(Gro

Re: Example uses of Celery

2011-05-24 Thread Rob
I use celery for the following: 1. Expensive tasks that you don't want the user waiting on. For example: sending messages; we have triggers for SMS, Email and iPhone APN messages. I don't want the request/response waiting around while I do all of that. 2. Tasks that could fail and need to

Seeking a Django 1.3 and syslog configuration example

2011-06-01 Thread Rob
I'm having no luck finding any information on setting up syslog logging with Django 1.3 dictionary configuration. The Django documents don't cover syslog and the python documentation is less than clear and doesn’t cover dictionary config at all. I've started with the following but I'm stuck on how

Re: Our new startup site build on Django and GAE is now live!

2011-06-03 Thread Rob
info about me; if I like it I will sign up. I'd like to provide feedback but the first thing you want me to do, before even looking at the site, is give you my facebook info? Ummm ... no. So the only feedback I have is get rid of that "*we're* social so *you* have to share"

Re: Seeking a Django 1.3 and syslog configuration example

2011-06-03 Thread Rob
og facility (eg. LOG_USER or LOG_LOCAL0). How do I configure those options? Rob. On Jun 1, 12:41 pm, Shawn Milochik wrote: > This should help out. It's for a file, not SysLogHandler, but the idea > is the same. > > Just take any arguments you would normally pass to the h

Re: Seeking a Django 1.3 and syslog configuration example

2011-06-03 Thread Rob
7;: { >          'syslog': { >              '()': logging.handlers.SysLogHandler, >              'facility': logging.handlers.SysLogHandler.LOG_LOCAL7, >              'formatter': 'prod', >          }, >      } > > It depends on the commonware, but I gue

filter cache output

2011-07-15 Thread Rob
database (which makes the caching useless). I found out about this because changes in the menu are applied immediately on the webpage. Is this normal behaviour, and should I make multiple entries into the cache for the left- and topmenu, or is there a way to get this working? Rob -- You received

Re: filter cache output

2011-07-15 Thread Rob
On Jul 15, 8:34 pm, Nan wrote: > Querysets are evaluated lazily.[1][2]  You may have better success > using template fragment caching[3] to cache the menu output. > Thanks for the reply. I read the part about the "lazy" querysets and therefore I suspected the database not to be hit. This also do

Re: filter cache output

2011-07-15 Thread Rob
On Jul 15, 8:57 pm, Nan wrote: > Well, you can use one of the methods from [2] to force the queryset to > evaluate before caching it.  But you'll still run a new query in order > to filter, unless you aftually filter the data in your Python code. Very clear, thanks! -- You received this message

HTML size confusion.

2011-03-04 Thread Rob
hat am I doing wrong here?) I'm using django 1.2.1. Cheers! Rob -- 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, s

Re: Django setup with elsatic beanstalk

2014-07-11 Thread Rob
gmail.com> writes: > > > I'm having a similar problem - I don't see errors from the EB console - but django is not loaded I still get the standard AWS EB page.I have tried editing settings.py and app.config according to this tutorial:http://docs.aws.amazon.com/elasticbeanstalk /latest/dg/c

Re: ANN: Django website redesign launched

2014-12-17 Thread Rob
On Tuesday, December 16, 2014 5:58:00 PM UTC-5, Christian Schmitt wrote: > > Somehow I hate it. The website is the worst website I've seen since a long > time. > The contrast is really aweful. > The issue Tracker got unusable due to the colors that aren't focused on > readability. > Clearly. My

Re: ANN: Django website redesign launched

2014-12-17 Thread Rob
On Wednesday, December 17, 2014 8:39:21 AM UTC-5, Daniele Procida wrote: > > > We'd hate you to be "that guy" too. However, so far you are "that guy", > since merely announcing that you have identified numerous accessibility > issues is useless. > Ok. Tell the designer to google "chrome acce

Smiley in url triggers 500 error

2019-02-21 Thread Rob
Somebody linked our site with a smiley in the url. The url looks like this: myurl/nummer-333😊🤓/ This results in a 500 error. Because this page does not exist I expected a 404 error. The 500 error shows: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE

Re: Smiley in url triggers 500 error

2019-02-22 Thread Rob
Ok solution was simple. I had to add this in settings.py in the database section: ’OPTIONS’: {’charset’: ’utf8mb4’}, -- 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

Call for Comments from those who use mailing address models in Django

2020-04-09 Thread Rob
st don't have the right delivery. Rob -- 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-users+unsubscr...@googlegroups.com. To view this discuss

Dojango question

2008-11-01 Thread Rob Goedman
the 'eval' step feels weird. I did have a look at dojox.dtl (Django Templating Language) but haven't (yet?) figured out if that is applicable for this. Thanks, Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Dojango question

2008-11-01 Thread Rob Goedman
Wolfram, You bet I've read your blogs! Wouldn't have gotten where I got to without them! Clearly I had missed the to_dojo_data(), that's exactly what I was looking for. This works super. Thanks a lot, Rob On Nov 1, 2008, at 4:45 PM, Wolfram Kriesing wrote: > > Hi

getting request.user into a ModelForm?

2008-11-06 Thread Rob Hudson
hings set up. I originally didn't have a user FK on the Category model but decided I wanted it so that when adding new Links, the Categories can be filtered by user so each user sees only their categories. I'm stuck here. Any help is much appreciated. Thanks, Rob --~--~-~--~~

pyamf, mod_wsgi and session caching

2008-11-11 Thread oggie rob
hen we're using the caching session engine I thought I'd check in here before asking on the pyamf list. So... has anybody seen this before? Thanks! -rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: No module named urls

2008-12-03 Thread Rob Hudson
It's odd... I'm getting the exact same error at the exact same spot, running Django trunk r9550. What's strange is that it gets the 500 error on first request, and is ok all subsequent requests. On Nov 26, 9:34 am, TheIvIaxx <[EMAIL PROTECTED]> wrote: > So i've narrowed down the problem more.  I

Re: No module named urls

2008-12-04 Thread Rob Hudson
is is importing `reverse` and running it twice with the same URL named view where I'm seeing the error. I'm doing it twice to see the difference... >>> from django.core.urlresolvers import reverse as r >>> r('django-admindocs-docroot') Traceback (most

Re: No module named urls

2008-12-04 Thread Rob Hudson
On Dec 4, 12:59 am, Rob Hudson <[EMAIL PROTECTED]> wrote: > I'll keep poking around a bit and see if I can dig up anything > further. I think I tracked it down... Looking at the tracebacks above, you can see the first time through, it winds up on line 198 which tries to import

Character encoding... latin1 to utf8?

2008-12-04 Thread Rob Hudson
ght. Character encodings are a big confusion for me. Thanks for any help, Rob --~--~-~--~~~---~--~~ 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@googlegroup

Re: Character encoding... latin1 to utf8?

2008-12-06 Thread Rob Hudson
put is correct? > Just for laughs, though, try running "file" on the csv file you generate > and make sure it, at least, detects that it is a UTF-16 file. It actually tells me nothing... > file export.csv export.csv: Thanks, Rob --~--~-~--~~~---~--~--

Re: Character encoding... latin1 to utf8?

2008-12-06 Thread Rob Hudson
se_unicode=True' and manually run .decode('cp1252') on the columns I need to. Much thanks to both you and Malcolm for helping me get this cleared up. Thanks, Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: pyamf, mod_wsgi and session caching

2008-12-11 Thread oggie rob
On Nov 11, 11:38 am, oggie rob wrote: > Hi all, > I'm working on a project which uses pyamf and produces the following > exception during login: > > AttributeError: 'LazyModule' object has no attribute 'Manager' I'm a bit late in responding here, but

Re: sys.path trickery in settings.py

2009-01-04 Thread Rob Hudson
iting the file. For myself, I have multiple versions of Django in a folder in my home directory and manage which one is used via a .pth file in my Python path. See this snippet: http://www.djangosnippets.org/snippets/641/ -Rob On Jan 4, 1:56 am, George Cox wrote: > Hi, > > I keep my d

Re: Migrating MySQL -> Postgre, any working solutions?

2009-01-04 Thread Rob Hudson
okup table sql = 'SELECT * FROM lookup_table' c.execute(sql) while True: row = c.fetchone() if not row: break Lookup(name=row['name']).save() -Rob On Jan 3, 2:10 am, Szymon wrote: > Hello, > > I've found in archives message: >

request getlist() in order?

2008-07-16 Thread Rob Hudson
e value of getlist() be in order as selected in the form? I'm trying to determine if I can do something the easy way (depend on the order as provided in the form) or do I have to name the fields in such a way to remember the order on POST. Thanks, Rob --~--~-~--~~~-

Re: request getlist() in order?

2008-07-18 Thread Rob Hudson
Thanks Arien! --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] Fo

Newforms admin and custom widgets

2008-07-18 Thread Rob Hudson
er = models.ForeignKey(Newsletter) header = models.CharField(max_length=200, core=True) message = models.TextField() books = models.ManyToManyField(Book) Thanks for any guidance. -Rob --~--~-~--~~~---~--~~ You received this message because you are s

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

2008-08-23 Thread Rob Erbaron
SOLVED. (and a followup question) I was running "python manage.py runserver" in a terminal, and then hit Ctrl-C... and then called up my Web browser. So, duh, I was shutting down the server in the terminal window and THEN browsing Jeesh. /shakes head/ Leaving the terminal window open, runn

Core keyword error

2008-08-28 Thread Rob Goedman
Hi, Since moving to beta-2 I get: Robs-Intel:mcp rob$ ./manage.py runserver Validating models... Unhandled exception in thread started by Traceback (most recent call last): File "/Library/Python/2.5/site-packages/django/core/management/ commands/runserver.py", line 47, in

Re: Core keyword error

2008-08-28 Thread Rob Goedman
Thanks Malcolm and Rajesh! Expected I had missed something. Should have noted that 1st line Googling 'django core arguments' instead of 'django core keyword' got me there. Thanks again, Rob On Aug 28, 2008, at 12:30 PM, Malcolm Tredinnick wrote: > On Thu, 2008-08

Re: DjangoCon keynote transcript/summary

2008-09-17 Thread Rob Hudson
imilar purpose that is gaining some steam: http://github.com/robhudson/django-debug-toolbar/tree/master Cheers! -Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Newforms admin and custom widgets

2008-09-17 Thread Rob Hudson
I was playing with this again tonight and it's just not working for me no matter what I try. I'm wondering if there are issues with ManyToMany and Inlines and trying to override them? On Jul 24, 5:23 pm, "Rob Hudson" <[EMAIL PROTECTED]> wrote: > > SpecialBoo

Can't add more than 2 items in stacked/tabular inlines using tutorial part 2

2008-10-03 Thread Rob Goedman
search does not show any hits on this problem. Thanks, Rob --~--~-~--~~~---~--~~ 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 unsu

Re: Can't add more than 2 items in stacked/tabular inlines using tutorial part 2

2008-10-03 Thread Rob Goedman
Hi Karen, Right on, thank you. The patch provided in the ticket fixes the problem. I do use PostgreSQL. I should have checked the ticket list! Thanks again, Rob On Oct 3, 2008, at 9:57 AM, Karen Tracey wrote: > On Fri, Oct 3, 2008 at 12:43 PM, Rob Goedman <[EMAIL PROTECTED]> wr

Django-sphinx with postgresql

2008-10-08 Thread Rob Sutherland
tainer. Is this package still being actively maintained? Second, is anyone currently using it to index and search a 100K record postgresql table? Thanks in advance, Rob -- http://www.oscl.ca --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: djangosnippets.org list navigation

2008-10-08 Thread Rob Sutherland
On Wed, Oct 8, 2008 at 5:44 PM, David Durham, Jr. <[EMAIL PROTECTED]> wrote: > > The list navigation on djangosnippets is not so good. Take this page I found this link to a search utility for djangosnippets the other day. http://henning.cco-ev.de/django/djangosnippets.ht

Re: Which IDE do you choose with django?

2008-10-12 Thread Rob Sutherland
On Sun, Oct 12, 2008 at 3:01 PM, Tim Chase <[EMAIL PROTECTED]> wrote: > Emacs is your thing, that would do, as would any other good > text-editor (some folks swear by TextMate or Notepad++). > I use Komodo Editor - http://www.activestate.com/Products/komodo_ide/komodo_edit.mhtml - I find that i

auto_add and auto_add_now in admin fieldsets

2008-10-18 Thread Rob Goedman
in the Poll tutorial example. Replacing the 'auto_add_now=True' by 'default=datetime.datetime.now' in the model does work. I couldn't find this in the ticket list. Has anybody else encountered/ tried this? Thanks, Rob --~--~-~--~~---

Re: auto_add and auto_add_now in admin fieldsets

2008-10-18 Thread Rob Goedman
Thank you James! That is actually cool behavior as they do show up on the list page and are indeed not needed on the detail page. Should your note below be added to http://docs.djangoproject.com/en/dev/ref/models/fields/#datefield ? Thanks again, Rob On Oct 18, 2008, at 11:27 AM

Any way to avoid the SQL hit of auth_messages?

2008-10-20 Thread Rob Hudson
ject hanging off of request at some point, write my own auth context processor that doesn't add messages or permissions stuff to request. I'm not sure exactly which parts of the 'auth' context processor the admin uses so maybe this would need to also do #1. Or is there a be

InternalError and transactions

2009-01-24 Thread Rob Hudson
types', 'django.contrib.sessions', 'django.contrib.sites', 'private_apps.links', 'django_extensions'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'dj

Re: InternalError and transactions

2009-01-24 Thread Rob Hudson
wrap it in commit_on_success: > > http://docs.djangoproject.com/en/dev/topics/db/transactions/#django-d... > > Alternatively you could use the lower-level connection rollback routine and > bypass the django.db.transaction layer, but I think it's

Re: Django Forms in HTML 4.01 Strict

2009-01-30 Thread Rob Hudson
s he'd support a template filter for this, along the lines of what django-html is doing already. I personally believe, if Django should choose only one doctype as its default, it should choose HTML 4.01 and provide a filter for XHTML. But I

Advice on many to many with too many records in admin

2009-02-14 Thread Rob Hudson
auto complete multiple widget of some sort, as seen on a lot of sites. Pros: Easier for the user to enter multiple books using a common web pattern. Cons: I'd say quite a bit more time consuming to set up. Any other ways to do this? Or some examples of #2 to help someone along? T

Re: Advice on many to many with too many records in admin

2009-02-14 Thread Rob Hudson
e if anyone else responds. -Rob --~--~-~--~~~---~--~~ 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 email

URL quoting and escaping

2009-03-03 Thread Rob Hudson
ars correct: >>> escape("http://www.google.com/";) "http%3A//www.google.com/" And unquoting in Python reverses it: >>> import urllib >>> urllib.unquote("http%3A//www.google.com/") 'http://www.google.com/' Throwing an assert in my view shows t

Re: URL quoting and escaping

2009-03-04 Thread Rob Hudson
I decided to follow Google's lead and pass it as a parameter of the query string instead and all is well now. Thanks for the feedback... I never considered it might be the web server. -Rob --~--~-~--~~~---~--~~ You received this message because yo

Re: Stuck re:Practical Django Projects 2nd E...

2009-07-18 Thread Rob B
Huge thanks Tanja - worked a treat. Any ideas why the book has it the other way around? 2009/7/18 klaut > > > > On Jul 18, 6:30 pm, "Rob B (uk)" wrote: > > Bit stumped on chapter 4. > > > > Every thing is working except I'm getting a 'Page n

Re: Also-Online Feature

2009-07-26 Thread Rob B
A few links that might help... http://groups.google.com/group/django-users/browse_thread/thread/4ba5652bcbd1f958 http://www.djangosnippets.org/snippets/947/ 2009/7/26 Jonas Obrist > > Is there a builtin way in django to get a list of other users who are > currently visiting a website or even a

Re: URL & DB question

2009-08-02 Thread Rob B
Great I didn't know about that one. I'm curious to what are the benefits of doing it that are? Thanks 2009/8/2 Chris Withers > > Rob B (uk) wrote: > > Solved it by doing this: > > > > def profile_detail(request, name): > > p = get_object_o

Re: URL & DB question

2009-08-02 Thread Rob B
Well it works a treat so big thanks. 2009/8/2 Chris Withers > > Rob B wrote: > > Great I didn't know about that one. I'm curious to what are the > > benefits of doing it that are? > > Less code for you to write and maintain :-) > > Chris > &g

MultiWidget Help

2009-08-28 Thread Rob Broadhead
t and return only the value from one of the widgets it contains?" Any help will be greatly appreciated, Rob class Suggester(widgets.MultiWidget): CHANGE_CODE = """ ... nothing useful here... """ def __init__(self, attrs=None): def t

Re: Imagefield, PIL and save()

2009-09-03 Thread Rob Broadhead
> > No exception, no errors, but neither was a thumbnail created. I keep > thinking something's going on with the Image.open() method, but I have > no clue what. Any ideas greatly appreciated. > > > > Rob Broadhead robert.broadh...@gmail.com --~--~-~--~~--

Pass a queryset to the admin and display using existing app/model admin?

2009-03-28 Thread Rob Hudson
up the queryset in my own view and pass that off to the admin to display? I already have a custom admin set up if there's something that's close. Thanks, Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

TemplateDoesNotExist error when postmortem says it exists?

2009-03-29 Thread Rob Hudson
: Django tried loading these templates, in this order: Using loader django.template.loaders.filesystem.load_template_source: /Users/rob/git/anglers/anglers/templates/book/search_form.html (File exists) Using loader django.template.loaders.app_directories.load_template_source: /Users/rob/django/django

Re: TemplateDoesNotExist error when postmortem says it exists?

2009-03-29 Thread Rob Hudson
is odd is I'm also using this template from a different view and it loads fine. I'm trying to debug now but I'm about to run out of time and thought I'd throw it out here if anyone else encountered this. Thanks, -Rob --~--~-~--~~~---~--~~ You rece

Re: TemplateDoesNotExist error when postmortem says it exists?

2009-03-29 Thread Rob Hudson
Wow, that was a tricky one to track down... After putting debug output in django/template/loaders/filesystem.py I saw that filepath was set to: '/Users/rob/git/anglers/anglers/templates/('book/ search_form.html',)' I back tracked that and found that I had a trailing c

Re: How do i use dojo in my Django application

2009-04-02 Thread Rob Goedman
Gath, Attached at the end of this email an exchange from a few months back about Dojo & Django using the dojango application. I've been using this and have been happy with it. http://code.google.com/p/dojango/ Rob On Apr 2, 2009, at 7:55 AM, Dougal Matthews wrote: &

Re: Django, Dojo and JSON-RPC

2009-04-06 Thread Rob Goedman
Jani, Not sure what you are trying to achieve. Wolfram suggested below solution to me a while ago and I'm happy with it. Rob On Apr 6, 2009, at 3:14 AM, Jani Tiainen wrote: > > I've been trying to find out nice solution to handle JSON-RPC with > Django and Dojo (Dojango).

Looking for something lighter than Sproutcore or Cappuccino that integrates well with Django

2009-04-08 Thread Rob Madole
I've been looking at a couple of RIA frameworks, namely Sproutcore and Cappuccino. The feel a bit too heavy for me. Sproutcore does not integrate well with Django. Cappuccino uses Objective-J as the language and I'm not convinced this is a good choice for our team. The reason I'm posting is to

Re: Looking for something lighter than Sproutcore or Cappuccino that integrates well with Django

2009-04-09 Thread Rob Madole
You did kinda answer the question. It's good to know that others are going through this too. I was looking for confirmation that this was actually a problem. The spaghetti code, I definitely see that too. Because of the glob of junk that you have to deal my projects end up being a lot of glue

Re: debug toolbar problem

2009-11-02 Thread Rob Hudson
27;t track SQL queries. -Rob On Nov 2, 5:38 am, "bax...@gretschpages.com" wrote: > > Are you caching your pages? > > Yes, but only for anonymous users > > > Are you using Django ORM? > > Yes > > > Have you added the DebugToolbarMiddleware to your MID

Re: www.djangoproject.com

2010-07-01 Thread Rob Broadhead
Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/django-users?hl=en . Ro

Re: django-tagging is not multi-db safe

2009-12-26 Thread Rob Hudson
> Django-tagging have a lot of users though. Maybe the pinax-people will > arrange for a version that is 1.2-safe. Check out django-taggit: http://github.com/alex/django-taggit -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

problems getting the development version running on Leopard

2010-01-19 Thread Rob Slotboom
python shell >>>> No module named django.core I can see the symbolic links in finder and the show the content the should give. Some time ago I used exactly the same procedure on FreeBSD and all went fine. Do I have to something special to get this running on Leopard? Cheers, R

  1   2   3   4   5   6   7   >