Wiadomość napisana w dniu 2009-01-14, o godz. 18:42, przez Tim:
> I am using the messages framework to notify users when another user
> has commented on their profile or on an item they've posted. I was
> pretty excited to see that such an infrastructure was included with
> the authentication sys
Wiadomość napisana w dniu 2009-01-14, o godz. 23:45, przez Briel:
> All you need is to create the db-file, and then give the name/path to
> it in settings.py
Syncdb will create it for you if not exists.
--
We read Knuth so you don't have to. - Tim Peters
Jarek Zgoda, R&D, Redefine
jarek.zg..
Many thank! I didn't know, that I can simply call methods of python
objects inside a template. This make things realy easy!
--
Manfred.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
The parent object knows about all it's children. Each parent instance
has a 'manager' for the set of children, like
parent_instance.mychildren_set.
More exactly:
activity = Activity.objects.get(id=someid)
activity_parts = activity.activitypart_set.all() # you can use .filter
() etc.
And I'm not
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE caliber.settings
PythonDebug On
PythonPath "sys.path + ['C:/projects/']"
2009-01-15
孙科
发件人: Malcolm Tredinnick
发送时间: 2009-01-15 14:24:47
收件人: django-users
i mean
i have a model m, and m has a field fd.
so i can wrote like
xx = m.fd
m.fd = xxx
but, when i got a string s = "fd"
how could i do the same as above?
i've tried m.__dict__[s], but it seems read only
thanks for any help...
--~--~-~--~~~---~--~~
You
I'm building a CMS system in django, and in the admin I need to be
able to inspect a template to see what nodes it contains.
(specifically, I'm searching for a custom template tag related to the
CMS)
Using
from django.template.loader import get_template
t = get_template("test.html")
print t.node
I would like to run a thread for an entire Django project. I would
like to house the code that starts this thread up inside an
application.
Currently I placed the code in the '__init__.py' in the root of my
Django application, but when I start the server using 'runserver' is
seems to run this cod
I would like to run a thread for an entire Django project. I would
like to house the code that starts this thread up inside an
application.
Currently I placed the code in the '__init__.py' in the root of my
Django application, but when I start the server using 'runserver' is
seems to run this cod
Hi all,
For those watching trunk, revision 9742 added aggregate support to
Django. (Yay!)
The short version is that Querysets now have two additional operations
- annotate() and aggregate(). For details on how to use these new
operations, see the documentation:
http://docs.djangoproject.com/en/
Hy all,
I'm trying to replicate a existing project database as a conceptual
test.
I started off with creating a few models and I thought about ways on
how I could link and/or organise them. As I'm just starting to learn
django and python and my basic database knowledge is restricted to MS
produc
Hi,
I use a formWizard for a signup process:
url(r'^signup/student/$', SignupStudentWizard([SignupForm,
StudentForm]),
{'extra_context':{"type":"student"}}, name='signup_student',),
Now, used as it is it works fine.
However in one case i need to pass extra_context data at run_time,
On Thursday 15 Jan 2009 5:35:56 pm _Sebastian_ wrote:
> I head a search and came across
> http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.i
>bm.ddi.doc/ddi27.htm
basically you would need to read up on the first three normal forms, try to
implement them and then break th
Kenneth,
thank you for your reply.
Could you elaborate on what you mean with 'then break them a bit for
speed'?
- seb
On Jan 15, 11:22 pm, Kenneth Gonsalves wrote:
> On Thursday 15 Jan 2009 5:35:56 pm _Sebastian_ wrote:
>
> > I head a search and came across
> >http://publib.boulder.ibm.com/i
On Thursday 15 Jan 2009 6:04:13 pm _Sebastian_ wrote:
> Could you elaborate on what you mean with 'then break them a bit for
> speed'?
well, 3 normal forms is the ideal - but we live in a real world. So after
normalising the database, it is often found that repeating a field, or adding
a field
On 15 jan, 12:02, Greg wrote:
> I'm building a CMS system in django, and in the admin I need to be
> able to inspect a template to see what nodes it contains.
> (specifically, I'm searching for a custom template tag related to the
> CMS)
> Using
>
> from django.template.loader import get_templat
On 15 jan, 09:11, fallhunter wrote:
> i mean
> i have a model m, and m has a field fd.
> so i can wrote like
> xx = m.fd
> m.fd = xxx
I assume you mean "I have a model *instance* m".
> but, when i got a string s = "fd"
>
> how could i do the same as above?
As usual in Python: use getatt
On 15 jan, 13:05, _Sebastian_ wrote:
> Hy all,
>
> I'm trying to replicate a existing project database as a conceptual
> test.
>
> I started off with creating a few models and I thought about ways on
> how I could link and/or organise them. As I'm just starting to learn
> django and python and my
Hi Graham,
Thanks for the advice, i used mod_wsgi and it worked a treat, no
issues what so ever. I followed this guide for setting up django and
everything works well:
http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi
Thanks again, i've read loads of your posts and you really help a
Hi, i have one simple question, why this middleware leave transaction in
managed mode? i think this create a little hole to execute queries we
dont want to execute.
Thanks for answer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
Natural sort order is a pretty common requirement - Windows Explorer
and the Mac Finder are both examples of natural sort in action. It's
true there are lots of edge cases, but just handling letters and
digits in a human-reabable way is enough in many cases.
It seems the solution is to add a non-
Hi guys,
I'm just wondering if what I want to achieve is possible. What I'm
doing is creating a file replication application with a django front
end, and what I'm having trouble with is posting back the files to the
webpage when the backup of each file is complete.
What I want to be able to do i
Hello Wai,
Thank you so much for your help. You are right the view had to be
rewritten. My problem, however is still at the template. For some
reason the template code and the URL code aren't coming together
producing the
error message:
commodity() takes exactly 2 arguments (1 given)
Thanks a
Hi,
I just found out that you can only use one ordering key in the
ordering. Is this true? If so, what can I do to have ordering on 2
keys
instead? (short of overriding the admin, and writing my own custom
class)
Thanks,
sanrio
--~--~-~--~~~---~--~~
You receive
Sanrio, this is a known problem. See open ticket
http://code.djangoproject.com/ticket/4926
-- Scott
On Thu, Jan 15, 2009 at 11:21 AM, wrote:
>
> Hi,
>
> I just found out that you can only use one ordering key in the
> ordering. Is this true? If so, what can I do to have ordering on 2
> keys
Hello, I pickled a dictionary and stored it in my database like this:
article.rating = article.rating + 1
ratings[request.user.username] = 1
article.rating_list = pickle.dumps(ratings)
article.save()
ratings looks like this:
{'froob': 1, 'alik': 1, 'teth': 1}
When I try and load the pickled stri
Hi,
not sure the subject said exactly what I want but I tried ;) I'm not a
web app/django expert so I hope you'll understand our problem.
Let me first describe our system very quickly :
-On one side we have customers publishing content (text + images)
-On the other side, consumers, seeing and usi
I have this model (bits omitted for brevity):
class Photograph(ImageModel):
title = models.CharField(_('title'), max_length=100, unique=True )
class Lightbox(models.Model):
photographs = models.ManyToManyField('Photograph',
related_name='lightboxes
I would not use a dict like that, just uses more memory, I would
create a ArticleVote models, something like
http://dpaste.com/hold/109437/
I also show how I would use it in the views
Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg.com
On Thu, Jan 15, 2009 at 9:17 AM, teth wrote:
>
> H
I have just recently started using forms. I was avoiding them because
I thought they were not very DRY, but discovered I need them for added
flexibility such as displaying field lengths for example.
Anyway, I have created a Form for a Survey object that I use. If I go
to my edit page for a Survey
On 15 jan, 17:17, teth wrote:
> Hello, I pickled a dictionary and stored it in my database like this:
> article.rating = article.rating + 1
> ratings[request.user.username] = 1
> article.rating_list = pickle.dumps(ratings)
> article.save()
>
> ratings looks like this:
> {'froob': 1, 'alik': 1, 't
On 15 jan, 17:17, kaskado wrote:
> Hi,
> not sure the subject said exactly what I want but I tried ;) I'm not a
> web app/django expert so I hope you'll understand our problem.
>
> Let me first describe our system very quickly :
> -On one side we have customers publishing content (text + images)
On 15-Jan-09, at 9:35 AM, Peter Bailey wrote:
> Anyway, I have created a Form for a Survey object that I use. If I go
> to my edit page for a Survey, everything works perfectly. If I go to
> do a simple add new (like right out of the docs), I always receive an
> error "NoneType' object is not cal
On 15-Jan-09, at 8:49 AM, JonUK wrote:
> how do iterate the LightboxPhotograph objects for a given instance of
> LightBox?
lightbox.lightboxes
should work
http://docs.djangoproject.com/en/dev/topics/db/queries/#following-relationships-backward
Cheers
--
Andy McKay
ClearWind Consulting:
Hallöchen!
teth writes:
> [...]
>
> When I try and load the pickled string from the database it gives me
> the following error:
> KeyError at /article/testing123/up/
> '\x00'
I do the same thing, and I remember that I was forced to write
"pickle.loads(str(database_text))" (note the str()). How
Hi,
I have been working on http://loudfarm.com for a long time. If you are
looking for a better way to find live music events in the bay area this site
is it. Any feedback is welcome.
Thanks,
Alex Kessinger
--~--~-~--~~~---~--~~
You received this message becau
Thanks, but that gives me:
AttributeError: "'Lightbox' object has no attribute 'lightboxes'"
--~--~-~--~~~---~--~~
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@go
On Jan 15, 5:35 pm, Peter Bailey wrote:
> I have just recently started using forms. I was avoiding them because
> I thought they were not very DRY, but discovered I need them for added
> flexibility such as displaying field lengths for example.
>
> Anyway, I have created a Form for a Survey objec
I like the design. Thanks Alex.
-jason
On Thu, Jan 15, 2009 at 1:08 PM, alex kessinger wrote:
> Hi,
> I have been working on http://loudfarm.com for a long time. If you are
> looking for a better way to find live music events in the bay area this site
> is it. Any feedback is welcome.
>
>
>
ping?
On Jan 12, 9:53 am, "Aaron Lee" wrote:
> Hi all and David,
>
> I followed thehttp://code.larlet.fr/doc/django-s3-storage.html
> installation and created a simple model
>
> class Avatar(models.Model):
> """
> Avatar model
> """
> image = models.ImageField(upload_to="userprof
Thanks for the tips Dan, I thought the DRY thing could not be right.
Not sure I understand tho - I originally made the form with just the
inner Meta class definition - do you do that and then override things
that need to change (e.g. where I want to use a longer TextInput
widget or whatever.
Thin
why not have two TextFields for the app, one for the approved content,
and one for the edited and unapproved content?
Write a function that overwrites the content in the approved TextField
with the item in the unapproved TextField and delete the unapproved
TextField and tie that function to a sel
I don't think you are defining the ModelForm correctly, the whole
point is that Django creates the fields for you. If you look at:
http://docs.djangoproject.com/en/dev/topics/forms/modelforms
This is the key difference between a ModelForm and a normal form:
http://docs.djangoproject.com/en/de
Thanks Andy
On Jan 15, 1:50 pm, Andy Mckay wrote:
> I don't think you are defining the ModelForm correctly, the whole
> point is that Django creates the fields for you. If you look at:
>
> http://docs.djangoproject.com/en/dev/topics/forms/modelforms
>
> This is the key difference between a Mo
lightbox.lightboxphotograph_set yields:
TypeError: "'RelatedManager' object is not iterable"
:(
--~--~-~--~~~---~--~~
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
Well I experimented with your tips Daniel, and put this in my forms
file:
class SurveyForm(forms.ModelForm):
name = forms.CharField(max_length=50, widget=forms.TextInput(attrs=
{'size':'50'}))
class Meta:
model = Survey
And it works. I assume I just add the ones above that I wa
So I am heading down the path of creating a MultiWidget with a Select
drop down list and a radio field displayed side by side. But the
problem that I am currently encountering into is that my compress
method in the MultiValueField is not being called. The odd thing is
that if I change the Select
Hello,
First I have two classes setup, Event and Deadline. Deadline has a
foreign key pointing to an Event so that events can have multiple
deadlines attached to them. Event's form is generated through
modelform, while I used
modelformset_factory(Deadline, max_num=0, extra=1,exclude=('event'))
I haven't tried this yet, but it might be what you're looking for:
http://weblog.bignerdranch.com/?p=49
/curt
On Dec 16 2008, 11:43 am, "bax...@gretschpages.com"
wrote:
> Have I lost my mind, or did I see a django coda plugin recently? Can't
> seem to find it now
--~--~-~--~~--
Hi list,
I want to have ManyToMany fields in both models to make django
generate forms with multiselect for both models.
Something like this:
class User(models.Model):
groups = models.ManyToManyField('Group', related_name='groups')
class Group(models.Model):
users = models.ManyToManyField(U
Well I can set blank=True for the fields of the Deadline, but that
doesn't feel quite correct still as now someone could potentially half
fill out a deadline and have it validate.
I'm thinking I'm going to have to just do custom validation. Is that
correct?
On Jan 15, 1:15 pm, mw wrote:
> Hell
On 15-Jan-09, at 10:09 AM, JonUK wrote:
> Thanks, but that gives me:
>
> AttributeError: "'Lightbox' object has no attribute 'lightboxes'"
Doh' sorry, reading it again, you've already got the relationship from
LightboxPhotograph to Lightbox, so thats
lightbox.lightboxphotograph_set
http://do
I'm through with tutorial , and now after step 4 I'd like to a make
a few improvements
When I assign Pool object to 'ADMIN' view I could see a very nice
interace, with pages, time line sorting ADD. EDIT DELETE.
The user's simple views provided in tutorial does not do this
finctionality
Great - thanks. I should have come here earlier!
One other slightly tricky thing that I just figured out - when
importing your Node you need to import it from django.templatetags,
not myproject.myapp.templatetags. So the following works:
from django.templatetags.myapp_tags import MyAppNode
On 15 jan, 21:41, Greg wrote:
> Great - thanks. I should have come here earlier!
Or just read the code - that's what I did FWIW !-)
> One other slightly tricky thing that I just figured out - when
> importing your Node you need to import it from django.templatetags,
> not myproject.myapp.temp
On 15 jan, 17:11, elspiko wrote:
> Hi guys,
>
> I'm just wondering if what I want to achieve is possible. What I'm
> doing is creating a file replication application with a django front
> end, and what I'm having trouble with is posting back the files to the
> webpage when the backup of each file
Maybe try a all(), filter(stuff) or get(thing)?
lightbox.lightboxphotograph_set.all()
Does that yield anything?
On Jan 15, 10:51 am, JonUK wrote:
> lightbox.lightboxphotograph_set yields:
>
> TypeError: "'RelatedManager' object is not iterable"
>
> :(
--~--~-~--~~~-
Thanks for your reply Bruno, my plan was to use AJAX anyway, as I
thought this would be the only method, I should have probably
mentioned this before, I apologise.
In which case I'm still stuck as to how to return the data. Could I
maybe have an example of how i could do this?
Thanks
Rich
--~--
Currently, I have a series of models which look something like this:
class make(model.Models):
name = models.CharField()
class model(model.Models):
name = models.CharField()
make = models.ForeignKey(Make)
class claim(models.Model):
make = models.ForeignKey(Make)
model = mod
> Or just read the code - that's what I did FWIW !-)
Tried that. In fact I'd actually tried the get_nodes_by_type method
and in hindsight I realise it failed for the reason below, but I
didn't realise that at the time.
> > One other slightly tricky thing that I just figured out - when
> > import
On Thu, Jan 15, 2009 at 2:05 PM, elspiko wrote:
>
> Thanks for your reply Bruno, my plan was to use AJAX anyway, as I
> thought this would be the only method, I should have probably
> mentioned this before, I apologise.
>
> In which case I'm still stuck as to how to return the data. Could I
> may
Dude!
Thanks so much for that. I'm humbled by you just taking the time to
think about my problem, never mind writing that much code.
I had a feeling it might have to involve threading, but as I've never
used threading before, I didn't want to drive straight in. But I'll
have a play over the week
On Jan 16, 1:40 am, peterandall wrote:
> Hi Graham,
>
> Thanks for the advice, i used mod_wsgi and it worked a treat, no
> issues what so ever. I followed this guide for setting up django and
> everything works well:
>
> http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi
More detail
I'm trying to use django.core.urlresolvers.reverse in the url method of a
custom storage manager, but I keep getting NoReverseMatch and I don't know why
so I cut everything back to the simplest case I could think of and I'm still
not getting anywhere.
My urls.py:
from django.conf.urls.defaults
whats your start_search function look like
Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg.com
On Thu, Jan 15, 2009 at 5:00 PM, Ian Cullinan wrote:
> I'm trying to use django.core.urlresolvers.reverse in the url method of a
> custom storage manager, but I keep getting NoReverseMatch and I
def start_search(request):
if request.method == 'POST':
form = SearchForm(request.POST, request.FILES)
if form.is_valid():
s = form.save()
return render_to_response('index.html', {'search': s,})
else:
raise Exception("Invalid form")
Hi,
I've inherited a django app - running on 0.96. So far, the people
before me have not created any views, and have just used the built-in
admin app to modify everything.
I want to create a view to control adding/editing records for a
specific model.
#So, I create form from the model like:
if
try
from django.conf.urls.defaults import *
urlpatterns = patterns('',
url(r'^FaceSearch/search/$', 'facesearch.views.start_search',
name="face-search'),
)
from django.core.urlresolvers import reverse
reverse('face-search')
Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg
I've gotten to the fourth part of the tutorial in my Apache/mod_python
setup, and I have run into trouble with the reverse() call in the vote
function. Like the mod_python guide, I set the Apache Location
directive to /mysite. django.root is also set to /mysite. But the
reverse() call only come
doh! its one thing being stupid... its another being stupid in front
of a big crowd of people!
if my field is readonly... it probably doesn't need a dropdown list
does it??
would still be nice to set date field text box class to vDateField to
get nice pop-up thingy!
On Jan 16, 1:38 pm, sico w
I suppose I want to know if there is anyway to customize the field
output at runtime to add properties like class, disabled etc...
Would rather not use javascript too .
On Jan 16, 1:53 pm, sico wrote:
> doh! its one thing being stupid... its another being stupid in front
> of a big crowd o
Using the url() function in patterns made it work (even without the name),
thanks!
Now I just have to make it work in my storage manager :)
-Original Message-
From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On
Behalf Of Dj Gilcrease
Sent: Friday, 16 January 2
On Jan 14, 2:53 am, Russell Keith-Magee
wrote:
> On Wed, Jan 14, 2009 at 9:34 AM, Giovannetti, Mark
>
> wrote:
>
> > Is there a way to force afixtureto be loaded first
> > when running manage.py test?
>
> > I'd like to load a content_types.jsonfixtureimmediately
> > before any other fixtures a
Hi there,
I created a model with a date field in order to have a timestamp of
when has been the last modification of the object.
As in the basic tutorial I wrote my model as:
data = models.DateTimeField ()
Wich should be in SQL:
"data" timestamp with time zone NOT NULL
(ref: http://docs.djan
http://youfindr.com/buzz
--~--~-~--~~~---~--~~
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-u
Actually, it's not the url() function that makes it work, it's specifying the
view function by name.
urlpatterns = patterns('',
(r'^FaceSearch/search/$', 'facesearch.views.start_search'),
)
works,
from facesearch.views import start_search
urlpatterns = patterns('',
(r'^FaceSearch/searc
I admit I know little to nothing about Django and Python, but I've
been charged with creating an online help system to an application
we're writing in Django. I need to have online help features like
Search, Index, Next|Previous page, etc. So something that is displayed
in a new window, and displa
On Thu, 2009-01-15 at 01:12 -0800, Jurie-Jan Botha wrote:
> I would like to run a thread for an entire Django project. I would
> like to house the code that starts this thread up inside an
> application.
Your terminology choices here are going to lead to confusion. Django has
"applications" (the
On Thu, 2009-01-15 at 04:13 -0800, coulix wrote:
> Hi,
>
> I use a formWizard for a signup process:
>
> url(r'^signup/student/$', SignupStudentWizard([SignupForm,
> StudentForm]),
> {'extra_context':{"type":"student"}}, name='signup_student',),
>
> Now, used as it is it works fine.
On Thu, 2009-01-15 at 10:35 -0800, Evgeniy Ivanov (powerfox) wrote:
> Hi list,
> I want to have ManyToMany fields in both models to make django
> generate forms with multiselect for both models.
> Something like this:
>
> class User(models.Model):
>groups = models.ManyToManyField('Group', rel
On Thu, 2009-01-15 at 11:25 -0800, mw wrote:
> Well I can set blank=True for the fields of the Deadline, but that
> doesn't feel quite correct still as now someone could potentially half
> fill out a deadline and have it validate.
Really? Did you try that. Blank means blank, not half-completed. T
On Fri, 2009-01-16 at 12:46 +1100, Ian Cullinan wrote:
> Actually, it's not the url() function that makes it work, it's specifying the
> view function by name.
>
> urlpatterns = patterns('',
> (r'^FaceSearch/search/$', 'facesearch.views.start_search'),
> )
>
> works,
>
> from facesearch.vi
Hi Bruno,
thanks for you search hints, maybe mine (database table layout...) was
not the best choice for what I was looking for.
I will give it a go again with your suggestions.
Thx
seb
On Jan 16, 1:29 am, bruno desthuilliers
wrote:
> On 15 jan, 13:05, _Sebastian_ wrote:
>
> > Hy all,
>
> >
Glad to see you
On Thu, Jan 15, 2009 at 12:16 AM, José Moreira wrote:
>
> dont go, run from the white light!
>
> 2009/1/14 Juan Hernandez :
> > yes, we are going to miss you very much ;)
> >
> > So long london!
> >
> > On Wed, Jan 14, 2009 at 10:10 AM, Marc Boivin
> wrote:
> >>
> >> Glad you let
I have an app that uses a few custom SQL calls through
connection.cursor()
as described in
http://docs.djangoproject.com/en/dev/topics/db/sql/#topics-db-sql.
However they don't display the same transaction semantics as
specified
in
http://docs.djangoproject.com/en/dev/topics/db/transactions/#top
Thanks for the explanation, but I still don't understand why it doesn't work
with function references.
For one, http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse says
"viewname is either the function name (either a function reference, or the
string version of the name, if you used
I'm starting a major project as we speak. It's a site where I can
create sub-sites for my clients in subdomains (e.g:
clientsite.mainproject.com). Just like basecamp/tons of other sites.
Many of these sites will have domains pointed at the subdomains on my
main site (e.g: www.clientsite.com -> cl
On Fri, 2009-01-16 at 14:02 +1100, Ian Cullinan wrote:
> Thanks for the explanation, but I still don't understand why it
> doesn't work with function references.
>
> For one,
> http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse says
> "viewname is either the function name (either a fu
I realize this is probably a very simple question, but I've been
trying to figure it out for days and have had no success.
I've got a data set with about 11,000 lines (CSV). I've written a
piece of Python code that parses it and defines each field with a
variable name. What I'd like to do is get
On Thu, 2009-01-15 at 19:06 -0800, andrew_dunn wrote:
> I realize this is probably a very simple question, but I've been
> trying to figure it out for days and have had no success.
>
> I've got a data set with about 11,000 lines (CSV). I've written a
> piece of Python code that parses it and defi
That makes sense now, thank you. Another item for my "things that are weird in
Python" list.
Cheers,
Ian
-Original Message-
From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On
Behalf Of Malcolm Tredinnick
Sent: Friday, 16 January 2009 1:19 PM
To: django-users
This is kind of a corner case, but I need to update many of the
records in a table on a regular basis. I decided to do this with a
manage command. (This is Django v1.0, btw.) I used something like the
following:
cursor = connection.cursor()
cursor.executemany("UPDATE rf_wxstation SET cache_time =
On Thu, 2009-01-15 at 20:32 -0800, Davepar wrote:
> This is kind of a corner case, but I need to update many of the
> records in a table on a regular basis. I decided to do this with a
> manage command. (This is Django v1.0, btw.) I used something like the
> following:
>
> cursor = connection.cur
Anyone know how to install Django on a GoDaddy (shared) hosting plan
with SSH access?
--~--~-~--~~~---~--~~
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@googlegroup
My apologies for the ambiguity of the question. At least you got my
drift.
Thanks for the advice. It gave me a better understanding of how to go
about the problem.
On Jan 16, 4:02 am, Malcolm Tredinnick
wrote:
> On Thu, 2009-01-15 at 01:12 -0800, Jurie-Jan Botha wrote:
> > I would like to run a
Resolved with unquote function in urllib
from urllib import unquote
title = unquote(request.POST.get('title'))
On Jan 15, 10:59 am, "K*K" wrote:
> Hi, All.
>
> I'm using the Ajaxmethod to post some string after encodeURI function
> processed to the Django server, How can I decodeURI in the ser
Hi all, how may i apply LiveSearch as Djago official sites do.
So far i have tried.
I have created full-text index for Listing_channels
l=Listing_channels.objects.filter(list_channel__search='Bowling')
its working but i do not want to search for particular table.
some one suggested me to inherit
I ran into this same problem but the code snippets you guys gave
weren't working. In case anyone is reading this in the future, here is
what you want:
dict([(k, [unicode(e) for e in v]) for k,v in errors.items()])
The above line will give a dictionary of field names mapping to lists
of errors.
I have this error too,
I wonder:
is a python(sqlite3 installation) problem? or a django 1.02 problem?
my ver is 2.6.1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
99 matches
Mail list logo