Re: FeedMagnet: New Django-powered website just launched

2009-12-26 Thread James Matthews
Just as a side recommendation and this is no way the only way to secure your site. You may want to move your login portal to another page then the default /admin page. On Sat, Dec 26, 2009 at 6:44 PM, OkaMthembo wrote: > Great work, Jason & team. I thought it would be

mapping url to feed

2009-12-26 Thread neridaj
I'm trying to retrieve blog entries for a specific category and I'm not sure how to generate the correct url in my template. here is what I have: {{ category.title }} feeds = { 'entries': LatestEntriesFeed, 'links': LatestLinksFeed, 'categories': CategoryFeed, 'tweets': LatestTweetsFeed }

Re: mmmmm

2009-12-26 Thread Michael Jenkinson
hi Thanks for this. As it happens Ive had a hard drive go so installing again is now the only option. I will be much more careful about how I install stuff. I guess thats the peril of using older stuff but I cant afford new. This pc (not the one with a hd failure) has fedora 12 on it. Ive just

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Karen Tracey
On Sat, Dec 26, 2009 at 6:54 PM, Chris Withers wrote: > Karen Tracey wrote: > > In my case, environ.get('SCRIPT_URL', u'') and > > environ.get('REDIRECT_URL', u'') both return empty. > > I wonder what SCRIPT_URL is and why it's empty for you but not for me? > > It's set by

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Chris Withers
Karen Tracey wrote: > In my case, environ.get('SCRIPT_URL', u'') and > environ.get('REDIRECT_URL', u'') both return empty. I wonder what SCRIPT_URL is and why it's empty for you but not for me? I wonder if SCRIPT_URL having a value is something that came along with a later version of

Re: New to Django

2009-12-26 Thread datta
Thanks Selvam. I like the tut as well (now :-) ) and it covers quite a bit of material. Regards, Datta. On Dec 24, 9:33 am, "S.Selvam" wrote: > > Some simple tutorial (other than the one on Django website). > > I have been learning with the offical website tutorial,it is

Re: New to Django

2009-12-26 Thread datta
@Shawn, Thanks a lot for your time and response. I don't need any animations, but I do need a presentable web-page which is user-friendly. I already built all of this in PHP and I just hate it (it looks very clumsy , in terms of presentation and code-management). So I decided to give Django a try.

Re: FeedMagnet: New Django-powered website just launched

2009-12-26 Thread OkaMthembo
Great work, Jason & team. I thought it would be interesting to take a peek at the timeline. Season's greetings to all.. Lloyd On Thu, Dec 17, 2009 at 4:10 PM, Jason Ford wrote: > Let's see. We started on the Django version in mid-October...so right > at 2 months from

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Karen Tracey
On Sat, Dec 26, 2009 at 6:07 PM, Chris Withers wrote: > Graham Dumpleton wrote: > > > >> I also added a {{request}} to the base.html of the django > >> app. Here's the output of the request's SCRIPT_NAME for various urls: > >> > >> /studio - u'' > >> /studio/ -

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Karen Tracey
On Sat, Dec 26, 2009 at 5:59 PM, Chris Withers wrote: > Karen Tracey wrote: > > On Sat, Dec 26, 2009 at 5:32 PM, Chris Withers > > wrote: > > > > > > If anyone can tell me how to do "httpd -X" on a debian or

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Chris Withers
Graham Dumpleton wrote: > >> I also added a {{request}} to the base.html of the django >> app. Here's the output of the request's SCRIPT_NAME for various urls: >> >> /studio - u'' >> /studio/ - u'/studio' >> /test - '/test' >> /test/- '/test/' > > Hmmm, that would suggest that it is

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Chris Withers
Karen Tracey wrote: > On Sat, Dec 26, 2009 at 5:32 PM, Chris Withers > wrote: > > > If anyone can tell me how to do "httpd -X" on a debian or ubuntu host > I'd be very grateful... > > > /usr/sbin/apache2 -X For me that gave: #

running "httpd -X" on debian/ubuntu

2009-12-26 Thread Chris Withers
Chris Withers wrote: > Graham Dumpleton wrote: >>> How can I step through execution from the django.wsgi file and see where >>> I get to? I'm guessing putting an "import pdb; pdb.set_trace()" in the >>> django.wsgi file won't do what I want? >> Sort of, but you have to run Apache in single process

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Karen Tracey
On Sat, Dec 26, 2009 at 5:32 PM, Chris Withers wrote: > > If anyone can tell me how to do "httpd -X" on a debian or ubuntu host > I'd be very grateful... > > /usr/sbin/apache2 -X Karen -- You received this message because you are subscribed to the Google Groups "Django

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Chris Withers
Graham Dumpleton wrote: > >> How can I step through execution from the django.wsgi file and see where >> I get to? I'm guessing putting an "import pdb; pdb.set_trace()" in the >> django.wsgi file won't do what I want? > > Sort of, but you have to run Apache in single process mode. See > further

Re: mmmmm

