Re: "python manage.py runserver" tutorial error

2009-06-25 Thread Alex Gaynor
On Thu, Jun 25, 2009 at 11:57 PM, Steve1234 wrote: > > I installed psycopg2 as you suggest, however I still have the same > error. The error complains about psycopg not psycopg2, did I get the > wrong module? Or something else? > > > In your settings.py make sure you have

Re: Hard linking an image

2009-06-25 Thread koranthala
On Jun 26, 2:21 am, Kevin Teague wrote: > Presumably you already have all of the data required to generate a > chart on the server? If so, then store the chart data in a model, and > just reference it by id. e.g. > > > > (or w/ a pretty URL: ) > > And create a Chart object and

rollback transaction without an exception when transaction is tied to http requests

2009-06-25 Thread sico
Hi Is it possible to rollback the transaction without raising an exception when the transactions are tied to http requests?? I'm writing several records in one post call, if any fail I'd like to rollback the transaction but return a nice error message to the user. Surely I'm missing something as

Re: "python manage.py runserver" tutorial error

2009-06-25 Thread Steve1234
I installed psycopg2 as you suggest, however I still have the same error. The error complains about psycopg not psycopg2, did I get the wrong module? Or something else? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Writing a reusable app

2009-06-25 Thread Kenneth Gonsalves
On Friday 26 June 2009 09:54:04 Joshua Partogi wrote: > I'm currently also splitting up my django apps to be reusable. What is your > main reason to have full batteries ? For some people that is already > running django, it is more ideal to go minimalistic because then it will be > easier to plug

Re: Writing a reusable app

2009-06-25 Thread Alex Gaynor
On Thu, Jun 25, 2009 at 11:24 PM, Joshua Partogi wrote: > Hi Kenneth, > > I'm currently also splitting up my django apps to be reusable. What is your > main reason to have full batteries ? For some people that is already running > django, it is more ideal to go minimalistic

Re: Writing a reusable app

2009-06-25 Thread Joshua Partogi
Hi Kenneth, I'm currently also splitting up my django apps to be reusable. What is your main reason to have full batteries ? For some people that is already running django, it is more ideal to go minimalistic because then it will be easier to plug into existing django apps. Regards, On Fri, Jun

Re: Writing a reusable app

2009-06-25 Thread Kenneth Gonsalves
On Thursday 25 June 2009 19:21:15 nabucosound wrote: > So how do u guys think I should target it? Minimalistic or full- > batteries included? full batteries -- regards kg http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because you

Re: TimeField and null

2009-06-25 Thread adrian
Thanks for that clear explanation, and your solution works great! Adrian On Jun 24, 9:23 pm, Karen Tracey wrote: > On Wed, Jun 24, 2009 at 3:57 PM, adrian wrote: > > > I need a time field that can be None. > > > I define the field so that Null is legal

Re: "python manage.py runserver" tutorial error

2009-06-25 Thread Alex Gaynor
On Thu, Jun 25, 2009 at 10:56 PM, Steve1234 wrote: > > > That's the module for Postgres. What OS are you on? If you can tell > > us then we can give you specific instructions for installing the > > module. > I am running Ubuntu 9, Postges 8.3.7, Python 2.6.2. I

Re: "python manage.py runserver" tutorial error

2009-06-25 Thread Steve1234
> That's the module for Postgres.  What OS are you on?  If you can tell > us then we can give you specific instructions for installing the > module. I am running Ubuntu 9, Postges 8.3.7, Python 2.6.2. I installed Django using subversion. --~--~-~--~~~---~--~~

Re: Global objects

2009-06-25 Thread Alex Gaynor
On Thu, Jun 25, 2009 at 10:42 PM, diogobaeder wrote: > > Let me explain myself better: I have some menus in my site, and they > appear all along the front-end pages. One of these menus must have a > list of objects. > > Considering that I have a "base.html" that has these

Re: Global objects

2009-06-25 Thread diogobaeder
Let me explain myself better: I have some menus in my site, and they appear all along the front-end pages. One of these menus must have a list of objects. Considering that I have a "base.html" that has these menus, how can I pass the objects to it, without having to fetch the objects in each

