On Saturday 05 Apr 2008, Matthias Kestenholz wrote:
> On Sat, 2008-04-05 at 20:19 +0100, Tim Sawyer wrote:
> > Hi Folks,
> >
> > I'd like to have a site that gives away and sells PDFs, and tracks
> > downloads of those PDFs. For example, I'd like to kno
Came across this the other day, never used it.
http://code.google.com/p/django-databasetemplateloader/
It seems to allow you to store templates in the database, so could this be
used together with the sites framework to skin your sites differently?
Tim.
On Thursday 10 Apr 2008, Polat Tuzla w
Hi Folks,
I'm having trouble with Apache/Django memory usage on a Virtual Private
Server. I only have 150Mb memory.
I've turned KeepAlive off. I think I'm using prefork (how do I tell?) and
it's set at the following:
StartServers 2
MinSpareServers 1
MaxSpareServe
The way I've done this, the include needs the full path.
Have you tried:
(r'^users/', include('qsm.recs.urls')),
?
Tim
On Friday 18 Apr 2008, bcurtu wrote:
> Not exactly. The directory tree is:
>
> ws-python/
> qsm/
> recs/
> others/
>
> Where qsm is the project that contains t
Hi,
I have a table full of articles. I want to select the article names (and some
other related info) but not the actual text of the article, because I'm just
outputting a list on my web page. Is there a way to supress a single field
from the result model objects?
ta,
Tim.
--~--~-
On Apr 18, 7:58 am, Tim Sawyer <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> I'm having trouble with Apache/Django memory usage on a Virtual Private
> Server. I only have 150Mb memory.
-snip-
Thanks for your input folks, looks like I have some configu
Hi Folks,
I have a Donation object in my model which includes:
amount = models.DecimalField(max_digits=12,decimal_places=2,core=True)
patron = models.ForeignKey(Patron)
From my Patron object, I want to select the total donations for that patron,
so something like:
def total_donation(s
Hi Folks,
What's the simplest approach for me to have a form that makes it easy for the
user to enter a Date/Time combination?
I have my form class specified (the field in question is a
forms.DateTimeField()), but I need to make it easy for users of the site to
enter a date/time pair for the
gt; add:
>
>
> >
>
> type="text/javascript" >
> type="text/javascript" >
>
> to your template, use SplitDateTimeField and pass the fields:
>
> attrs={'class':'vDateField'}
>
> That way you have the same date and time
s.DateTimeInput(attrs={'class':'
>vDateField'}))
>
> I am not sure on how to do this on a SplitDateTimeField though.
>
> On Wed, Jul 2, 2008 at 10:52 PM, Tim Sawyer <[EMAIL PROTECTED]>
>
> wrote:
> > Sorry, I don't under
maybe:
>
> collection_datetime =
> forms.SplitDateTimeField(
>
> widget=forms.SplitDateTimeWidget(
>
> widgets=(TextInput({'class':'vDateField required'}),
>
> TextInput({'class':'vTimeField'}
>
> will work?
>
>
> On
Folks,
I have an input form where users enter a new date and time. If the user
enters 2007-01-01 and 01:00:00 I get the following error at submit:
invalid input syntax for type timestamp with time
zone: "(datetime.datetime(2007, 1, 1, 1, 0),)"
Here's the code:
forms.py: collection_datetime
ime.widget.widgets = (input1.. , input2..)
> would do the trick?
>
> I don't have a development env here so I am only guessing.
> Anybody else has suggestions on this? Because it looks a little hacky...
>
> TiNo
>
> On 7/2/08, Tim Sawyer <[EMAIL PROTECTED]> wrote:
&
Hi Folks,
I have an object with a model.DateTimeField on it. For various reasons, I
need to set the time portion of this field to 23:59 when I populate it from a
form.
datetime = models.DateTimeField()
How can I do this? I've tried
self.datetime = pForm.cleaned_d
On Monday 14 Jul 2008, Rajesh Dhawan wrote:
> The replace method here returns a new instance of a datetime object --
> it's not an in-place replace. This should work:
>
> self.datetime = self.datetime.replace(hour=23, minute=59)
Hmm, that seemed to make sense to me too, though with my Java backgr
On 08/06/12 08:20, Tanveer Ali Sha wrote:
Hello,
How can I provide graphs in my djnago application.I wanna implement this
for my Network Analysis Application .
Can anyone give me idea how to provide graphs in Django.
Thank Yo...
Sha
I've done this using flot.
http://code.google.com/p/flot/
I did it manually, not using the WSDL.
http://drumcoder.co.uk/blog/2009/nov/23/running-soap-webservice-without-library/
Tim.
On 28/06/12 20:51, Anurag Chourasia wrote:
Try using gSOAP if that fits your needs.
http://www.cs.fsu.edu/~engelen/soap.html
Regards,
Guddu
On Thu, Jun 28, 2012 at 2:
I keep it simple and just create the XML manually. Works for me on
simple services.
http://drumcoder.co.uk/blog/2009/nov/23/running-soap-webservice-without-library/
Tim.
On 08/11/12 21:26, Derrick Jackson wrote:
Hi all,
I have a web service that I need to consume. Do you have
any recommend
On 30/08/11 15:55, John Fabiani wrote:
Hi,
I can't get one the website.
Johnf
http://www.downforeveryoneorjustme.com/http://www.satchmoproject.com/
Tim.
http://percussion360.com/
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to t
Hi Folks,
I have a django site which is against a postgres database which is UTF8.
I have a large droplist with international names in, and it doesn't
appear to be sorting correctly.
The list contains Ingvar Mæland and Børre Børresen. I'm told that the
Norwegian sort order should be X Y Z
> On Fri, Sep 9, 2011 at 10:18 PM, Tim Sawyer
> wrote:
>> Hi Folks,
>>
>> I have a django site which is against a postgres database which is UTF8.
>> I
>> have a large droplist with international names in, and it doesn't appear
>> to
>> be sor
Has anyone any instructions for using VirtualEnv with Hudson/Jenkins?
Thanks,
Tim.
--
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 t
Flot.
http://code.google.com/p/flot/
My docs about what I did:
http://drumcoder.co.uk/tags/flot/
Example (including zooming by slider):
http://brassbandresults.co.uk/bands/rothwell-temperance-band/
Enjoy,
Tim.
> hi,
>
> what do people use to display bar charts in their sites?
> --
> regards
>
I've done this.
You should be able to startup the test server with
--settings=client_settings/foo.py and get all of settings.py and HELLO
available to you.
What's not working?
Tim.
> Hi all,
>
> I don't understand something about DJANGO_SETTINGS_MODULE. My
> intention is to serve several websit
Do the pages that you're moving across to the new site need to be
change-able through the admin system, or are they static HTML that won't
change?
Only use flatpages if you want them to be editable through the web.
Tim.
On 30/11/11 17:09, Juan de Dios Manjon Perez wrote:
Try flatpages https:
You can't retrieve the password, as that would be a security flaw. The
security works by hashing the password entered into the login form, and
comparing the hashed version with the one stored on the database. Hash
functions are quick to run one way, but difficult to reverse, hence it's
diffic
http://pypi.python.org/pypi/django-debug-toolbar will show the number of
queries, time taken to query, and allow you to see the stack trace for the
code that caused the query to be executed.
Hope that helps,
Tim.
> On Dec 5, 2011, at 3:18 AM, Szabo, Patrick (LNG-VIE) wrote:
>
>> Okay that toolba
This might help:
http://drumcoder.co.uk/blog/2010/apr/23/output-parameters-cx_oracle-and-plsql/
Tim.
> Hello.
> Im trying to get Oracle SPs working in django.
>
> Procedure recives in_param and out_param
>
> in get_data function i do
>
> [code]
> def get_data(self, in_param):
> cursor = conn
Hi Folks,
Does anyone have a strategy for selecting from a database where the date
is this week, but a random year in the past?
I have ~100 years of events in a database, each with a datefield - I
would like to do a "this week in history" box that lists one or two on
the homepage, randomly t
se if mysql you could do
SELECT * FROM WHERE DATE_FORMAT(, "%u") =
DATE_FORMAT(curdate(), "%u")
dont know if there is a django orm way to do it, but could always use a
raw query.
Am 05.01.2012 21:14, schrieb Tim Sawyer:
Hi Folks,
Does anyone have a strategy for selecting fro
See
https://docs.djangoproject.com/en/dev/howto/auth-remote-user/#howto-auth-remote-user
Tim.
On 17/11/12 09:13, Anton wrote:
Hi,
I am using in windows 7 64bit:
- python 2.7.3 32bit !!
- django 1.4.2
If use my internet explorer in my company,
it does an automatic login on some services.
Here's the instructions I wrote when I added search with Haystack and
Whoosh to my site.
http://drumcoder.co.uk/blog/2010/may/19/django-text-search-haystack-and-whoosh/
Hope that helps point you in the right direction.
Tim.
> hello friends, i want to use haystack for my website,
> but i am havi
Try putting:
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
in your settings.py file.
Tim.
> I have the django auth system set correctly, my only problem is that
> is if the user does not use the logout and just closes the browser,
> they are still logged in.
>
> Any suggestions?
>
> --
> You received
This might help:
http://drumcoder.co.uk/blog/2009/nov/26/google-maps-django/
Tim.
> Hello,
>
> I apologize for seeming too impatient or rude, actually I'm a bit in a
> hurry
> because I was given a project
> and was told that it was urgent. I miscalculated how much time it was
> going
> to take
Hi Folks,
I'm in the process of building a Django site to host my drum/percussion
tutor books, and could do with some testers with multiple browsers and
OSes to have a go and tell me what works and what doesn't. The site
allows playback of the percussion music "karaoke" style - see the
homep
On 24/07/11 16:22, fred.se...@sunrise.com wrote:
The only area where I've really struggled is in building a SOAP api to
conform to some vendor requirement. It's hard to figure out which python
soap module is the right one (i.e. maintained and documented) while Java
seems to have better tools. But
Here's my instructions for debugging in PyDev, hope that helps:
http://drumcoder.co.uk/blog/2010/apr/21/debugging-django-pydev/
This is done using the development server, not Apache, from within Eclipse.
Does your app work in the development server?
Tim.
> Hi,
>
> I am new to Django trying to
(INSTALLED_APPS). Also, it has the manage.py, settings.py, urls.py,
etc
(2) is the "basesite" application. It contains only urls.py. models.py
and media_urls.py at this time (no manage.py - not sure if this is the
problem).
Thank you.
MLG
On Dec 17, 4:51 pm, "Tim Sawyer" wrote
On 19/12/10 22:44, Andy wrote:
On Dec 19, 5:06 pm, "Jonas H." wrote:
On 12/19/2010 10:20 PM, Andy wrote:
Is there a way to specify JOIN using the Django ORM? The 2 tables I'm
joining aren't related through a foreign key.
Why don't you use a relation field in your models if your models are
On 20/12/10 00:10, Andy wrote:
On Dec 19, 6:20 pm, Tim Sawyer wrote:
I think so, yes. Something like this:
You can then do something like
anObjectA = ObjectA.objects.filter(id=1)[0]
objectBs = ObjectB.objects.filter(object_a=anObjectA)
This requires 2 separate queries, right? I
I did this with one settings.py per subdomain, using the sites
framework. So each settings.py had a different SITE_ID.
Here's how to limit admin to a given user's records:
http://drumcoder.co.uk/blog/2010/oct/02/user-specific-data-admin/
This helps with droplists in admin:
http://drumcoder.c
actual domain
name is :)
HTH,
-Andy
[1]: There's an example of what is essentially this rule for Apache
here:
http://muffinresearch.co.uk/archives/2006/08/20/redirecting-subdomains-to-directories-in-apache/
Tim Sawyer <mailto:list.dja...@calidris.co.uk>
29 December 2010 17:58
I
On 03/01/11 03:53, Kyle wrote:
When I try to access my Object, I get an error "invalid literal for
int() with base 10". I know it has something to do with ForeignKeys,
but cannot find how to fix it.
It helps if you post the full stack of the error - we can tell which
line of code it came from
On 10/01/11 17:44, hank23 wrote:
First is it possible to conditionally hide a form field on a screen
until an item from a dropdown box has been selected? If so how can
that be done?
Yes, but you'll have to use jQuery or similar and script it with
JavaScript, so that when the droplist changes y
Pay attention to the notice about how this method (highest-ranked
answer) doesn't actually remove it from the form, and a malicious user
can still POST a value.
Why include it in the form if you can't change the value? Just pass the
thing you want to be display only to the page separately and
ace to find the javascript code to actually
display the field? So do I make the field I want to display originally
a hidden field and then change the type in the javascript or do I mkae
the field originally a text input field, but somehow set it to be
invisible initially?
On Jan 10, 12:03 pm, Tim Sawy
Hi Karen,
I did with two fields - storing a date and a date resolution.
The values could be:
date / resolution - display value
1984-12-31 / Exact Date - 31st December 1984
1984-12-01 / Month - December 1984
1984-01-01 / Year - 1984
So I just used the first of the month where unknown, and Janua
> You can't stop the user from closing the browser, or switching to another
> tab, with JS. And you shouldn't try to stop them navigating away - this
> sort of thing is only likely to annoy them intensely.
Taking this to the extreme - what do you want to happen if a person using
your site has a po
On 17/02/11 20:18, Arun K.Rajeevan wrote:
I've a table which stores unique ids for an object that I've to retrieve
via SOAP( I've a url to a WSDL file) service calls.
This table also contains some details like last access to this object
from application etc.
*What I need very badly and urgently:
Hi,
I have a postgres database that is LATIN1. It contains extended
characters, for example Harry Størksen.
I dumped this out to a file:
pg_dump -U dbuser db > db.sql
and then ran iconv
iconv --from-code latin1 --to-code utf-8 db.sql > db-utf8.sql
and then imported into a database which h
On 02/03/11 21:50, Javier Guerra Giraldez wrote:
On Wed, Mar 2, 2011 at 4:21 PM, Tim Sawyer wrote:
However, my web page now gets Harry Størksen instead.
looks like part of your stack is still interpreting utf-8 data as latin1
check that
1: the field
2: the table
3: the database
4: the client
I've just upgraded from a very old version of Django (1.4) up to 1.7.8, and
some behaviour isn't how I expect. I may have missed something - I've not
been keeping an eye on the framework changes.
Two models, Venue and VenueAlias. VenueAlias has a ForeignKey to Venue,
one venue has many VenueA
what
*could* be the cause appreciated!
Cheers,
Tim.
On Friday, 5 June 2015 23:04:00 UTC+1, Carl Meyer wrote:
>
> Hi Tim,
>
> On 06/05/2015 03:44 PM, Tim Sawyer wrote:
> > I've just upgraded from a very old version of Django (1.4) up to 1.7.8,
> > and some behavio
101 - 153 of 153 matches
Mail list logo