Stano you are inattentive,
Then you define your model User
in ManyToManyField you write Project, but it must be 'Project', in quotes.
I wrote this in my preview post.
so your model will look like this
class User(models.Model):
. # definition of User model
projects = models.ManyToMan
> You can always write the code to process File/Image fields in the view
> or just extend your form to handle them properly. I have managed to do
> so either by processing in the view or extending the form. As of now,
> all processing of all forms occur in the view and validation for file
> and im
Malcolm Tredinnick wrote:
> Perhaps read the remainder of the thread? :-)
Sorry, I was too impatient this time :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send em
On Fri, 2007-06-22 at 10:05 +0400, Ivan Sagalaev wrote:
> Malcolm Tredinnick wrote:
> > Thanks, Ilya. I'd gotten that far, too. Unfortunately, though, it isn't
> > quite that easy. Well, it is that easy for mod_python, however for WSGI
> > compliance, we can't do that (since the WSGI handler retur
Malcolm Tredinnick wrote:
> Thanks, Ilya. I'd gotten that far, too. Unfortunately, though, it isn't
> quite that easy. Well, it is that easy for mod_python, however for WSGI
> compliance, we can't do that (since the WSGI handler returns an
> iterable).
But a WSGI server calls "close()" on the ite
Malcolm Tredinnick wrote:
> One other thing that I forgot in my earlier email: it's not actually
> clear why the database connections get "lost" in the current
> implementation. We close the connection too early, but when the template
> rendering needs to access the database, it just opens a new o
I tried move Project into separate file models_project.py and in
models.py add
from models_project import Project
And in models_project.py add
from django.db import models
from models import User
but does not work too :-(
Stano.
--~--~-~--~~~---~--~~
You receiv
i have attached my json result(http://dpaste.com/12719/) and the view(
http://dpaste.com/12718/) that i use to get this result and pass it to the
html page called 'results.html' , i am trying to get all the fields to
displayed in the html page, but unable to access it, how can i use
simplejson in m
I tried this before I comment it.
But it has error:
Error: Couldn't install apps, because there were errors in one or more
models:
timetracker.tracker: name 'Project' is not defined
I think because class Project is defined after User in source code. If
I copy Project above User,
timetracker.track
On 6/21/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
> To be honest I haven't ever done anything with Django past the hello
> world examples,
Graham, thank you for frequently answering questions that fall in the
gap between Django and mod_python, especially given your more recent
work on mod_w
See: http://dpaste.com/12716/
What you can do is setup a conditional like that in your settings.py
where settings will be loaded based on your current hostname. This is
what I have been doing for quite some time now and seems to work well.
For templates, you have to set URL_PREFIX, MEDIA_PREFIX,
Hi,
Since serializer has query set as parameter. If data is not query
from database, How to construct data structure (query set) and pass to
serializer ?
Thank
Chatchai
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
On 6/22/07, Bryan Veloso <[EMAIL PROTECTED]> wrote:
>
> RE: http://code.djangoproject.com/ticket/3297
>
> I'm wondering if anybody has actually used this patch for a production
> site. If not, then I'll put off a certain feature of my site until
> later. The patch is really tempting though, so I w
On Jun 22, 1:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I have restarted apache, and I do not have those directives in my
> config files.
I'm running out of ideas. What it comes down to is that, according to
your traceback, for some reason under atlantaice the:
/djangosites/AGD/AG
I feel so stupid. Somehow the urls file from the other site got
copied over the urls file for the site having the problems.
On Jun 21, 11:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I have restarted apache, and I do not have those directives in my
> config files.
>
> On Jun 21, 9:34
I have restarted apache, and I do not have those directives in my
config files.
On Jun 21, 9:34 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Jun 22, 10:14 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Interestingly, I am getting some strange errors when trying to output
> > t
On Thu, 2007-06-21 at 20:23 -0700, dailer wrote:
> seems like a very simple example based on
> http://www.djangoproject.com/documentation/0.96/serialization/:
>
> def exportCountryCodeFixture():
> from django.core import serializers
> from mysite.models import CountryCode
>
> out = o
I've been hacking around and googling for a little while now and can't
seem to track down a solution to what should be a pretty straight
forward problem.
The situation
I'm trying to setup a nice workflow between my development environment
and my production environment. I would like t
seems like a very simple example based on
http://www.djangoproject.com/documentation/0.96/serialization/:
def exportCountryCodeFixture():
from django.core import serializers
from mysite.models import CountryCode
out = open("CountryCode.xml", "w")
serializers.serialize("xml", Coun
Hi Graham,
On Fri, 2007-06-22 at 02:44 +, Graham Dumpleton wrote:
> On Jun 22, 9:52 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
> > On Thu, 2007-06-21 at 07:45 -0700, Ilya Semenov wrote:
> > > Malcolm,
> >
> > > I traced the problem and submitted the patch, see details at
> > >http://
RE: http://code.djangoproject.com/ticket/3297
I'm wondering if anybody has actually used this patch for a production
site. If not, then I'll put off a certain feature of my site until
later. The patch is really tempting though, so I wanted to get a
better outlook of experiences before taking the
real article
http://www.real-article.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
On Jun 22, 9:52 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-06-21 at 07:45 -0700, Ilya Semenov wrote:
> > Malcolm,
>
> > I traced the problem and submitted the patch, see details at
> >http://code.djangoproject.com/ticket/4650
> > I'm not completely sure about the logic of sig
On Thu, Jun 21, 2007 at 11:04:40PM -, Rob Hudson wrote:
>
> Just following up...
>
> If you use the query string option, you don't need to know the current
> url, you can just do this:
>
> {% if has_previous %}
> Previous
> {% endif %}
Which works fine & dandy as long as you're
On Thu, 2007-06-21 at 11:42 +0200, David Larlet wrote:
> Hi,
>
> I'm proud to announce that after a few months of stagnation the french
> community is online with a new site (powered by django of course) :
> http://www.django-fr.org/
Looks great! I like the similar, but not exact, design referen
On Jun 22, 10:14 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Interestingly, I am getting some strange errors when trying to output
> the interpreter ID to my error log. Attempting to do so generates an
> error in my logs:
>
> [Thu Jun 21 20:00:23 2007] [error] [client 209.155.235.13]
> P
On 6/21/07, Tyson Tate <[EMAIL PROTECTED]> wrote:
>
>
> On Jun 21, 2007, at 5:11 PM, Noah Gift wrote:
>
> > I think your being a bit misleading. Of course you can use django
> > for a CMS. It certainly doesn't hurt that CMS was the problem
> > domain being addressed while Django was being written
On Thu, 2007-06-21 at 13:05 -0500, Tim Chase wrote:
> > I want to use some stored procedures. I am mySql. Is there
> > some way I can define stored procedures from withing django?
> > (We can call already defined procedures,
> > http://www.djangosnippets.org/snippets/118/ discusses how, but
> > c
Interestingly, I am getting some strange errors when trying to output
the interpreter ID to my error log. Attempting to do so generates an
error in my logs:
[Thu Jun 21 20:00:23 2007] [error] [client 209.155.235.13]
PythonHandler django.core.handlers.modpython: File "/djangosites/
atlantaice/s
> > Is there a way to tell Admin to use HTTPS rather than HTTP for these
> links ?
>
> I guess if you admin site was accessed over https it would work.
> Otherwise, no, since it is a relative URL (and then redirected via an
> HTTP redirect), so it has to use the same schema (and hostname) as the
Just following up...
If you use the query string option, you don't need to know the current
url, you can just do this:
{% if has_previous %}
Previous
{% endif %}
And the browser fills in the current url path minus any query string
and that just appends to it, which is kind of nice.
> I don't understand. If you're one /foo/bar/baz/page1/, then why can't
> you write as the link? It will work, is a
> well-formed URL and is independent of the prefix. Note that you must
> ensure your URLs are canonicalised if you use this system, though:
> always ending with a trailing slash, s
On Jun 21, 2007, at 5:11 PM, Noah Gift wrote:
> I think your being a bit misleading. Of course you can use django
> for a CMS. It certainly doesn't hurt that CMS was the problem
> domain being addressed while Django was being written either. Just
> take a look at 99% of the jobs on djang
> But my admin site *is* accessed through https.
> The "View on site" button links to a URL like https://[...]/admin/r/11/1/,
> but when I click on it, it redirects to http://[...]/[get_absolute_url()
> output]
I'd guess that it ends up at
http://code.djangoproject.org/browser/django/trunk/django
> I don't understand. If you're one /foo/bar/baz/page1/, then why can't
> you write as the link? It will work, is a
> well-formed URL and is independent of the prefix. Note that you must
> ensure your URLs are canonicalised if you use this system, though:
> always ending with a trailing slash, so
On Thu, 2007-06-21 at 21:10 +, Rob Hudson wrote:
> On Jun 21, 1:23 pm, Tyson Tate <[EMAIL PROTECTED]> wrote:
> > Look at "next" and "previous" context variables. You can do:
> >
> > Next
> >
> > and
> >
> > Previous
>
> Right, but it's the 'href="/url/..."' part that doesn't feel right to
> m
On 6/21/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
>
>
> On 21-Jun-07, at 11:28 PM, Geoff wrote:
>
> > unique interactive web applications, etc. current plans include a
> > python-based CMS such as django on Linux.
>
> you could also inform them that django is not a CMS - if they are
> expe
On Thu, 2007-06-21 at 10:45 -0700, Chris Brand wrote:
> I've recently been adding get_absolute_url() to my models and using it in my
> templates.
> In the documentation, it says that this also gives you a free "View on site"
> link in the Admin, which it does.
> My problem is that clicking that gi
On Thu, 2007-06-21 at 07:45 -0700, Ilya Semenov wrote:
> Malcolm,
>
> I traced the problem and submitted the patch, see details at
> http://code.djangoproject.com/ticket/4650
> I'm not completely sure about the logic of signals though, the change
> may affect some middleware depending on it.
Tha
On Thu, 2007-06-21 at 06:41 -0700, greg wrote:
> Hi,
>
> Please help me !
>
> I just wanna know how to order my queryset by lowering my field
> before, like in SQL (ORDER BY LOWER(my_field) 'cause in this field
> I've upper et lower case and by default my result is not sorted as I
> want.
At th
On Thu, 2007-06-21 at 16:23 +0200, va:patrick.kranzlmueller wrote:
> the code below does not give a validation error when typing umlauts,
> but the umlauts are not saved to the database.
>
> al_re = re.compile(r'^\w+$', re.UNICODE)
>
> def clean_last_name(self):
> if 'last_name' in self.c
On 21-Jun-07, at 11:28 PM, Geoff wrote:
> unique interactive web applications, etc. current plans include a
> python-based CMS such as django on Linux.
you could also inform them that django is not a CMS - if they are
expecting one, they may be in for a disappointment.
--
regards
kg
http:/
On Thu, 2007-06-21 at 07:45 -0700, Ilya Semenov wrote:
> Malcolm,
>
> I traced the problem and submitted the patch, see details at
> http://code.djangoproject.com/ticket/4650
> I'm not completely sure about the logic of signals though, the change
> may affect some middleware depending on it.
One
What is in:
atlantaice.urls
If the details in the error page are to be believed, it would look
like one of the URL mapping rules is referencing the other site.
I really wish the Django error page would show the interpreter name
when using mod_python. I guess another suggestion I should create
prefork
On Jun 21, 3:42 pm, Joe <[EMAIL PROTECTED]> wrote:
> Are you using Apache Prefork or MPM?
>
> On Jun 21, 9:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Error can be seen herehttp://beta.atlantaicecompany.com/
>
> > AGDWeb is an app in a totally separate project under the
My goal is to get a list of unique countries referenced through a
table. My model has:
class Country(models.Model):
Abbreviation = models.CharField(maxlength = 2, primary_key=True)
Country = models.CharField(maxlength = 50)
class TrainingEvent(models.Model):
Country = models.Foreign
On 6/21/07, Matthew Nuzum <[EMAIL PROTECTED]> wrote:
> My goal is to get a list of unique countries referenced through a
> table. My model has:
>
Nice typo there... the subject should be:
using .values when spanning relationships
:-(
--
Matthew Nuzum
newz2000 on freenode
--~--~-~--~-
On Jun 21, 4:54 pm, Gabriel Farrell <[EMAIL PROTECTED]> wrote:
> On Jun 19, 5:19 pm, RichardH <[EMAIL PROTECTED]> wrote:
>
>
>
> > This is probably more of a Python question than django, but django
> > provides the context for my problem.
>
> > Requirement: I have got a user defined list of fiel
On Jun 21, 1:23 pm, Tyson Tate <[EMAIL PROTECTED]> wrote:
> Look at "next" and "previous" context variables. You can do:
>
> Next
>
> and
>
> Previous
Right, but it's the 'href="/url/..."' part that doesn't feel right to
me. If I either want to (a) re-use this template for other URLs (list
view
Look at "next" and "previous" context variables. You can do:
Next
and
Previous
to get what you want, as long as you've set up the URL regexes
properly in urls.py. You'll want to surround each of the above with
an if block to check and see if you do, indeed, have a next or
previous page (
On 6/21/07, Petey <[EMAIL PROTECTED]> wrote:
> Is there a way to use the same authentication tables between multiple
> sites? I want users on one of my websites to be able to use the same
> login on another without duplicating the tables. Is this possible. I
> couldn't tell if the add-on sites mod
I've set up a list view that I want paginated and I'm using the
list_detail generic view. I was thinking that I would prefer the /url/
page2/ URL over /url?page=2 so I set that up. The problem is, in my
template where I want to display the prev/next links there's no way
that I see to avoid hard
Oops, mean to say subdomain in part 4
On Jun 21, 3:48 pm, Joe <[EMAIL PROTECTED]> wrote:
> Yes. You need to meet several conditions though:
>
> 1. Obviously, the settings files for both sites must point at the same
> database
>
> 2. The two sites can't use the same model names. If they do, they
Yes. You need to meet several conditions though:
1. Obviously, the settings files for both sites must point at the same
database
2. The two sites can't use the same model names. If they do, they
will share the data in those models as well, not just the users
tables.
3. The settings files for
Are you using Apache Prefork or MPM?
On Jun 21, 9:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Error can be seen herehttp://beta.atlantaicecompany.com/
>
> AGDWeb is an app in a totally separate project under the same
> PythonPath. It has a separate settings file.
>
> I am not using a
thanks, That solves my problem.
On Jun 21, 11:05 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> > I want to use some stored procedures. I am mySql. Is there
> > some way I can define stored procedures from withing django?
> > (We can call already defined procedures,
> >http://www.djangosnippets.org/s
Here's an add for a django programmer for a new magazine I'm not
sure what it pays, but I think it would be decent contract work that
can turn into more, I can get anyone interested in touch with the
publisher, just mail me
...snip...
Seeking Web Programmer for Indie Film Magazine Launch
> I want to use some stored procedures. I am mySql. Is there
> some way I can define stored procedures from withing django?
> (We can call already defined procedures,
> http://www.djangosnippets.org/snippets/118/ discusses how, but
> can we also define stored procedures from within django?)
I do
I am using MySQL, last subversion for django and Python 2.4.4 on
debian linux
Tested some more with date fields and it all working fine, the problem
was with datetime fields and it was my fault because I did not include
the time.
Daniel
On Jun 20, 9:03 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
the dict was supposed to be passing in the logged user, though I am
starting to think I don't need to pass anything as long as I can get
the session set.
Another developer in the office wrote the auth code so it took me a
bit to get a handle on just what it was doing.
I am thinking if i get the s
I've recently been adding get_absolute_url() to my models and using it in my
templates.
In the documentation, it says that this also gives you a free "View on site"
link in the Admin, which it does.
My problem is that clicking that gives me an HTTP page rather than the HTTPS
page which would actua
I have a model called REWARD, which has a one-to-one relationship with a
model called PROMOTION
I seem to be able to access the attributes of REWARD via PROMOTIONS but
I can't seem to update them.
promo=Promotion.objects.get(id=10)
promo.reward.user_visits
>> 10L
However:-
promo.reward.us
I'm making a task application that allows for subtasks. I have my
model set up so that it has ParentTask is a ForiegnKey('self), so
using Task.task_set.all() I can get all of the subtasks, but when I
serialize using json it doesn't show any of the subtasks. Is there
any way for me to get the sub
On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Jeremy,
>Thanks for the response.
>
> to be more clear maybe -
>i was actually trying to pass the dictionary as part of the request
> object - since the view looks for the logged participant in the
> request from the page.
>
> wh
Without seeing your code, it's hard to know what's happening. It
sounds like you're having a problem using JSON objects with
javascript, so I'll try and throw out a short example and see if that
helps. If this doesn't do it for you, put up the actual javascript
that's causing you the trouble, and
Jeremy,
Thanks for the response.
to be more clear maybe -
i was actually trying to pass the dictionary as part of the request
object - since the view looks for the logged participant in the
request from the page.
what if my view does not take a qstring? I need to pass it some
pieces in th
Hi,
I want to use some stored procedures. I am mySql. Is there some way I
can define stored procedures from withing django?
(We can call already defined procedures,
http://www.djangosnippets.org/snippets/118/
discusses how, but can we also define stored procedures from within
django?)
--~--~--
Ahhh! Thanks, didn't know (obviously) about that one!
-joe
On 6/21/07, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote:
>
> Actually, type is a function, not a method.
> type(x) == x.__class__
>
> Regards,
> Aidas Bendoraitis aka Archatas
>
>
> On 6/18/07, Joseph Heck <[EMAIL PROTECTED]> wrote:
> >
On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
...
> response = self.client.get('/broadcasts/new/',
> {'loggedParticipant': participant} )
It's not clear to me what the dictionary there is meant to do. That
dictionary is passed as the querystring, *not* as the session.
Also, i
On Jun 19, 5:19 pm, RichardH <[EMAIL PROTECTED]> wrote:
> This is probably more of a Python question than django, but django
> provides the context for my problem.
>
> Requirement: I have got a user defined list of field names (e.g.
> field_names=['id','name','description',...]) and I want to pass
I am in the process of working up my unit tests for an app set to
release pretty soon, the issue I am having is with getting the unit
tests for my views to run properly.
The issue is that in each view I have a login check for a custom login
function (we could not use the django auth system unfort
projects = models.ManyToManyField('Project',
without comments :)
stano пишет:
> Hi, I am totally new. I am trying make TimeTracker project.
> Now I am playing only with admin interface.
>
> I have this model:
>
> class User(models.Model):
> timestamp = models.DateTimeField()
> login
Malcolm,
I traced the problem and submitted the patch, see details at
http://code.djangoproject.com/ticket/4650
I'm not completely sure about the logic of signals though, the change
may affect some middleware depending on it.
--~--~-~--~~~---~--~~
You received th
Hi, I am totally new. I am trying make TimeTracker project.
Now I am playing only with admin interface.
I have this model:
class User(models.Model):
timestamp = models.DateTimeField()
login = models.CharField()
password = models.CharField()
# does not work, Project is no
Thanks.
In my project I've spent many hours learning Django, trying to
correctly implement support for i18n for everything from models to
templates (ended up using django-multlingual) and writing unit tests
(although I don't have a 100% coverage, far from it).
The site I'm building uses almost ev
On 6/21/07, Gábor Farkas <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> i have to add some forms to our django0.96-using application.
> until now i used oldforms. are the newforms the recommended way to go
> with django0.96?
0.96 was [4810]. The newforms-admin branch is using newforms
extensively and as
the code below does not give a validation error when typing umlauts,
but the umlauts are not saved to the database.
al_re = re.compile(r'^\w+$', re.UNICODE)
def clean_last_name(self):
if 'last_name' in self.cleaned_data:
if not al_re.search(self.cleaned_data['last_name']):
Yup... first, don't do it based on user agent. Guaranteed you won't
think of one, or the specs will change, or something will go belly up
on you. Do it on capability. If it's a small screen, do x, otherwise,
do y, whatever the UA is.
What really matters to you is the size of the thing, right?
So,
hi,
i have to add some forms to our django0.96-using application.
until now i used oldforms. are the newforms the recommended way to go
with django0.96?
thanks,
gabor
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
> Then using distinct() might do the trick:
>
>entries = entries.distinct()
I try this too in the past, but it doesn't work, because I want to
filter out duplicate data in column note. In the other columns might be
different values, so in query result isn't 2 or more absolutely
identical
Hi,
Please help me !
I just wanna know how to order my queryset by lowering my field
before, like in SQL (ORDER BY LOWER(my_field) 'cause in this field
I've upper et lower case and by default my result is not sorted as I
want.
Thank you so much for your answer !
--~--~-~--~~--
Error can be seen here http://beta.atlantaicecompany.com/
AGDWeb is an app in a totally separate project under the same
PythonPath. It has a separate settings file.
I am not using any Django cache, I am referring to some sort of
internal caching that mod_python is doing.
The settings file look
>> I'm not sure why you're GROUPing BY "note" as you don't have any
>> aggregate functions in play in your example code.
>
> I need grouping, because in the table could be several rows with the
> same note and I want only "unique" note results.
Then using distinct() might do the trick:
en
i've used chartdirector in the past with django, very easy to install,
although the free version cannot be used for commercial purposes.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
On 6/21/07, David Larlet <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm proud to announce that after a few months of stagnation the french
> community is online with a new site (powered by django of course) :
> http://www.django-fr.org/
I don't speak French, but this is very nice to see.
Is there an
Tim Chase wrote:
> I'm not sure why you're GROUPing BY "note" as you don't have any
> aggregate functions in play in your example code.
I need grouping, because in the table could be several rows with the
same note and I want only "unique" note results.
Regards
Michal
--~--~-~--~--
> This should be writable in a slightly more Djangoic (I suppose if
> Python code is Pythonic, Django code is Djangoic? Djanonic?
> Djangonical? Djangoish?) fashion:
>
my vote would be to user "superfly," as in:
This should be writable in a slightly more superfly fashion
>entries = Jou
> I need to write some custom SQL in Django:
>
>from django.db import connection
>cursor = connection.cursor()
>cursor.execute("SELECT note FROM journals_journal WHERE LENGTH(note)
> > 0 AND note LIKE %s GROUP BY note ORDER BY note;", [q+'%'])
>
> where q is string, for example 'fo
On 20-jun-2007, at 22:19, SanPy wrote:
> File and image uploading for newforms, AFAIK, is not implemented in
> 0.96. There is a ticket for this (#3297). If you look in the django-
> developers newsgroup and search for #3297, you will find more
> information. It is possible to have it working with
>> Is this normal? Isn't there possibility for SQL inject?
>
> No, because of the reason described in this email:
>
> http://groups.google.com/group/django-users/msg/0f3f9d729413ee32
Thak you for quick answer Malcolm.
Regards
Michal
--~--~-~--~~~---~--~~
You r
HI,
VOTE FOR TAJ MAHAL NOW, ITS IN THE FINALS FOR NEW SEVEN WONDERS OF THE
WORLD. SHOW YOUR TRUE SPIRIT FOR INDIA. ITS NOW OR NEVER.
BE A PART OF THE WORLD'S LARGEST VOTING FOR THE NEW 7 WONDERS OF THE
WORLD.
RESULT WILL BE DECLARED ON 7TH JULY 2007.
www.chulbul.com/taj.htm
DON'T FORGET TO FOR
On Thu, 2007-06-21 at 13:47 +0200, Michal wrote:
> Hello,
> I need to write some custom SQL in Django:
>
>from django.db import connection
>cursor = connection.cursor()
>cursor.execute("SELECT note FROM journals_journal WHERE LENGTH(note)
> > 0 AND note LIKE %s GROUP BY note ORDER B
Hello,
I need to write some custom SQL in Django:
from django.db import connection
cursor = connection.cursor()
cursor.execute("SELECT note FROM journals_journal WHERE LENGTH(note)
> 0 AND note LIKE %s GROUP BY note ORDER BY note;", [q+'%'])
where q is string, for example 'foo'.
I ha
Martin Winkler wrote:
> If you want do do really nice graphs, you might take a look at some
> screenshots of matplotlib:
> http://matplotlib.sourceforge.net/screenshots.html
>
> The module is quite large, but has really many functions: from simple
> pie charts (3D too) up to finance charts which
Nicolas Steinmetz a écrit :
> Nicolas Steinmetz a écrit :
> [...]
>
>> I tried this but the bug persists. Sometimes it works well (technical
>> skills are well regrouped by technical domaines) but if I refresh, it's
>> no longer the case.
>>
>> I even tried this on an easier object and it does
On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have two sites configured just like the configuration below (except
> with different ServerName directives and different
> DJANGO_SETTINGS_MODULE variables. The trouble is that Django's cache
> is confusing the two sites and is saying t
We've taken the approach using cookies. The value of the cookies is
returned to the template via a simple context processor. Each
cookie then simply refers to a stylesheet, which can change the whole
look and feel of the site. Very straightforward.
MerMer
James Bennett wrote:
> On 6/20/07
Have you restarted your webserver after updating your views? If you
are using mod_python, it sometimes shows a newer version of the code
and sometimes - the earlier.
Also install Firebug add-on for your Firefox browser and check the
requests and responses. It might show you the problem.
AJAX is as
On Jun 21, 5:46 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote
> On 21-Jun-07, at 12:50 PM, [EMAIL PROTECTED] wrote:
>
> > cache gets confused. But if I do that, the settings don't work
> > correctly and the site won't load. What am I doing wrong?
>
> you need a pythonInterpretor line in each L
The view should be like this, btw:
def photo_upload(request):
form = PhotoUploadForm()
if request.POST:
form = PhotoUploadForm(request.user, request.POST,
request.FILES)
if form.is_valid():
form.save()
json = {'status': 'success', 'message': _("Uplo
1 - 100 of 112 matches
Mail list logo