Re: Using Signals as hooks

2009-06-25 Thread Wiiboy
Question: how often should I have a cron job work to send emails? Or should I just have it so that a few items from a task DB are done each request (e.g. split up emails into groups, and email them a few per request)? --~--~-~--~~~---~--~~ You received this

Re: Using Signals as hooks

2009-06-25 Thread Wiiboy
Thanks. On the topic of scaling, my site hasn't even been publicly released yet. However, I'll keep your advice in mind as I work on it, to keep it "future-proof". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Trouble rendering a ManyToManyField with CheckBoxSelectMultiple widget

2009-06-25 Thread Rodrigo Cea
Stupid mistake, I had to use a MultipleChoiceField instead of a plain ChoiceField. styles= forms.MultipleChoiceField (widget=forms.CheckboxSelectMultiple (), --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: TinyMCE django admin

2009-06-25 Thread Dhruv Adhia
Yep you got me :) I am quite familier with django now, but haven't tried forms till now!! Thanks! On Thu, Jun 25, 2009 at 4:59 PM, Joost Cassee wrote: > > On Jun 25, 7:08 pm, Dhruv Adhia wrote: > > > I was just googling and came across all those old hacky

Trouble rendering a ManyToManyField with CheckBoxSelectMultiple widget

2009-06-25 Thread Rodrigo Cea
I am rendering a ManyToManyField with a CheckboxSelectMultiple widget like so: class CreateBandForm(ModelForm): styles= forms.ChoiceField(widget=forms.CheckboxSelectMultiple(), choices=[(i,i) for i in Style.objects.all()]) class Meta: model = Band fields =

Re: One to Many+foreign key Query: best way to build the optimal result

