Re: Django admin in app installed in directory below root.

2010-10-07 Thread Joe Murphy
On Oct 6, 1:15 pm, Daniel Roseman wrote: > > Are you using mod_wsgi? If so, there must be something wrong with your > configuration. Can you post your .wsgi file? > -- > DR. Hi DR -- thanks for the reply, and the pointer. Yup, I'm using mod_wsgi, and I'll dig in that

Django admin in app installed in directory below root.

2010-10-06 Thread Joe Murphy
Okay, so I've got my django project "bar" installed in, say, www.foo.com/bar/ . I'm going to install another project in www.foo.com, so I have nginx using /bar/ as the root for the bar. This works fine for everything except... the django admin, which is at /bar/admin/ . The markup in the admin is

Is there a programmatic way to loop through all the possible URLs in a site?

2009-03-25 Thread Joe Murphy
Hi all, I've been doing some digging on this and haven't found a way to loop through the urlpatterns in a given site (I'm going on the assumption that all urls are stored in urls.py) and, with the help of the related views, figure out all the possible URLs of a Django site. Why am I interested

Re: cpu load

2008-11-25 Thread Joe Murphy
On Nov 25, 2:16 pm, "Jirka Vejrazka" <[EMAIL PROTECTED]> wrote: > do you do any pickling or serializing of QuerySets? I do remember > reading a blog (someone may be able to find the URL) where the author > mentioned the same problem. He managed to find out that it was caused > by changes

Re: Multiple types of output (HTML, JS), same view.

2008-11-18 Thread Joe Murphy
Hi Bruno, Your solution is more elegant and more DRY than the approach I took. This is what I ended up with: # urls.py (r'^election/results/(?P[-\w]+)/(?P\d{4})/((? P(js|htm))\/)?$', 'race.views.racename_detail'), # views.py def get_filetype(filetype): if filetype: return filetype

Browser access to manage.py / django command extensions

2008-11-10 Thread Joe Murphy
Hi all, Boss wants browser access to a couple custom django command extensions -- wants it to be simple to administer for those who aren't comfortable on the command line. Any advice on how to approach this? I've searched google / djangosearch.com, and the django-users archive, and have come up

Multiple types of output (HTML, JS), same view.

2008-10-30 Thread Joe Murphy
Hi, So I've got a bunch of views that I need to output in three forms: HTML with the site wrapper (header, footer etc.), HTML without the site wrapper, and JS. The templates are really, really similar. I'm thinking of using a url pattern like: r'^blog/blah(?P[-\.\/\w]+)$' so that blog/blah/

Re: cut-and-paste traceback error actually the error from the time before --

2008-04-29 Thread Joe Murphy
Yeah -- I am using firefox. Thanks for the lead on that. On Apr 29, 2:05 pm, Mike H <[EMAIL PROTECTED]> wrote: > Are you using firefox? I think this is a "helpful" feature of firefox > where if you fill out a form and refresh the page, it remembers the > form content so you don't have to fill it

cut-and-paste traceback error actually the error from the time before --

2008-04-29 Thread Joe Murphy
I thought this was "maybe it's just me" problems -- but it happens on every install of Django, in every environment I've dealt with Django (which is now up to six). When I get a Django error page, the error that's listed in the cut-and- paste traceback is actually the error that existed the

Re: Cookie-handling for django apps on subdomains, and failing gracefully

2008-03-26 Thread Joe Murphy
Okay, found this, which is pretty relevant: http://groups.google.com/group/django-users/msg/204d91beb2e2344b and this, which is tangential: http://code.djangoproject.com/ticket/2806 ...going to see if python2.5 deals with this any better... --~--~-~--~~~---~--~~

Cookie-handling for django apps on subdomains, and failing gracefully

2008-03-26 Thread Joe Murphy
Hi, I'm moving an app I've been building from its test environment to production. The production environment url is, say, production.denverpost.com . The problem I've got is that there are cookies set by www.denverpost.com, and some of those cookies are set to just live at denverpost.com . The

The timeuntil / timesince filter doesn't handle time objects -- was that a design decision, or was that something that got overlooked?

2008-01-08 Thread Joe Murphy
I was trying to run some comparisons in a template on a time, took a look at the utils/timesince.py code, ran some more tests, read the doco again, saw that the doco didn't mention timesince / timeuntil handling time objects, and thought: Hey, I bet that was on purpose, but maybe this was

Re: Error on Running Django on Apache2.2 ......Could Not Import Setting....

2007-03-01 Thread Joe Murphy
I've seen that error too, and fixed it by fiddling with the PythonPath... --~--~-~--~~~---~--~~ 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

Hand Count: How many Django users are there in Denver?

2006-11-09 Thread Joe Murphy
I just moved here, and am curious what the local Django scene's like. --~--~-~--~~~---~--~~ 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

Strategies for modifying models with existing data

2006-09-12 Thread Joe Murphy
Hi y'all, I've built one and a half (pretty basic) Django sites, and I'm working on a couple more. I was thinking about the type of development Django encourages, and how web applications work in the real world, and I got wondering what strategies folk out there had for modifying models with

Re: Perspective on building a community blog in a short timeframe

2006-07-14 Thread Joe Murphy
Ah, thanks for the perspective Julio. We're looking to do more a local test-of-concept, which makes it easy to cut down on the bells / whistles. However, my boss doesn't get angry, he gets stabby. It may be best to play it safe. I'm going to play with Django more this weekend on some other

Re: Perspective on building a community blog in a short timeframe

2006-07-14 Thread Joe Murphy
Yup, I caught that earlier today, it's a good start. I think the details that matter here are the timeline, ease-of-use by a non-technical audience, and hacking a pre-packaged solution vs. building from scratch. --~--~-~--~~~---~--~~ You received this message