2009-12-26 Thread Adrian Maier
On Sat, Dec 26, 2009 at 08:13, Michael Jenkinson wrote: > Hi > > Thank you so much for taking the time to reply. > > When you are as new to both python and django as I am you dont always see > the wood for the trees. Yes I still know I have a problem with how the paths >

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Graham Dumpleton
On Dec 26, 11:18 pm, Chris Withers wrote: > Graham Dumpleton wrote: > > > As I told you when you tried to use private email to get me to help on > > this, > > Apologies for that, I was actually trying to use Google's web UI to > reply to that thread in context. Their UI

Null constraint violations when saving objects with ForeignKey relationships

2009-12-26 Thread gmayer
Hi guys, I'm new to Django but otherwise quite a seasoned python and sql programmer. I'm baffled by django's foreign key id behaviour and as a result stuck in my current coding project. Let me start immediately with an example of what I'm trying to do. Assume two very simple models: class

Re: django-tagging is not multi-db safe

2009-12-26 Thread Alex_Gaynor
On Dec 26, 11:11 am, Rob Hudson wrote: > > 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 Unfortunately django-taggit isn't multi-db safe,

Re: Matplotlib with Django

2009-12-26 Thread heaviside x
I have looked at POST via AJAX, but I started to steer away from it after I read that a POST request is more for changing or updating data in a database and GET is more for changing how the data is viewed. Is my understanding wrong? Honestly, I am a python programmer who is picking up web

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

Re: django-tagging is not multi-db safe

2009-12-26 Thread Hanne Moa
2009/12/26 James Bennett : > On Fri, Dec 25, 2009 at 1:06 PM, Hanne Moa wrote: >> How is one to use as_sql() now with multi-db in? > > One doesn't. And, generally, one should be sticking to the stable > release of Django; Kinda hard when one wants to

Re: django-tagging is not multi-db safe

2009-12-26 Thread Hanne Moa
2009/12/26 Russell Keith-Magee : > On Sat, Dec 26, 2009 at 3:06 AM, Hanne Moa wrote: >> A site using django-tagging will break hard on 1.2 as of today. See >> issue http://code.google.com/p/django-tagging/issues/detail?id=233 . >> >> How is one to use

Re: ManyToOne to auth.models.User

2009-12-26 Thread TiNo
On Mon, Dec 14, 2009 at 15:52, Itay Donenhirsch wrote: > any progress? > Well, I guess I'll use a 'profile' although it feels like there should be more logical way, but I guess that depends on the extensibility of the User model... On Wed, Dec 9, 2009 at 12:09 PM, Itay

Re: about django model save

2009-12-26 Thread Carlos Ricardo Santos
Thanks for remind me about South. This really looks amazing! No more "rm db && manage.py syncdb" :D 2009/12/25 Shawn Milochik > Django-south is the best solution right now. Django-evolution is no longer > developed, as the author thinks South is the current best solution. >

Re: Matplotlib with Django

2009-12-26 Thread Hinnack
if you want to offer lots of properties one can change, POST via ajax is the better way - as you said long URLs can get very ugly - although you could shorten them like youtube or others do it. GET is far better at this point of time, as only GET requests are cachable (as far as I know) by djangos

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Chris Withers
Graham Dumpleton wrote: > > As I told you when you tried to use private email to get me to help on > this, Apologies for that, I was actually trying to use Google's web UI to reply to that thread in context. Their UI obvious sucks more than I realised as it just sent a private mail to you :-(

Re: Error

2009-12-26 Thread Łukasz Balcerzak
Hi, First argument in ``patterns`` factory method is like the starting point for all views that should be called. Moreover, you may pass function view as a callable object or as a string but in this case your starting point has to be hooked first. So, if for instance, your view method

Matplotlib with Django

2009-12-26 Thread heaviside x
Hello, To start, this is not another how do I get matplotlib to work in Django thread. This is how do I get matplotlib to work better with django. Before I go on, let me outline what I'm doing. I'm currently working on a scientific data manager/viewer which uses matplotlib as the primary

Re: Is this right: Modifying the admin changelist?

2009-12-26 Thread alexsantos
Hi, I just tried your way and it worked great. It's an easy and quick solution for summing up columns. I don't know if there is a better way to do it. Thank you, you saved me a lot of time On 19 dic, 17:54, yummy_droid wrote: > Hi, > > I wanted a "sum" of a particular column

Re: Django-MongoDB

2009-12-26 Thread Peterle
so, what about GAE\BigTables? How far are we from that? On 26 Dic, 10:59, Daniel Roseman wrote: > On Dec 26, 12:20 am, RackFeed wrote: > > > Has anybody tried using django-mongodb? What were your impressions? > > How well/poorly

Re: {% url admin:index %} generating wrong urls

2009-12-26 Thread Chris Withers
Karen Tracey wrote: > Can anyone tell me what I'm doing wrong? > > > No idea. I can't recreate by copy & pasting you urlpatterns. Tried on > Django 1.1.1 and current trunk. I've got mod_wsgi 2.3 instead of 2.5 > but I doubt that makes a difference for this -- everything else the same >