2009-06-25 Thread Sam Walters
Thanks for the help. I think you are on the right track however i could not get this to work. Maybe an example query using cursor.execute would help so you can see what i am trying to do. def sqlAllEventsMenu(): cursor = connection.cursor() cursor.execute(""" SELECT events_event.id,

Weird transaction issue in apache?

2009-06-25 Thread Jay Wineinger
I have an Order model and a Payment model (which FK's to Order as "payments"). I have a handler for post_delete on Payment which sends a custom signal which may do some updating on Order. The problem I'm seeing is that when I delete a Payment, the custom signal handler can still query for the

Re: "python manage.py runserver" tutorial error

2009-06-25 Thread Wayne Koorts
> I am getting an error working through "Writing your first Django app, > part 1" tutorial.  "python manage.py runserver" generates the error: > > ...raise ImproperlyConfigured("Error loading psycopg module: %s" % e) > django.core.exceptions.ImproperlyConfigured: Error loading psycopg > module:

"python manage.py runserver" tutorial error

2009-06-25 Thread Steve1234
I am getting an error working through "Writing your first Django app, part 1" tutorial. "python manage.py runserver" generates the error: ...raise ImproperlyConfigured("Error loading psycopg module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No module

Re: TinyMCE django admin

2009-06-25 Thread Joost Cassee
On Jun 25, 7:08 pm, Dhruv Adhia wrote: > I was just googling and came across all those old hacky ways to integrate > tinymce which I finally did yesterday. Its working. But yes if its something > builtin now I should go for that. However I dont know If I can easily change >

Re: SESSION_EXPIRE_AT_BROWSER_CLOSE and normal cookie

2009-06-25 Thread humble
you didn't specify max_age in response.set_cookie('myname', data), which assumes None by default. Therefore that cookie expires when browsers closes. On Jun 25, 3:58 pm, pr wrote: > Hello, > > When I set SESSION_EXPIRE_AT_BROWSER_CLOSE to True, Django > automatically remove

Global objects

2009-06-25 Thread Diogo Baeder
Hi, I'm trying to set up a global model object list, to populate a part of a menu in my site. How can I do it? How can I instantiate the model object list, so that it is available to all the views? Thanks! Diogo --~--~-~--~~~---~--~~ You received this message

Setting up Django, Apache and Nginx on Windows Vista

2009-06-25 Thread Duvalfan23
I am a new user to Django and want to set it up with Apache, Nginx, and MySQL on Windows Vista for testing. I will set up on Linux once I get a shared hosting account. Does anyone know a website that explains this very well from start to finish on Vista? Or can someone explain how to do this on

importing cjson/numpy/scipy causes crash

2009-06-25 Thread Parrellel
Hello, Whenever I try to import any of the above into the view into my site it shoots back with: Caught an exception while rendering: Could not import AECOM.ofc.views. Error was: DLL load failed: The specified module could not be found. And in the apache log: [Thu Jun 25 16:53:46 2009]

SESSION_EXPIRE_AT_BROWSER_CLOSE and normal cookie

2009-06-25 Thread pr
Hello, When I set SESSION_EXPIRE_AT_BROWSER_CLOSE to True, Django automatically remove not only my session cookie (sessionid) but also any others cookies creating by using response.set_cookie('myname', data). Why? I want to keep all cookies without session cookie. Thank You.

Re: django apps that implement ticket filtering?

2009-06-25 Thread lzantal
Hi, You could submit all the filters from an html form and in your view function loop through the request.Post and build the queries if the Post value is not empty.Using django.db.models.Q Laszlo Antal http://www.antalconsulting.com Office: 208-699-7508 On Jun 25, 2009, at 2:32 PM, Margie

django apps that implement ticket filtering?

2009-06-25 Thread Margie
I am trying to implement a specialized ticketing system in django. At a high level, it has many similarities to the django bug tracking system, which I believe is implemented using trac. I have coded the models models and the associated django code that lets people create their tickets. Now

Re: Django ORM exhibiting caching like behavior in a non web based daemon script

2009-06-25 Thread afrobeard
I'm using MySQL 5.1.33 I shifted the db engine to MyISAM from INNODB and everything worked like a charm. Then I switched it back to INNODB to test the pythonic workarounds from http://groups.google.com/group/django-users/browse_thread/thread/e25cec400598c06d/55fa3724d2754013?#55fa3724d2754013

Re: MemoryError on bigs list of items

2009-06-25 Thread Frédéric Hébert
2009/6/25 Andrew Fong : > > To clarify, you're displaying a list of 1000+ models on a single page, > yes? > Yes, i will change that as soon as I could. > My understanding is that the debug_toolbar analyzes each SQL query and > keeps each result in memory before rendering

Re: Hard linking an image

2009-06-25 Thread Kevin Teague
Presumably you already have all of the data required to generate a chart on the server? If so, then store the chart data in a model, and just reference it by id. e.g. (or w/ a pretty URL: ) And create a Chart object and store it before sending out the HTML response. Then update your chart

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

2009-06-25 Thread qwcode
> If they are non mutable, is thread safety even an issue? I guess I really wanted to just say "If your intention is to use thread-safe globals..." thanks for your help on this. btw, I guess my question could have been asked in terms of whether a singleton pattern is possible... I saw that

Re: djangoplus widget

2009-06-25 Thread jhugo
I found a sample contained in a rar archive with a media file included (2 css and js) which the svn source does not have. I changed my urls, forms and base.html to reflect that from the example but when i reload the page it changes the default m2m field with a text field with a plus sign next to

Re: Handling a reusable form in multiple views

2009-06-25 Thread Rajesh D
On Jun 25, 4:43 pm, delino wrote: > Hi, > > I have a simple scenario using Django 0.96 and am looking for a > cleaner solution than what I currently have: > > I want to include a simple submission form (a few simple fields) on > most pages of my site. I have the form action

Re: Activate Admin Tutorial 2

2009-06-25 Thread Divesh Gidwani
On Jun 25, 4:49 pm, Karen Tracey wrote: > On Thu, Jun 25, 2009 at 4:29 PM, Divesh Gidwani wrote: > > > Hey Guys, > > > I'm new to Django and computer programming and am currently following > > a tutorial from this website: > >

Re: Can base.html template contain dynamic content if used by direct_to_template

2009-06-25 Thread Pete-Sitedesign
OK Thanks for that. I have worked out that the context_processors route is best for this one but the template_tags is ideal for another part I was working on. Thanks for the help. Regards Pete On Jun 25, 9:29 pm, Alex Gaynor wrote: > On Thu, Jun 25, 2009 at 3:27 PM,

Re: Hard linking an image

2009-06-25 Thread Rajesh D
On Jun 25, 9:43 am, koranthala wrote: > Hi, >     I have a chart which I generate on the fly. >     Basically, I have hard linked an image. The image src contains GET > parameters, which is used to generate the chart image via matplotlib. > The resultant image is returned

Re: Django ORM exhibiting caching like behavior in a non web based daemon script

2009-06-25 Thread Karen Tracey
On Thu, Jun 25, 2009 at 4:48 PM, afrobeard wrote: > > Thanks for the reply Alex, however I beleive I might have > miscommunicated the problem a big. The actual format of the daemon is > somewhat like this:- > > 1while True: > 2rs = Inqueue.objects.filter(processed =

Re: Django ORM exhibiting caching like behavior in a non web based daemon script

2009-06-25 Thread Craig Kimerer
Which backend are you using? If you happen to be using MySQL with InnoDB, and you haven't altered the default settings you are probably using an isolation level of REPEATABLE-READ. You can read more about that setting here

Handling a reusable form in multiple views

2009-06-25 Thread delino
Hi, I have a simple scenario using Django 0.96 and am looking for a cleaner solution than what I currently have: I want to include a simple submission form (a few simple fields) on most pages of my site. I have the form action set to '.' so that validation can be done in place and errors

Re: Activate Admin Tutorial 2

2009-06-25 Thread Karen Tracey
On Thu, Jun 25, 2009 at 4:29 PM, Divesh Gidwani wrote: > > Hey Guys, > > I'm new to Django and computer programming and am currently following > a tutorial from this website: > > http://www.zabada.com/tutorials/django-quick-start.php > I wouldn't recommend that. From a

Re: Django ORM exhibiting caching like behavior in a non web based daemon script

2009-06-25 Thread afrobeard
Thanks for the reply Alex, however I beleive I might have miscommunicated the problem a big. The actual format of the daemon is somewhat like this:- 1while True: 2rs = Inqueue.objects.filter(processed = 0).order_by('-timestamp') 3for item in rs: 4.1 processitem(item) 4.2

Re: Writing a reusable app

2009-06-25 Thread Rajesh D
On Jun 25, 9:51 am, nabucosound wrote: > Hi all: > > I am refactoring a django app to make it reusable and share it open > sourced to the world. There is a lot code which I think it is optional > and maybe not everybody will want to use, like some model fields, url >

Django contract available (200 hours estimated) £6000 GBP

2009-06-25 Thread Pete-Sitedesign
We have a contract available for offer. We have been left with a project which our programmers started (about quarter way complete) for one of our clients. Our programmers have now left us so we are left with a client wanting the project finishing. It would need someone with quite a bit of

Re: Django ORM exhibiting caching like behavior in a non web based daemon script

2009-06-25 Thread Alex Gaynor
On Thu, Jun 25, 2009 at 3:31 PM, afrobeard wrote: > > I have a problem where I'm using Django, specifically the ORM in a non > web based daemon script to process some data from a site, by setting > the environment variables respectively so that it knows where the > settings

Django ORM exhibiting caching like behavior in a non web based daemon script

2009-06-25 Thread afrobeard
I have a problem where I'm using Django, specifically the ORM in a non web based daemon script to process some data from a site, by setting the environment variables respectively so that it knows where the settings module is, etc I'm running the following query:-

Re: Can base.html template contain dynamic content if used by direct_to_template

2009-06-25 Thread Alex Gaynor
On Thu, Jun 25, 2009 at 3:27 PM, Pete-Sitedesign < peter.king.sitedes...@googlemail.com> wrote: > > On Jun 25, 9:22 pm, Alex Gaynor wrote: > > On Thu, Jun 25, 2009 at 12:23 PM, Pete-Sitedesign < > > > > peter.king.sitedes...@googlemail.com> wrote: > > > > > I want to build

Activate Admin Tutorial 2

2009-06-25 Thread Divesh Gidwani
Hey Guys, I'm new to Django and computer programming and am currently following a tutorial from this website: http://www.zabada.com/tutorials/django-quick-start.php Everything worked until the activate the admin part. My code to activate the admin in my records/urls.py is as such: from

Re: Using formfield_overrides to add TinyMCE

2009-06-25 Thread Brian Neal
On Jun 25, 2:33 pm, Pes wrote: > Hi All, > > I feel like there’s something simple I’m overlooking here. I can't > seem to get TinyMCE to work when I use the built-in widget from Django- > TinyMCE. This works if I uncomment the Media class at the bottom, but > the widget

Re: Can base.html template contain dynamic content if used by direct_to_template

2009-06-25 Thread Pete-Sitedesign
On Jun 25, 9:22 pm, Alex Gaynor wrote: > On Thu, Jun 25, 2009 at 12:23 PM, Pete-Sitedesign < > > peter.king.sitedes...@googlemail.com> wrote: > > > I want to build a site which has latest news on the side of all the > > pages, I wanted to build the pages using simple

Re: Can base.html template contain dynamic content if used by direct_to_template

2009-06-25 Thread Alex Gaynor
On Thu, Jun 25, 2009 at 12:23 PM, Pete-Sitedesign < peter.king.sitedes...@googlemail.com> wrote: > > I want to build a site which has latest news on the side of all the > pages, I wanted to build the pages using simple templates (static > content) and then reference them using the

Re: Using Signals as hooks

2009-06-25 Thread Rajesh D
On Jun 25, 12:54 am, Wiiboy wrote: > I'm a bit of a noob at Web Devlopment (as you already know if you've > read any of my posts on here). > > I've read that using hooks in key places in a website can help ease > future development.  Can/Should Django's signals be used for

Using formfield_overrides to add TinyMCE

2009-06-25 Thread Pes
Hi All, I feel like there’s something simple I’m overlooking here. I can't seem to get TinyMCE to work when I use the built-in widget from Django- TinyMCE. This works if I uncomment the Media class at the bottom, but the widget version of TinyMCE simply doesn't show up. Is there a better way to

Yet another schema managing idea

2009-06-25 Thread Dan Radez
I have been looking for a way to apply and manage my model changes to my db schema. This came out of a brainstorm yesterday afternoon. Just wanted to pass the idea through the community to see where it fits, if anywhere, upstream. The general idea is to save sqlall output from manage.py. You

Re: Need help

2009-06-25 Thread amy
I had this same problem...the user and pass were fine but no users could authenticate on any DB, regardless of settings. Turns out my issue was only that I needed to add the string "localhost" to the host parameter. It's odd since the comments specifically state to leave it blank for

Can base.html template contain dynamic content if used by direct_to_template

2009-06-25 Thread Pete-Sitedesign
I want to build a site which has latest news on the side of all the pages, I wanted to build the pages using simple templates (static content) and then reference them using the direct_to_template in the urls file. Since each template extends base how can I get base to contain the latest news or

Re: Escaping forward slashes in URLs

2009-06-25 Thread Rajesh D
On Jun 25, 12:52 pm, Andrew Fong wrote: > Question: When is it necessary to escape a forward slash? I'm dealing > with these two situations in my templates -- assume the next context > variable is a URL of some sort. > > > >

Re: Rendered output from a template tag

2009-06-25 Thread Daniele Procida
On Thu, Jun 25, 2009, Daniel Roseman wrote: >> To do this, I think I need my function to call another template to >> render it appropriately - is that correct? >The best thing to do here is to use an 'inclusion tag' Thanks, I'm looking at that now, because the solution

Re: Rendered output from a template tag

2009-06-25 Thread Daniel Roseman
On Jun 25, 6:52 pm, "Daniele Procida" wrote: > I created a simple_tag: > > def news_for_this_page(page): >     if page.entity_set.all(): # check page belongs to an entity first >         e = page.entity_set.all()[0] # first entity will be only one >         newslist =

Re: Rendered output from a template tag

2009-06-25 Thread Michael
On Thu, Jun 25, 2009 at 1:52 PM, Daniele Procida wrote: > > I created a simple_tag: > > def news_for_this_page(page): >if page.entity_set.all(): # check page belongs to an entity first >e = page.entity_set.all()[0] # first entity will be only one >

Re: Using Signals as hooks

2009-06-25 Thread Wiiboy
It works. --~--~-~--~~~---~--~~ 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

Re: Django and PyAMF - RemotingError

2009-06-25 Thread Thomas Hill
IIRC, pyAMF tries to turn all python objects into amf related ones upon output. What you may be seeing here is that querysets aren't able to make it through this conversion. Check your apache error logs for the stacktrace, if you have one, or like Randy said, set Debug = True. On Thu, Jun 25,

Rendered output from a template tag

2009-06-25 Thread Daniele Procida
I created a simple_tag: def news_for_this_page(page): if page.entity_set.all(): # check page belongs to an entity first e = page.entity_set.all()[0] # first entity will be only one newslist = [] for item in e.newsitem_set.all(): # get entity's news items

Re: Where to put form definitions?

2009-06-25 Thread Alex Gaynor
On Thu, Jun 25, 2009 at 12:12 PM, Technicalbard wrote: > > My reading of the documentation isn't clear on where form definitions > could or should be defined. Is it better to define forms inside an > apps views.py file, or should I put the form definitions into a > separate

Re: Will future Django releases support multiple databases?

2009-06-25 Thread Alex Gaynor
On Thu, Jun 25, 2009 at 10:24 AM, Tim Chase wrote: > > > Right now, Django doesn't seem to support the multiple > > databases on the same server or different servers. Will that > > feature be available out of the box for future releases? > > You may want to

Re: Why is (db) Field.form_class hardcoded to TypedChoiceField if field has choices?

2009-06-25 Thread Flo Ledermann
I am sorry folks, I just found the corresponding issue: http://code.djangoproject.com/ticket/9245 however, i would still be interested in discussing the reasons behind this - and why the patch provided in the ticket did't get applied yet ;) flo

Why is (db) Field.form_class hardcoded to TypedChoiceField if field has choices?

2009-06-25 Thread Flo Ledermann
Hi all, I am trying to implement a "FlagField" that can be used to store binary flags in a single integer value in the DB. The approach that looks most promising is subclassing Integer Field, pass in some choices as possible flags (which will be internally converted into the appropriate

MemoryError on bigs list of items

2009-06-25 Thread Frédéric Hébert
Hi there, I'm facing with a curious problem. I've an project which is hosted on three differents servers : one (my local PC) : debian lenny / python 2.5.2 / django 1.0.2 final apache 2.2.9 / mod_python 3.3.1-7 the two others (production and validation server) : OpenSUSE 11.1 / python

Where to put form definitions?

2009-06-25 Thread Technicalbard
My reading of the documentation isn't clear on where form definitions could or should be defined. Is it better to define forms inside an apps views.py file, or should I put the form definitions into a separate forms.py file and import it into the views as necessary? The latter seems more

Re: TinyMCE django admin

2009-06-25 Thread Dhruv Adhia
Hey Joost, I was just googling and came across all those old hacky ways to integrate tinymce which I finally did yesterday. Its working. But yes if its something builtin now I should go for that. However I dont know If I can easily change the properties that way for the editor. Right now in the

Escaping forward slashes in URLs

2009-06-25 Thread Andrew Fong
Question: When is it necessary to escape a forward slash? I'm dealing with these two situations in my templates -- assume the next context variable is a URL of some sort. http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Trouble with extra statement in Django 0.96

2009-06-25 Thread Realpolitik
I have since discovered that I can use the following: 585 if len(name) > 0: 586 members = MemberRole.objects.filter( Q(member__first_name = 'John') | Q(member__last_name = 'John'), 587 start_date__lte = today, 588

Re: djangoplus widget

2009-06-25 Thread jhugo
I want to use this widget instead of the default one from the many to many field but don't know how to. Do you have an example that can get me started. Thanks, - Hugo On Jun 25, 11:39 am, "Gabriel ." wrote: > On Thu, Jun 25, 2009 at 12:33 PM, jhugo

Re: djangoplus widget

2009-06-25 Thread Gabriel .
On Thu, Jun 25, 2009 at 12:33 PM, jhugo wrote: > > Hi, > > I am trying to use the ajax_m2m_widget from djangoplus but there is > very little information could anyone help me? > > Thanks, > That depends of what kind of help do you need. Please be more specific. -- Kind

djangoplus widget

2009-06-25 Thread jhugo
Hi, I am trying to use the ajax_m2m_widget from djangoplus but there is very little information could anyone help me? Thanks, -Hugo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: passing template variable to templatetags

2009-06-25 Thread plungerman
you must use the django.template.resolve_variable method: obj = Foo.objects.get(id=resolve_variable(self.id, context)) which would be called within the render method of you templatetag class, which contains the "context" from the view. On Jun 21, 10:44 pm, Joru wrote: >

Re: Will future Django releases support multiple databases?

2009-06-25 Thread Tim Chase
> Right now, Django doesn't seem to support the multiple > databases on the same server or different servers. Will that > feature be available out of the box for future releases? You may want to eavesdrop on the Django Developers group (as opposed to this Django Users group) where Alex Gaynor

Re: Sessions Not working.

2009-06-25 Thread Antoni Aloy
2009/6/25 lc : > > Production Box spec: mandrake 10.1.1,  python2.3, > libmysql15-5.0.1,   MySQL1.0,  Django 1.0. > > can't get sessions to work. My site (and sessions) works on my > development box with a more or less current version of ubuntu, when I > copy over the

Pyfacebook + Dreamhost

2009-06-25 Thread R C
Hi Everyone I cannot for the life of me get Pyfacebook to work with Dreamhost. It is a problem with the middleware and the fact that at Dreamhost you have to use fcgi (instead of mod_python for example). Any help would be greatly appreciated ERROR MESSAGE BELOW ImproperlyConfigured

Trouble with extra statement in Django 0.96

2009-06-25 Thread Realpolitik
Hello, I'm using Django 0.96 and it is not possible to upgrade to 1.1/2 yet. I am attempting to perform the following function: "Get all of the MemberRole objects filtered by start date and end date, and also filtered by the Member's (foreign key relationship) first name OR last name.

Sessions Not working.

2009-06-25 Thread lc
Production Box spec: mandrake 10.1.1, python2.3, libmysql15-5.0.1, MySQL1.0, Django 1.0. can't get sessions to work. My site (and sessions) works on my development box with a more or less current version of ubuntu, when I copy over the project to the production box it does not work. I have

Re: Get Users' Groups

2009-06-25 Thread Daniel Roseman
On Jun 25, 2:45 pm, Gil Sousa wrote: > Hi! > > I searched on documentation but I didn't see anything related with > managing users' groups, I want to do something like a "staff page" and > for that I need to get a list of groups, I need to get the NAME of > each group and I

Will future Django releases support multiple databases?

2009-06-25 Thread Thierry
Right now, Django doesn't seem to support the multiple databases on the same server or different servers. Will that feature be available out of the box for future releases? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Very bad experience in Django...

2009-06-25 Thread Karen Tracey
On Thu, Jun 25, 2009 at 9:46 AM, Chris Withers wrote: > > steveneo wrote: > > BooleanField limits only to CheckBox? But I set > > widget=HiddenField It does not report error. HTML renders > > correctly, but actually, you can not use like that?! > > Didn't you hear me:

Re: Very bad experience in Django...

2009-06-25 Thread Richard Shebora
Chris, I don't know you. But I hope your day gets a little better and your problems lighter. Sincerely, Richard On 6/25/09, Chris Withers wrote: > > > steveneo wrote: > > BooleanField limits only to CheckBox? But I set > > widget=HiddenField It does not report

Re: Very bad experience in Django...

2009-06-25 Thread Xavier Ordoquy
On Thu, 2009-06-25 at 06:43 -0700, steveneo wrote: > BooleanField limits only to CheckBox? But I set > widget=HiddenField It does not report error. HTML renders > correctly, but actually, you can not use like that?! http://docs.djangoproject.com/en/dev/ref/forms/fields/#booleanfield You

Writing a reusable app

2009-06-25 Thread nabucosound
Hi all: I am refactoring a django app to make it reusable and share it open sourced to the world. There is a lot code which I think it is optional and maybe not everybody will want to use, like some model fields, url patterns of view functions. so my initial approach is to release only the

Re: Very bad experience in Django...

2009-06-25 Thread Chris Withers
steveneo wrote: > BooleanField limits only to CheckBox? But I set > widget=HiddenField It does not report error. HTML renders > correctly, but actually, you can not use like that?! Didn't you hear me: I said go find another framework, Django obviously sucks because one new user can't get

Get Users' Groups

2009-06-25 Thread Gil Sousa
Hi! I searched on documentation but I didn't see anything related with managing users' groups, I want to do something like a "staff page" and for that I need to get a list of groups, I need to get the NAME of each group and I need to get the list of members of each group. How can I do this? I

Re: Very bad experience in Django...

2009-06-25 Thread steveneo
BooleanField limits only to CheckBox? But I set widget=HiddenField It does not report error. HTML renders correctly, but actually, you can not use like that?! On Jun 25, 11:22 pm, Chris Withers wrote: > steveneo wrote: > > I try to use Django in a new project.

Hard linking an image

2009-06-25 Thread koranthala
Hi, I have a chart which I generate on the fly. Basically, I have hard linked an image. The image src contains GET parameters, which is used to generate the chart image via matplotlib. The resultant image is returned back as 'Content-Type' = 'image/png', and thus the chart is displayed.

Re: How to use MEDIA_URL on flatpages content?

2009-06-25 Thread Panu Tangchalermkul
I think I got your concept, converting all MEDIA_URL to corresponding url before displaying. But I still curious to know where should I put this code in the project? I've been thinking and can only come up with a way, by creating a new middleware replicating FlatpageFallbackMiddleware but

Re: Django and PyAMF - RemotingError

2009-06-25 Thread Randy Barlow
Noxxan wrote: > I'm trying to place in my app an amf gateway, > so I make one gateway with code: > > #-*- coding: utf-8 -*- > from pyamf.remoting.gateway.django import DjangoGateway > > from my.views import some_view > > services = { > 'some_service.hello': some_view.get_smt, > } > >

Re: 'FileDict' object has no attribute 'startswith' '

2009-06-25 Thread Karen Tracey
2009/6/25 Harish > > I am using forms for model. > You have not provided nearly enough information for anyone to give you much useful help. The full traceback of the error, rather than just the error message, would give people much more to work with. Also some

Re: Very bad experience in Django...

2009-06-25 Thread Chris Withers
steveneo wrote: > I try to use Django in a new project. Honestly, it is very bad > experience. It looks not boosting my development speed. Today, I > almost give up and begin to look up another Python framework Go for it :-) Chris -- Simplistix - Content Management, Zope & Python

Re: How to put non-MULTIPART_CONTENT in django.test.Client.put() methon

2009-06-25 Thread Karen Tracey
On Thu, Jun 25, 2009 at 7:18 AM, Roman Vorushin wrote: > > Hello! > > I started to write tests for my RESTful web service, written in > Django. I use django.test.Client for making HTTP requests. GET and > POST methods works all right, but I didn't find any options to

Re: Very bad experience in Django...

2009-06-25 Thread Daniel Roseman
On Jun 25, 1:24 pm, steveneo wrote: > I try to use Django in a new project. Honestly, it is very bad > experience. It looks not boosting my development speed. Today, I > almost give up and begin to look up another Python framework > > One question,  does anyone use a

ANNOUNCE: django-saas-kit, django-subscriptions and django-prepaid

2009-06-25 Thread Zed
Hello all: While working on my current project we end-up developing some re- usable django app and I hope some of you will find it useful and maybe even contribute some patch :) Currently it only supports PayPal using django-paypal. To get everyone started we have put together a django- saas-kit

  1   2   >