2009/6/26 sico :
>
> Hi
>
Hi
> Is it possible to rollback the transaction without raising an
> exception when the transactions are tied to http requests??
What do you mean ?
You use raw sql in a view ?
> I'm writing several records in one post call, if any fail I'd like to
> rollback the tra
Chris Withers wrote:
> 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 :-)
+1
/L
--~--~-~--~~--
Yeah, I just thought maybe I could leverage some existing code that
would support AND and OR of filters and provide an interface where the
user can add filters as needed. It seems to me that creating an
interface where you AND and OR filters is not so simple. But that's
not really a django issue
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 postressql_psycopg2 se
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 store it before
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
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 Groups
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
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 because then it will be
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
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 ar
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 in the DB:
>
> > time_end = models.TimeFi
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 installed
> Django using subver
> 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.
--~--~-~--~~~---~--~~
You
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 menus, how can I
> pass
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
view
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 message
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
"Dj
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 u
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 ways to integrate
> > tinymce which I
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 = ['name','styles
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, event
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 de
> 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
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 nam
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
> the properties that w
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 not only my session c
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
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 Wi
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] [error]
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.
--~--~-~--
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
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 I'm
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
'se
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 everything in the
> temp
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 view
> 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 someo
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 i
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 set to '.' so that
>
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:
>
> >http://www.zabada.com/tutorials/django-quick-start.php
>
> I wouldn
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, Pete-Sitedesign <
>
>
>
> p
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 back as 'Content-Type'
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 = 0).order_by('-timestamp')
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
http://dev.mysql.com/doc/refman/5.0/en/set-transaction.html#isolevel_repea
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 display
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 brief look that tutorial
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
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
> patterns of view functions.
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 Djang
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 module is, etc
>
> I'm
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:-
Inqueue.objects.filter(processed
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 a site which has latest
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 django
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 version of TinyMCE simply
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 templates (static
> > content
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 direct_to_templa
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 that
> purpose?
>
> I
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 t
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 t
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
localhost..
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 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.
>
>
>
> http://en.wikipedia.org/wiki/URL_encoding#Percent-encoding_reserved_c
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 I came up with is
also i
To clarify, you're displaying a list of 1000+ models on a single page,
yes?
My understanding is that the debug_toolbar analyzes each SQL query and
keeps each result in memory before rendering everything in the
template. I don't know how your query works, but let's take an extreme
case and say you
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 = []
> for item in e.n
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
>newslist = []
>for ite
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
django-users+unsubs
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, 2009
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
ne
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 forms.py file and imp
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 eavesdrop on the Django Developers grou
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
--~--~-~--~~~---~--~-
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 bitmasks)
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 2.6.2
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 reusabl
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 Ha
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
-~--~~~~--~~--~--~---
> you'll see it doesn't say anything about the validation behavior being
> dependent on the widget in use. So it doesn't matter what widget you use,
> if you want to be able to validate False as a valid value, then you need to
> include required=False in the form field definition.
To be complet
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 end_date_
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 wrote:
>
> > Hi,
>
> > I am trying to use the
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 Regards
--~--~-~-
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 t
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:
> Is it possible to reso
> 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 h
Hey everyone,
I was wondering the best way to isolate django models so they can be used
in other python applications. I have seen the django extensions, which are
very helpful. But a 'job' is still coupled to the django environment.
Ideally I'd like to do this:
* Write some function foo() that
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 project to the production box
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
ImproperlyConfiguredPython
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.
MemberRole:
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
ru
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 need to get the list o
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 Gro
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: I said go find another f
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 error. HTML renders
> > corr
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 sho
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 minima
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 hi
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 am
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. Honestly, it is very bad
>
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.
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 instead
1 - 100 of 124 matches
Mail list logo