Ian wrote:
> I am .Net developer looking to switch over to Python.
>
> I have started looking at Django and was wondering if there is a
> widget equivalent to ASP.Net's GridView in terms of richness of
> functionality.
What does ASP.Net's GridView do?
Regards,
--
Christian Joergensen
http://w
Build A Website For Free
Build Your own website without knowing HTML.Web Desining Software For
Free.
http://webhostlink.blogspot.com/
Low Cost Web Hosting Services
Cheapest Indian Domains .COM,.NET,.ORG and .INFO Are Avai
You are searching an UI Widget, is that right?
Django doesn't provide any builtin UI stuff, except the templatetages.
But you could try some of the following JavaScript libraries which
inculde UI stuff:
http://jquery.com/ with http://ui.jquery.com/
http://dojotoolkit.org/
http://extjs.com/ (i th
I'm not sure if this is a bug or an error on my part. Any ideas will
be appreciated. I am able to input the first three lines of this into
the database before I get this error message so I'm guessing it's not
any special characters nor the line breaks - this is the same with
other similar data. Al
no i need it for the main/base app that am building
On Jun 5, 2:44 am, "Juanjo Conti" <[EMAIL PROTECTED]> wrote:
> For the admin app?
>
> On Wed, Jun 4, 2008 at 4:08 PM, Mayank Dhingra <[EMAIL PROTECTED]> wrote:
>
> > Hi Guys,
>
> > I needed a work around to add custom css in the default(oldform
Hi,
qs1 and qs2 are 2 combinable query sets.
qs1 & qs2 resutls in qs2 (the larger set) where it should give the
intersection, and
qs2 & qs1 raises KeyError.
And here are the details:
The query representing qs1 is:
SELECT "notes_note"."id", "notes_note"."title", "notes_note"."slug",
"notes_n
Thanks a lot, works.
I want make a m2m relation with attribute.
Is possible use "filter_horizontal" or other widget for admin?
For example:
class Player(models.Model):
.
class Match(models.Model):
day_match = models.DateTimeField()
.
clas
On Wed, Jun 4, 2008 at 6:31 PM, tyman26 <[EMAIL PROTECTED]> wrote:
> Unless I am really mistaken, I am pretty sure this is a bug. The
> "self.step" variable in "wizard.py" is never being updated after the
> forms are submitted. These are two possible fixes I found:
This is a known bug already,
hi all
is it possible to serve static files from the root of a domain name? these
files would either be served by apache or runserver from the static
directory as defined in the settings.
my goal is to use some static files for the main entrance to a web site and
have several django apps, all wit
www.freeservice6.blogspot.com
--~--~-~--~~~---~--~~
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 [EMA
On Thu, Jun 5, 2008 at 5:22 PM, alessandro boschi
<[EMAIL PROTECTED]> wrote:
>
> Thanks a lot, works.
> I want make a m2m relation with attribute.
> Is possible use "filter_horizontal" or other widget for admin?
The patch you are referencing is a work in progress; if your read the
comments on the
Hi all,
I was digging a problem where a "can't adapt" error is returned during a
save of a new object.
Looking at the trace (http://www.e-den.it/misc/adapt.png) we perfectly see
that the sql parameter is None even if the function that called it is:
if db_values:
cursor.execute("I
Can the function called by @user_passes_text get any extra argument
except user? Like request maybe?! I'm thinking of using the decorator
on a view function but I need variables from request to determine if
the user is granted access or not.
Thanks
--~--~-~--~~~---~--~
Ian wrote:
> I have started looking at Django and was wondering if there is a
> widget equivalent to ASP.Net's GridView in terms of richness of
> functionality.
I haven't seen anything like this implemented in django, and presumably
the reason for that is django lacks anything like ASP.NET's View
Thanks
2008/6/5 Russell Keith-Magee <[EMAIL PROTECTED]>:
>
> On Thu, Jun 5, 2008 at 5:22 PM, alessandro boschi
> <[EMAIL PROTECTED]> wrote:
>>
>> Thanks a lot, works.
>> I want make a m2m relation with attribute.
>> Is possible use "filter_horizontal" or other widget for admin?
>
> The patch you
Hi,
I'm trying to set up a development environment under Debian which
makes use of fastCGI. The problem I'm having is that I would like to
run multiple django projects on my server. If I try to wrap the
FastCgiExternalServer declaration with a vhost I get the following
error:
FastCgiExternalServ
Dear List
I hate having to remove the spam emails that come through the Django mailing
list! Is there anything we can do it?
James
--
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com
--~--~-~--~~~---~--~--
Hallo Django Users,
I'm experiencing some problems with the url pattern configuration for
IE.
When we wanted to put a django application into production one of our
testers found a problem in IE which i couldn't found the answer to.
My url patterns are the following
(r'^$','services.serviceAuth.v
I don't know if it's the correct way to deal with it, but adding a line ilke
that one:
('','djangoshots.root.index'),
into my urls.py allowed me to match an empty request to a specific
controller.
But, the drawback is that any invalid urls are matched by it too.
Oh, and it need to be the last one.
hi
place(or move) FastCgiExternalServer... line outside
On 6/5/08, dystopia <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I'm trying to set up a development environment under Debian which
> makes use of fastCGI. The problem I'm having is that I would like to
> run multiple django projects on my serve
On 6/4/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> You can use Q objects to preform OR queries. So it would look like
> this:
>
> from django.db.models import Q
> games = Game.objects.filter(Q(home_team=searchTeam) |
>
> Q(away_team=searchTeam)).filter(game_date__range(date_form.cleaned
themplatetag + django session (or caching), you can maintain state of
variable.
I have a change to look at ASP.NET. For my understanding, it automatically
generate
Javascript for developer, good if dont want to deal with javascript, for me
it is bad idea.
ViewState, it keep state data in memory (
My model has a ForeignKey that renders as a SELECT field in HTML. The
problem is that there's an empty value ('-') that I would like
to hide. I've tried adding 'null=False' and 'blank=False' to the
ForeignKey but the empty value still appears. Any suggestions?
2B
--~--~-~--~~-
On Jun 5, 2008, at 9:34 AM, Chatchai Neanudorn wrote:
> themplatetag + django session (or caching), you can maintain state of
> variable.
>
> I have a change to look at ASP.NET. For my understanding, it
> automatically
> generate
> Javascript for developer, good if dont want to deal with javas
Hi all!
As I can see in the docs,
django.views.generic.create_update.delete_object needs a
post_delete_redirect parameter.
Isn't it possible to redirect to the referrer, if the parameter is not
given? It would make sense IMHO.
The other thing, that annoys me, that I cannot easily check
permissi
On Thu, Jun 5, 2008 at 7:37 AM, James Matthews <[EMAIL PROTECTED]> wrote:
> I hate having to remove the spam emails that come through the Django mailing
> list! Is there anything we can do it?
Yeah, spam is annoying.
> James
>
> --
> http://search.goldwatches.com/?Search=Movado+Watches
> http://
Hi Richard and Rishabh,
Thanks for your help.
Actually, I want all fields to show up as a textarea with 40
columns. :} So I guess I just have to define each field separately
without using inheritance. Which is a pity. It's a solution, though.
Bye,
Wim
On 4 jun, 17:50, "Rishabh Manocha" <[EM
Hello everyone,
Django is great. But I am experiencing a problem when trying to log in
to my site using Internet Explorer.
When I go to:
http://85.214.104.194:8098/accounts/login/
logging in works as it should.
However, at:
http://www.jouwadresboek.nl/
, which is hosted at Strato and forwarded
Hi,
I have been playing with Django for about a week, and I am really
impressed. I love python, but had previously been using php for my web
apps (LAMP). This is a big step forward :)
I have been having a few problems though...
I would like to use the 'add another' popup functionality (that is
It doesn't work in Firefox either. I get a "Please enable cookies and
try again" message. I suspect your problem is that the cookie has
85.214.104.194 as its domain, but the browser thinks it is on
www.jouwadresboek.nl, so it never returns the cookie.
I was wondering how you were doing "redirecti
Sigh, brain fart.
impeded => embedded
--~--~-~--~~~---~--~~
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 emai
hey -
I'm new to Django so bear with me and thank you in advance for any
help you can lend. I can't seem to get my hands around the model/form/
view/template thing. I LOVE the idea but you have to understand i'm a
MS ASP programmer who is switching over to python.
Now with that being said here
On Jun 5, 7:36 am, Berco Beute <[EMAIL PROTECTED]> wrote:
> My model has a ForeignKey that renders as a SELECT field in HTML. The
> problem is that there's an empty value ('-') that I would like
> to hide.
Presuming you are using newforms (i.e. not the Admin), then override
the ModelChoic
> .MS ASP programmer who is switching over to python.
I can't decide to be happy for you or to run screaming from the taint. But OK.
I did some ASP work for a very, very brief moment. Unpleasant.
> ... can't... figure out how to make it all work together in a land of joy and
> >joyness (i
Bobby, did you work through the tutorials on the djangoproject web site,
or some of the other Django tutorials available on the web? They can
seem like slow going sometimes, but if you take your time going through
them they can help a LOT!
Bobby Roberts wrote:
> hey -
>
> I'm new to Django so
Hi,
It seems familiar to an issue I had last week.
Can we see the function in your views file? I am guessing that you need
to instantiate your ziplookup object or something (I think this is what
I did wrong). Try changing {{ form.as_table }} to {{ form }}, just to
see what it prints...
I could
yeah i'm looking at chapter 7 now to try to understand forms
On Thu, Jun 5, 2008 at 11:47 AM, Daniel Mahoney <[EMAIL PROTECTED]> wrote:
>
> Bobby, did you work through the tutorials on the djangoproject web site,
> or some of the other Django tutorials available on the web? They can
> seem li
Forms are quite confusing in django. When trying to find help on the
interweb last week I came across this that made me giggle:
http://leahculver.com/2007/04/23/django-forms-im-dumping-you/.
After a day or two of getting cross, I eventually stamped my feet and
insisted on having our work version
Hi Em -
I'm taking baby steps at the moment and simply don't understand how the
form.as_table works... ie when i put that in the template (see my template
below), how does it know which form to show?
BR
On Thu, Jun 5, 2008 at 11:50 AM, Emily Rodgers <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> It s
On Jun 5, 8:50 am, "Emily Rodgers" <[EMAIL PROTECTED]> wrote:
> IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to an
Andre Meyer wrote:
hi all
is it possible to serve static files from the root of a domain name?
these files would either be served by apache or runserver from the
static directory as defined in the settings.
Yes this is possible.
You don't want to have django serve static files if its running
ah. Right we need to see the view func then ;) as_table is a method of a
form class. You need to call it on an instance of the form object.
def myFormFunc(request):
title = 'This is My Form'
if request.method == 'POST':
foo = MyForm(request.POST) # foo is now an instance of MyForm
> -Original Message-
> From: django-users@googlegroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Peter Rowell
> Sent: 05 June 2008 17:08
> To: Django users
> Subject: Re: forms - WTF
>
>
> On Jun 5, 8:50 am, "Emily Rodgers" <[EMAIL PROTECTED]> wrote:
>
> > IMPORTANT NOTICE: The c
Admin or some kind of group moderator should take care of it.
Yesterday i saw some nasty postings by some one.
Please, some one should monitor and stop it
Regards
On Thu, Jun 5, 2008 at 6:07 PM, James Matthews <[EMAIL PROTECTED]> wrote:
> Dear List
>
> I hate having to remove the spam emails t
I agree, there's a lot of annoying and ridiculous emails that come
through this list. I'm on several that are all worthwhile to read,
but this is the only one with this kind of problem. Maybe ask the
helpful folks at gnu how their lists manage to not have the extra
trash in their emails.
On Thu,
Hello,
I try to deserialize Json.
--
data = request.POST['configuration']
print data
for obj in serializers.deserialize("json", data):
print obj
--
I read this with great interest. It actually will save me time on my
project. I will be encountering this behavior shortly. Thank you!
Please, please submit a bug report on this with all the details here.
If people do not submit bug reports future user of Django will
eventually have the same prob
Guys, this has been covered before, multiple times. But once more, with feeling:
* The list is run through Google Groups, so Google's spam filtering is
what's applied.
* The way to train Google's spam filter is to use their spam-reporting
mechanism.
* The alternative to this is to start moderatin
On Wed, Jun 4, 2008 at 4:35 PM, John M <[EMAIL PROTECTED]> wrote:
>
> Well, thank God you took a look at the code and agreed on my
> findings. I'll just adjust my urls.py for now.
>
> Should I submit a bug report? (it'd be my first :) )
>
> Thanks again for your time on this, I'm glad it was a b
Hi Em -
Thanks for that... i think it's helping me understand. I've got the form to
where it submits now and it makes sense. Now i just have to figure out how
to do something with the form.
until later
Thanks again!
BR
On Thu, Jun 5, 2008 at 12:12 PM, Emily Rodgers <[EMAIL PROTECTED]>
wrot
One thing to note is that if your form is 'foo', calling
foo.__str__(), foo.as_table() and print foo all do the same thing, ie
the table output is the default __str__ output, and in your template,
{{foo}} and {{foo.as_table}} will produce exactly the same HTML.
Also, in Emily's view here, th
Here is a sample configuration from one of my sites (domains and paths
are altered):
FastCGIExternalServer /var/www/myproject/fcgidummyfile.fcgi -host
127.0.0.1:3044
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com
Alias /stat
You might check this out. I think it would get you part-way there.
http://marinho.webdoisonline.com/blog/p/153/
--
Brooks
On Jun 4, 2:40 pm, "Juanjo Conti" <[EMAIL PROTECTED]> wrote:
> I am trying to implement an ajax-widget with JQuery to handle simple
> and multiple select that retrives optio
Hi, I have problems making {% url %} work.
I have this urls.py file in my project directory:
from django.conf.urls.defaults import *
urlpatterns = patterns('root',
(r'^blog/', include('blogapp.urls')),
(r'^admin/', include('django.contrib.admin.urls')),
)
then in my applicatoion folder,
Hello,
lately I installed a middleware to track user activity on my website
(mainly code from this blog post
http://whijo.net/blog/brad/2007/07/19/statistics-logging-django.html)
I use the following middleware classes:
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
It turns out that Django doesn't like '/' or ':' in the primary key.
Not sure why but that's just the way it is.
On Jun 4, 6:55 pm, puff <[EMAIL PROTECTED]> wrote:
> I'm having some difficulty with the admin interface that has me
> stumped and could use a clue or two.
>
> I've a table that looks
Armandas,
The url patterns are not sent within the HttpResponse and therefore not
passed to the template context. What exactly are you trying to do ?
Porbably, it's just a small fix on your views .
[]s!
Tkm
On Thu, Jun 5, 2008 at 3:40 PM, Armandas <[EMAIL PROTECTED]> wrote:
>
> Hi, I have pr
Hi, Bruno, thanks for a reply.
I'm trying to get a path by which a certain function is accessed.
http://www.djangoproject.com/documentation/templates/#url
This is a docstring from {% url %} tag function, which explains
everything nicely:
Returns an absolute URL matching given view with its para
Armandas,
I didn't know the templatetag...
Anyway, I'm not sure if I understood what you really need. Do you need to
know what was the url accesseb by the user ? I know it's possible using the
request object on your view. Something like : request.get_full_path() .
If I still didn't help, add me
i've got two templates in the same directory. My css works fine on
one template but not the other. My link to the css is
Can you think of any reason it would work fine for one template and
not the other when the templates are in the same dir?
BR
--~--~-~--~~~-
> * The way to train Google's spam filter is to use their spam-reporting
> mechanism.
I know it's not your job to be my google tutor, but if one sees the
list through google groups, how would one do that?
--~--~-~--~~~---~--~~
You received this message because you
I've read the caching documentation several times, but must be missing
some fine points. If I have
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
set, does per-view or template fragment caching override that?
In general, I don't want to cache for logged-in users, but I have some
things that could safely
There is a little "more options" link .. has a "report this message"
option in there. You might need to be registered thou.
I find it easier using the "bulk" email as you just get the headers
and can quite easy skip the spam with out getting every message in
your inbox.
On Jun 5, 8:54 pm, "[EMAIL
Hi Bobby,
If you are referring to the media url that should be available via the
context processor, then the variable in your template should be:
{{ MEDIA_URL }}
Unless you specifically are defining 'media_url' in your view.
Hth,
Aaron
Bobby Roberts wrote:
> i've got two templates in the same
Chances are that one of the views isn't passing the media template
context processor to the template.
= Andrew
Bobby Roberts wrote:
> i've got two templates in the same directory. My css works fine on
> one template but not the other. My link to the css is
>
>
>
> Can you think of any reas
Can't help you with your code below, you might want to provide the
errors, and the import stmts.
For JSON I use simplejson: http://code.google.com/p/simplejson/
hope that helps.
On Fri, Jun 6, 2008 at 5:02 AM, mwebs <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I try to deserialize Json.
>
>
I have implemented this by looping through the form fields in a generic form
creation function. Not sure if it is the 'proper way' but it works very
well for me.
-richard
On 6/5/08, Wim Feijen <[EMAIL PROTECTED]> wrote:
>
>
> Hi Richard and Rishabh,
>
> Thanks for your help.
>
> Actually, I wan
Hi andrew. I've got the
from django.template import Context, Template line at the top of the view.
How do i pass the media template contact processor to the template?
BR
On Thu, Jun 5, 2008 at 4:20 PM, Andrew Ingram <[EMAIL PROTECTED]> wrote:
>
> Chances are that one of the views isn't passin
On Jun 3, 2008, at 6:39 AM, [EMAIL PROTECTED] wrote:
> i write \dt and get "no relations found". what does this mean? i
> create a database(even three) before.
It means that there aren’t any tables in that database yet. It
possible that the tables are in another database running on the same
hi Aaron -
my template includes this link to the css
my view is:
from django import http
from forms import ziplookup
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.template import Context, Template
def pr
On Thu, Jun 5, 2008 at 6:05 PM, James Bennett <[EMAIL PROTECTED]> wrote:
>
> * The way to train Google's spam filter is to use their spam-reporting
> mechanism.
One way to *completely waste your time* is to use their spam-filtering
mechanism. I am absolutely not the only group member who flags e
If you're using render_to_response you'll want to do something like this:
return render_to_response('my_template.html',
my_data_dictionary,
context_instance=RequestContext(request))
The last bit is the important part, it creates context data
How exciting, im actually getting involved (via Karen of course),
I'll submit today and put the ticket number back here.
Thanks so much.
John
On Jun 5, 10:28 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Wed, Jun 4, 2008 at 4:35 PM, John M <[EMAIL PROTECTED]> wrote:
>
> > Well, thank
Hi,
I have a new problem wit mysql and the character set, especially wit
the use of the trema (umlaut, diaeresis, whatever) and other special
characters. The strange thing is, it is only since a week or so,
because i have evidence it worked before. The problem is there with
all models.
So what c
Ticket 7379 http://code.djangoproject.com/ticket/7379
On Jun 5, 2:41 pm, John M <[EMAIL PROTECTED]> wrote:
> How exciting, im actually getting involved (via Karen of course),
> I'll submit today and put the ticket number back here.
>
> Thanks so much.
>
> John
>
> On Jun 5, 10:28 am, "Karen
What version of django are you using?
On Jun 5, 5:06 pm, eelcoh <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a new problem wit mysql and the character set, especially wit
> the use of the trema (umlaut, diaeresis, whatever) and other special
> characters. The strange thing is, it is only since a w
I'm using Django's free comments app for my site's blog app, but am
getting a lot of broken link errors like the following:
Referrer:
http://patrickbeeson.com/blog/2007/nov/06/rank-most-read-time-spent-not-page-view/
Requested URL: /comments/postfree/
User agent: Mozilla/4.0 (compatible; MSIE 6.
> does per-view or template fragment caching override that?
>From looking at django/middleware/cache.py, I would say that the view
(and therefore the template) never get a chance to override. This
check is done early in the request processing cycle, even before URL
routing is performed.
Peter
On Jun 6, 12:21 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> What version of django are you using?
Django version 0.97-pre-SVN-7574
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
Hi,
Is there a way to put a sign, e.g. a start * beside the compulsory fields in
the Django Admin interface? Imagine you have a big table accommodating all
kinds of events from a 20 minute casual drink to a multi day conference. The
page for programming the multi day conference will put off user wh
Cliff Liang Xuan wrote:
Hi,
Is there a way to put a sign, e.g. a start * beside the compulsory fields in
the Django Admin interface? Imagine you have a big table accommodating all
kinds of events from a 20 minute casual drink to a multi day conference. The
page for programming the multi day confe
On Fri, Jun 6, 2008 at 3:00 AM, puff <[EMAIL PROTECTED]> wrote:
>
> It turns out that Django doesn't like '/' or ':' in the primary key.
> Not sure why but that's just the way it is.
>
> On Jun 4, 6:55 pm, puff <[EMAIL PROTECTED]> wrote:
>> I'm having some difficulty with the admin interface that
Hi Jeff,
Thanks a lot for you reply. I guess now I need to look into how to set
my own forms and views.
Do you know some good tutorials online? I guess this official one
should be what I look at first: http://www.djangobook.com/en/1.0/chapter17/.
Best regards,
Cliff
On Jun 6, 12:41 am, Jeff Ander
I am using newforms admin and need to be able to have a validation
check against multiple fields on the form. I was reading that all you
need to do is to go
form_change = MyCustomForm()
from within your subclass of admin.ModelAdmin
however it seems like this has changed since the post that I re
This is because the django.contrib.comments app still uses hardcoded
links in its code.
A quick and dirty workaround would be to setup a redirect from /
comments/postfree/ to /your/comment/posting/url/ , but thats not quite
nice.
You could also fix the source code or copy&paste the comments app
On Jun 5, 6:22 pm, Peter Rowell <[EMAIL PROTECTED]> wrote:
> > does per-view or template fragment caching override that?
>
> From looking at django/middleware/cache.py, I would say that the view
> (and therefore the template) never get a chance to override. This
> check is done early in the reques
On Thu, Jun 5, 2008 at 3:05 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I've read the caching documentation several times, but must be missing
> some fine points. If I have
> CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
> set, does per-view or template fragment caching override that?
If you have
Hi,
I have a VPS with DirectAdmin Control Panel for shared hosting. I want
know which module is the better solution for get django running in my
server without eat all my resources and under my scenario.
mod_wsgi ???
mod_python ???
mod_fastcgi ???
And if some one have some knowledge about insta
88 matches
Mail list logo