On Sep 8, 5:13 am, maroxe wrote:
> Hi, When using Model class like this:
>
> class MyModel(models.Model):
> def __init__(self, *args, **kwargs):
> self.myfield = models.Field()
> super(MyModel, self).__init__(*args, **kwargs)
> It doesn't take into consideration myfield(in the
Hi,
I am newbie with python and django. I am trying out various examples in
order to learn it. I wanted to try using django- chat application.
downloaded the code from site and installed dojango as instructed. But when
i start the server it gives me an error "ImportError: No module named
django-cha
Hi, When using Model class like this:
class MyModel(models.Model):
def __init__(self, *args, **kwargs):
self.myfield = models.Field()
super(MyModel, self).__init__(*args, **kwargs)
It doesn't take into consideration myfield(in the admin form, when
saving the object... )
But if
On Tue, Sep 7, 2010 at 16:39, Henrik Genssen wrote:
> Hi,
>
> has someone a solution for tags in more than one language for the same
> entry?
> I normally use transdb (1) to archive this on char or textfields. But what
> about tags in multi languages for one entry?
>
> Has someone managed to get m
On Wed, Sep 8, 2010 at 04:27, Erskine wrote:
> After much gnashing of teeth and having looked over the code dozens of
> times I finally realized I was missing one wretched little comma in
> the HttpResponseRedirect return argument.
>
heh. The archetypal "welcome to coding" bug headfsck. I still
Ok, I'm just getting back to a project I had to put on hold for a
while.
I recently read an article on problems new Django users fall into, and
I think I hit one.
The bottom of my 'Systems' model looks like this:
keyboard = models.CharField(max_length=80)
cart = models.CharField(
You can use your own template for flatpages, see
http://docs.djangoproject.com/en/dev/ref/contrib/flatpages/?from=olddocs#flatpage-templates
Just make that menu a separate template and include it wherever you want. Of
course your flatpages template and your other templates can inherit from the
same
On Tue, Sep 7, 2010 at 8:55 PM, Goran wrote:
> I'm Django novice and I want to have some menu (top menu) which have
> some dynamically populated items. So inside home page view I have some
> variables to get these menu items. But because it's top menu I need it
> on every page on the site and i ha
Hi,
How can we dynamically add a fileField to the dynamic form. I tried
doing that using the following code but it is throwing errors.
from django import forms
class QuestionsForm(forms.Form):
def __init__(self, questions, *args, **kwargs):
super(QuestionsForm, self).__init__(*args,
On Tue, Sep 7, 2010 at 5:10 PM, Phlip wrote:
>
> Djangoists:
>
> Under runserver, when I click on an Ajaxy thing on my web site, and
> its handler throws an exception...
>
> ...the console says nothing (in DEBUG = True mode)
>
> ...and Django renders a beautiful HTML exception report
>
> ...and se
I'm using this snippet:
http://djangosnippets.org/snippets/1494/
I hope that this works for you!
On Mon, Sep 6, 2010 at 13:30, tbb wrote:
> Is there a table that translates the Google Chart API parameters to
> Django tags?
>
> The parameters for creating a chart using the Google Charts API loo
Djangoists:
Under runserver, when I click on an Ajaxy thing on my web site, and
its handler throws an exception...
...the console says nothing (in DEBUG = True mode)
...and Django renders a beautiful HTML exception report
...and sends this over the wire into my browser
...who then throws it aw
Thanks Alex,
Is there any instructions on how to set up django with PyPy you could
point me to?
Andy
On Sep 5, 7:50 pm, Alex_Gaynor wrote:
> On Sep 5, 4:40 pm, Andy wrote:
>
> > Anyone tried running Django with PyPy JIT?
>
> > What are the steps to set it up? Is it stable?
>
> > PyPy benchmar
Why not check which version of oauth you have in each place?
Even if there isn't a usable version indicator in the library, you could
generate a file containing the chacksums of all the py files, sort it, and
compare it.
On Tue, Sep 7, 2010 at 4:46 AM, Chris wrote:
> So I wrote some django unit
I apparently have a different vintage of httplib in my 2.6, since the
raise CannotSendRequest()
is on line 778.
It seems to mean reuse of an HTTPConnection object that isn't idle.
Maybe a threading problem? Does this happen with the development server?
pdb is your friend (standard advice).
Bi
Does anybody know of any tricks or patches for working with the
development server that could speed up its startup time ?
Currently if your site is large and has many modules, models, admins,
forms etc then django development time slows down dramatically.
I'm thinking that the models don't need t
I'm Django novice and I want to have some menu (top menu) which have
some dynamically populated items. So inside home page view I have some
variables to get these menu items. But because it's top menu I need it
on every page on the site and i have about 20 views. So I'm place
these variables ( db
After much gnashing of teeth and having looked over the code dozens of
times I finally realized I was missing one wretched little comma in
the HttpResponseRedirect return argument.
On Sep 7, 1:26 pm, David De La Harpe Golden
wrote:
> On 07/09/10 16:44, Erskine wrote:
>
> > I've spent a few days w
Thanks for the response. I think that is exactly what I'm looking for.
But, being a newb, this raises new questions that I will spare the
group. Could you point me toward a book or tutorial that would show me
how to do that?
Thanks.
On Tue, Sep 7, 2010 at 10:23 AM, Shawn Milochik wrote:
> It doe
You need to include the jquery library script in your html page if you're
calling getJSON as in the previous emails (and note that getJSON isn't
necessarily the function you want - jquery provides many options for doing
AJAX). Either download it, or use one of the public repositories:
http://docs.
On 07/09/10 16:44, Erskine wrote:
> I've spent a few days working through the First App tutorial, and have
> mostly got everything working, but I haven't been able to figure out
> why I'm getting an extra slash appended after 'polls' when clicking on
> the name of the poll
> The current URL, poll
It doesn't seem like converting your data into fixtures will provide
any advantage. If it's pipe-delimited, then just write a Python script
imports the CSV module (which can handle other delimiters) and your
model(s).
Use it to read the data and convert it to dictionaries, then create
instances of
I need to create a query that aggregates values by the year of a date
field. I have not been able to discover a way to do this yet, perhaps
someone can help. I can issue the following raw query, which gives the
results I want:
cursor.execute("""SELECT year(oac_date) as year, month(oac_date) as
mon
Hello,
I'm trying to automatically update a Django project using json
fixtures. ... There is a pipe delimited file that is automatically
updated. I would like to save the data from that file into a Django
project. The way I have been approaching this is to convert the file
into json fixtures and u
I've spent a few days working through the First App tutorial, and have
mostly got everything working, but I haven't been able to figure out
why I'm getting an extra slash appended after 'polls' when clicking on
the name of the poll http://127.0.0.1:8000/polls//. This gives me an
error page with:
U
Hi Patrick,
It *does* support this as far as I know. I've tried/used similar
queries and it works ok, although ofc not with your models.
Please post your model definitions for CitlData and Installation, to
see if there's any issue there.
Also what version of Django are you using?
Best Regards,
B
Hi Béres,
no, that will not work for me. I need the possibility to have diffenrent (e.g.
empty)
tags for every language...
regards
Henrik
>reply to message:
>date: 07.09.2010 09:04:38
>from: "Beres Botond"
>to: "Django users"
>subject: Re: django-tagging languages and multi fields
>
>Hi Henr
On Sep 7, 1:45 am, Benedict Verheyen
wrote:
> Hi,
>
> i've written a calltracking application for my company and other apps will
> follow soon.
> Now, i would want a central way to access them and to assign rights on who
> can see
> and run what application.
> The dashboard or access panel wil
Hi Benedict,
>From what I have observed, if you are using django.contrib.auth for
your login/logout feature then you should be able to login once from
whichever app and then all subsequent requests from that browser
(unless you clear the cache/delete cookies) will be considered to have
been made f
my settings.py on slicehost is publicly readable. Is that just a
permissions issue?
No, it has same permissions. as another server where the settings.py
can't be downloaded...
Of course, we don't want people to see the database password.
How is this usually resolved?
Margie
On Mon, Sep 6, 201
Hi,
I am trying to sum a field from a joined table and group by another
field from that joined table. Installation is the table I am querying
and CitlData is the table I am joining in.
This is the code:
installations =
Installation.objects.values('citldata__year').annotate(Sum('citldata__emission
Hello,
I am doing a project in djagno and I stucked in working with files. I
am realy confused about, how it is described in django documentation
and I did not find a solution in it that would suit my case. So
basically what I want to do - I want to have a storage for some
certain files in my proj
It seems as if this is the only solution but after a week of trying to
implement it in a variety of ways it won't work. is there something I
need to download (jquery)? More helpful would be a real HTML page as
an example or a live example on the web. I am sorry for the trouble
but I'd like to under
Hi Henrik,
What are your exact requirements? Is it sufficient if you could simply
translate all your tag instances (in every language you have basically
the same tags for the same entry, except translated)?
Or you need to be able to have possibly completely different tags for
the same model insta
On 7 sep, 15:17, Lukáš wrote:
> Hey,
>
> I am working with Django for a while and now that my "tree" and whole
> DB is filled with data (note: existing database), I was wondering if
> the "one model per table" is really better at this point than "one
> model per select".
I don't have the slighte
Hey,
I am working with Django for a while and now that my "tree" and whole
DB is filled with data (note: existing database), I was wondering if
the "one model per table" is really better at this point than "one
model per select".
I have got one table - objtree. This is the place where I have all
On Sep 7, 9:02 am, bruno desthuilliers
wrote:
> The SQL "update" statement is atomic (well, it's supposed to be at
> least), so queryset.update should solve the problem (nb : not tested):
>
> YourModel.objects.filter(
> pk=object.pk,
> expiration_datetime < datetime.datetime.now()
> ).
Hi,
I have made a custom view for admin section.I have added a link in the
index page which calls this custom view.I have copied the index page
to templates\admin in my application, and added this link.But, I want
this link to appear in auth section.How can I do this?
thanks
--
You received thi
Actually what is happening after login to admin
it keep up adding setting.fcgi to URL
http://172.16.100.231/setting.fcgi/admin/
On Tue, Sep 7, 2010 at 2:28 PM, Ali Ahsan wrote:
> Hi
>
> Do you have any idea what could be wrong.I am using lighthttpd with django
>
> On Tue, Sep 7, 2010 at 2:22 P
Same problem here
The django.views.i18n.javascript_catalog function only accepts
'django.conf' and/or any app in settings.INSTALLED_APPS.
/jsi18n/apps.main+apps.demo
This mean it cannot load locale data at the project level which is
annoying.
see http://github.com/django/django/blob/master/djan
Hi
Do you have any idea what could be wrong.I am using lighthttpd with django
On Tue, Sep 7, 2010 at 2:22 PM, Kenneth Gonsalves wrote:
> On Tue, 2010-09-07 at 13:30 +0500, Ali Ahsan wrote:
> > (r'^admin/(.*)', admin.site.root),
>
> as far as I remember this is correct for that version - so I do
On Tue, 2010-09-07 at 13:30 +0500, Ali Ahsan wrote:
> (r'^admin/(.*)', admin.site.root),
as far as I remember this is correct for that version - so I do not
think I can help here ...
--
regards
Kenneth Gonsalves
--
You received this message because you are subscribed to the Google Groups
"Djan
So I wrote some django unit tests for an app that uses OAuth and I ran
into this strange issue when attempting to set my verifier:
On my local dev machine it likes me to set my verifier like so:
token.set_verifier(verifier)
On my production machine it like me to set my verifier like so:
oauth_req
Hi,
i've written a calltracking application for my company and other apps will
follow soon.
Now, i would want a central way to access them and to assign rights on who can
see
and run what application.
The dashboard or access panel will be very simple: icons that link to the
application and bas
Hi Keeneth
Sorry i was wrong django version is 1.0.4,And in same version app was
written.
below is my urls.py for admin section
(r'^captcha_img/$','captcha_img'), #Captcha Image
#(r'^captcha_my_img/$','captcha_my_img'), #Captcha Image
(r'^admin/(.*)', admin.site.root),
On Mon, Sep 6,
On 6 sep, 15:45, Andy wrote:
> I have a model MyModel that has a field expiration_datetime.
>
> Every time a user retrieves an instance of MyModel I need to first
> check if it has expired or not. If it has expired, than I need to
> increment some counter, update others, and then reset the
> expir
Canyone with experience of django-friends give some setup guidelines.
I have read the docs but can't follow it easily, they are a bit sparse
for myself as beg-internediate level user.
I have installed: dajngo apps: registration, profiles, accounts,
messages, notifications and friends.
I'm having
47 matches
Mail list logo