Re: Where is my Django?

2008-10-23 Thread David Reynolds
and i don't > find de directory 'django' in site-packages on /usr/lib/python2.5/ > site- > packages or /usr/lib/python-django > > Some body can help me? dpkg -L python-django This will give you a list of all of the files in that packa

Re: Where is my Django?

2008-10-27 Thread David Reynolds
On 23 Oct 2008, at 5:32 pm, leonel wrote: > dpkg -l python-django shows all the package contents .. No, dpkg -l gives you a list of packages your system knows about it must be dpkg -L python-django as I noted before ;) -- David Reynolds [EMAIL PROTEC

Disabling Admin validation

2008-11-24 Thread David Reynolds
Hi, Does anyone know of an easy way to disable the admin areas validation of my model admin classes without setting DEBUG to False which does it, but is not much use in development. Thanks, David -- David Reynolds [EMAIL PROTECTED

Re: How can I report a new user?

2008-12-11 Thread David Reynolds
was always suggested as being better - not sure if that is still true though. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: TextMate Django Bundle

2008-12-22 Thread David Reynolds
On 17 Dec 2008, at 23:00, felix wrote: > and thanks to whoever made this ! very useful. The maintainer is PBX / Paul Bissex -- David Reynolds da...@reynoldsfamily.org.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Unittest for Formwizard

2008-09-11 Thread David Reynolds
Hi, I am attempting to write a unit test for a Formwizard, but I can't seem to make it work. Has anyone else attempted this or does anyone have any pointers? I think the problem might be the hash not matching, between the steps. -- David Reynolds [EMAIL PROT

Re: request.POST.get is not working

2008-09-11 Thread David Reynolds
Me.. Check your javascript is being called, by sticking an alert in the function? Check your development log to see if the post is going through correctly? Print the contents of request.POST to see if the data is getting through? All/one of these should be useful for debugging what is going on. --

Re: Filtering ManyToManyField

2008-09-11 Thread David Reynolds
els.py#L458 -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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

Re: Unittest for Formwizard

2008-09-11 Thread David Reynolds
actual wizard is working fine, I'm just trying to work out how I can make a test against it... -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Absolute URL vs Relative URL, or ~ ?

2008-09-16 Thread David Reynolds
e "/mysite/" to "/v2/" (and the other settings to reflect your settings) and you should be away. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Admin field custom validation

2008-09-29 Thread David Reynolds
missal (if I use clean_logo) 'NoneType' object is > unsubscriptable. > > Does that make sense ? In clean() you must return self.cleaned_data and similarly in clean_logo() you must return self.cleaned_data['logo'] or else you will get the blank field in your database

Re: Anti-spam suggestions (strange case)

2008-09-29 Thread David Reynolds
On 24 Sep 2008, at 3:40 pm, Grigory Fateyev wrote: > Maybe create new field w/ captcha validation? http://smileychris.tactful.co.nz/ramblings/recaptcha/ .. is a good place to start. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received t

Re: Highlight current active page

2008-09-30 Thread David Reynolds
list of pages in your context. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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

Re: Why does MySql gives warning? Incorrect string value: '\xE6\x9D\xB1\xE8\xA8\xBC...' for column 'title' at row 1

2008-10-06 Thread David Reynolds
e don't get all of those hyphens appearing all over the place? -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: random quote help

2008-10-08 Thread David Reynolds
bably what you want -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 f

Re: Using Javascript

2008-10-08 Thread David Reynolds
On 8 Oct 2008, at 3:18 pm, Johnny wrote: > Someone's got an idea? Write a django view that returns JSON and use your Javascript to call that. You should be able to parse the JSON from javascript. -- David Reynolds [EMAIL P

Re: How can I check which view is being called in response to a specific Url?

2008-10-13 Thread David Reynolds
r as set by the XViewMiddleware should tell you what view is being called by a URL -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Which IDE do you choose with django?

2008-10-14 Thread David Reynolds
On 13 Oct 2008, at 7:09 pm, Django users wrote: >> I am a newbie of django, and want to know which IDE is suit for >> django? >> >> thank your Textmate on OS X -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

Re: Generating a file from lots of data

2008-10-15 Thread David Reynolds
goproject.com/en/dev/howto/outputting-csv/#using- > the-python-csv-library I think I thought I'd be able to make a more flexible output - I may have been wrong. Do you think the csv module would be quicker? Thanks, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~---

Generating a file from lots of data

2008-10-15 Thread David Reynolds
any more information is needed please let me know. Thanks, David 0 - http://docs.djangoproject.com/en/dev/howto/outputting-csv/#using- the-template-system -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are

Re: Generating a file from lots of data

2008-10-16 Thread David Reynolds
he AddressBook model details, so a query is run for each row as it is added to the csv output to get the Address details. Is there anyway I can optimise this with the ORM or am I looking at writing some custom SQL or denormalising the data? Thanks for any advice

Re: Generating a file from lots of data

2008-10-16 Thread David Reynolds
dex is used for a > join... Well, this starts getting complicated and sslightly OT - you > may want to seek more help on the topic on a more appropriate > neswgroup anyway...) Also noted. Many thanks for your help Bruno. Thanks, David -- David Reynolds [EMAIL PROTECTED] --~--~

Re: How to get a page in Django?

2008-10-17 Thread David Reynolds
On 17 Oct 2008, at 5:08 am, Gnarlodious wrote: > I don't know anything about Python except for how to run SQLite > commands. Mostly my strong point is HTML&CSS. If you familiar with another programming language, may I suggest Dive into Python? http://diveintopython.org/ --

Re: how to use django ORM in standalone script ?

2009-02-23 Thread David Reynolds
aw sql. What should I import to plug in django in > standalone script that runs from command line ? I find this useful for when I need to make a standalone script: http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/ -- David Reynolds da.

Re: Hosting an Email server and receiving all mails pertaining to @mysite.com

2009-02-23 Thread David Reynolds
koverflow but > didn't receive any help. Please help me. Thankyou. I don't believe this is related to the usage of Django. You may be better off looking for a Postfix usergroup or mailing list. -- David Reynolds da...@reynoldsfamily.org.uk --~--~-~--~~~-

Re: Delete "hook" for admin

2009-02-23 Thread David Reynolds
uot;cleaner" or "proper" way to do > this? A hook to do what exactly? If you mean what I think you mean then you can override the delete() method on the Model, or you can use Signals. -- David Reynolds da...@reynoldsfamily.org.uk --~--~-~--~~~---~--

Re: WebFaction celebrates its 1000th Django site with free Django hosting

2007-06-11 Thread David Reynolds
artin Glueck Sam/Musicpeeps.co.uk Jay Parlar Vinay Sajip Niels Poppe Jesse Wolfe David Reynolds Adam Fast Ramiro Morales Yhsla Jones Thank you to everyone who entered the draw. Thanks for this, I look forward to putting it to some good use :) Thanks, David -- David Reynolds [EMAIL PROT

Re: get subversion revision-number in a django-project

2007-06-15 Thread David Reynolds
pt-get install python-subversion on Debian. These give you python svn client bindings so you should be able to use that to find out the revision number. Cheers, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: Hosting for Django

2007-06-15 Thread David Reynolds
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-users- [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/ group/django-users?hl=en -~--~--

Mysql sleeping queries

2007-06-18 Thread David Reynolds
ay be doing this? Versions: apache 2.0.54 mysql 4.0.24 mysqldb 1.2.1c2-1 If anyone can shed any light, I'd be very interested to know. Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: Mysql sleeping queries

2007-06-18 Thread David Reynolds
On 19 Jun 2007, at 6:56 am, Gábor Farkas wrote: hi, i have no idea what went wrong, but to the developers it certainly would help, if you could find out exactly which revision broke the mysql behaviour. Difficult to tell since we hadn't svn up'd for a while... -- David Reyno

Re: Mysql sleeping queries

2007-06-19 Thread David Reynolds
thing we can do to stop this? Thanks for your help, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Apache auth

2007-06-19 Thread David Reynolds
magazine/modpython.py", line 2, in ? from django.core.handlers.base import BaseHandler ImportError: No module named django.core.handlers.base Anyone have any ideas why this might be happening? Thanks, David [0 - http://www.djangosnippets.org/snippets/62/] -- David Reynolds [EMAIL PROTECTE

Re: Introducing DjangoSites.Org

2007-06-20 Thread David Reynolds
glegroups.com To unsubscribe from this group, send email to django-users- [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/ group/django-users?hl=en -~--~----~~----~--~~--~--~--- -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: Introducing DjangoSites.Org

2007-06-20 Thread David Reynolds
On 20 Jun 2007, at 12:33 pm, [EMAIL PROTECTED] wrote: On Jun 20, 9:04 pm, David Reynolds <[EMAIL PROTECTED]> wrote: Could you fix your DEFAULT_FROM_ADDRESS (if you've not already ;) ) and resend me the email (or delete the account so I can re-add it). David, I've fixed th

Re: Mysql sleeping queries

2007-06-20 Thread David Reynolds
have done some testing and it does seem to appear in 5482, as Malcolm suggested. 5481 is fine, 5482 starts the hanging mysql processes. Hope that helps, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: too many connections django 0.96 does not close connections

2007-06-20 Thread David Reynolds
ns or socket connections ( DISCLAIMER: I read this on experts exchange ). Hope that helps a bit, thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: Mysql sleeping queries

2007-06-21 Thread David Reynolds
, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: Apache auth

2007-06-22 Thread David Reynolds
make it into trunk. Can I ask what mod_python/apache versions you are using? I can fairly consistently get this error, however I have to replace: SetHandler python-program with: SetHandler none or else I get a 404 from django. Perhaps I am missing something? Thanks, Dave -- David Rey

Re: Apache auth

2007-06-25 Thread David Reynolds
suggestions greatly appreciated. Thanks, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: Unicode branch merged into trunk

2007-07-04 Thread David Reynolds
David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

function to generate choices list

2007-07-06 Thread David Reynolds
oes anyone, please have any idea how I could do this? Thanks, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: function to generate choices list

2007-07-10 Thread David Reynolds
David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: Blog engine

2007-07-17 Thread David Reynolds
e Django's generic date views [1] and you're pretty much there. Seems like such a good first project to write in Django as well 0 - http://code.google.com/p/django-tagging/ 1 - http://www.djangoproject.com/documentation/generic_views/#date- based-generic-views -- David Reyno

Re: Blog engine

2007-07-17 Thread David Reynolds
ment-utils [0] has spam protection and moderation. RSS feeds are easily done within Django [1] Next? 0 - http://www.b-list.org/weblog/2007/06/25/hacking-comments-without- hacking-comments 1 - http://www.djangoproject.com/documentation/syndication_feeds/ -- David Reynolds [EMAIL

Re: Bulk data upload

2007-07-18 Thread David Reynolds
it unpacked automatically, but how do I automagically assign the images with the product, having in mind that some might have 5 pics and others might have 2 or none. What about CSV? You can export from Excel as CSV pretty easily and it's a fairly easy format to parse in python...

Re: Blog engine

2007-07-23 Thread David Reynolds
(I did this for Magnolia recently.) http://code.google.com/p/jellyroll/ Pretty sure I mentioned most of these earlier in the thread... -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: mod_python, multiple django-sites, memory usage

2007-07-24 Thread David Reynolds
it. Presumably the more sites we get, the worse this problem will get and it may be wise for us to look into using mod_fastcgi in future. Does anyone have any experience of using fastcgi with 30 odd sites? Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIM

Re: Generating charts with ReportLab

2007-07-30 Thread David Reynolds
s If anyone is interested in a sample for a Pie or Scatter chart, let me know, and I can add samples of these as well. I would say, go ahead and add them, as I'm sure many people will find them useful at some point. Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Descripti

Re: a rather big, new django site:

2007-07-30 Thread David Reynolds
running! :-) Not working as of 9:21am GMT. I'm getting a Forbidden, You don't have permission to access / on this server. Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: loading fixtures: no error, no data

2007-08-01 Thread David Reynolds
using the database referred to in the other one's settings file? Thanks, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: mod_python/django problems

2007-08-03 Thread David Reynolds
We have around 30 and have noticed the problems you've mentioned.. Thanks, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: django app for managing sending email to users...

2007-08-04 Thread David Reynolds
k) I think I would find this useful a *lot* for work, so I would be very happy to help, if necessary. Thanks, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: mod_python/django problems

2007-08-04 Thread David Reynolds
it's only gone away after a restart of apache. -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: mod_python/django problems

2007-08-06 Thread David Reynolds
unrelated sites with totally different domain names? They all have: and none of them have wildcarded domain names. It has been www.customerdomain1.tld that has appeared on www.customerdomain2.tld Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic

Re: Making the django documentation available from the admin documentation site

2007-08-23 Thread David Reynolds
gt; > -- > Christian Joergensen | Linux, programming or web consultancy > http://www.razor.dk | Visit us at: http://www.gmta.info > -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Making the django documentation available from the admin documentation site

2007-08-23 Thread David Reynolds
On 23 Aug 2007, at 5:06 pm, Christian Joergensen wrote: > Great, thanks. :) > > Regards, Don't thank me, thank Chris ;) Thanks, -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

using querysets to populate a form

2007-09-03 Thread David Reynolds
it every so often? Has anyone done anything similar? Any ideas greatly welcomed. Thanks, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: using querysets to populate a form

2007-09-04 Thread David Reynolds
No one have any ideas? Thanks, Dave On 3 Sep 2007, at 12:51 pm, David Reynolds wrote: > > Hi, > > I have a requirement to use querysets as choices in various elements > of a form, and as the data grows this is clearly going to have a big > hit on the database every time t

Re: Apache + Django - syntax error

2007-09-06 Thread David Reynolds
On 6 Sep 2007, at 11:06 am, b3n wrote: > I wasn't sure if the syntax was different for Unix/Windows. I think it > would be helpful if the tutorial made a statement to that effect. Surely not saying anything implies that there are no differences between the two? -- David Reyn

Re: using querysets to populate a form

2007-09-07 Thread David Reynolds
to be checkboxes and also the actual dataset won't be that big. It'll be a distinct query on a huge set of data and I don't want that huge hit every time someone loads the form. I think I'll go for the caching idea, as you suggested. Thanks,

Re: Django deployment à lá Capistrano

2007-09-10 Thread David Reynolds
t; bit, don't hesitate to contact me. >>> >>> A few fundamental guidelines lay already, but I'm still in the >>> brainstorming stage. This is the right stage for anyone to join me. >>> >>> I'll be glad to hear from you. >>> -- >

Re: Django deployment à lá Capistrano

2007-09-10 Thread David Reynolds
think merging all of these ideas into one big django-addon would > be a > gorgeous idea for all of us. Not only rails is fun! I agree that the community will benefit from the tool, I just think that perhaps it's silly to reinvent the wheel, but that's just my 2¢ Thanks, Dave -

Re: Django deployment à lá Capistrano

2007-09-10 Thread David Reynolds
me. > > By the way. I don't try to tell anyone that "my tool's superior to > tool > X". I'm just letting the community know. Anyone to join my efforts? > Gorgeous. Not? I'd love this kind of tool anyways. I'd be doing it > alone, if that's

Re: about dbpaste

2008-01-18 Thread David Reynolds
w it to someone else. If you're looking for something in particular you could try djangosnippets.org -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: sudo under django or better solutions?

2008-02-01 Thread David Reynolds
web apps to be able to run system commands. Another approach might be to save any data into the database that you need and then run a cronjob as a sudo privileged user to run the actual system jobs. This will obviously only work well if it's something that can be ba

Re: template: how to make use of forloop.counter0

2008-02-04 Thread David Reynolds
On 3 Feb 2008, at 3:32 pm, Michael Hipp wrote: > > Malcolm Tredinnick wrote: >>> Or is there some other way to get at my 'align' list? >> >> Look at the {% cycle %} template tag. It's designed for precisely >> this >> purpose. > > Thank you. But can someone show me how to make 'cycle' work? >

Re: Read-only connection to database. How to?

2008-02-04 Thread David Reynolds
r you can do ./manage.py runserver --settings=yoursite.readonlysettings # for the display side of the site and ./manage.py runserver # for the admin side of the site When you deploy the site you can set up which settings file is used too. -- David Reynolds [EMA

Re: Extending Django's admin application

2008-02-06 Thread David Reynolds
around that will do it, most notable are listed here: http://code.djangoproject.com/wiki/ThumbNails -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: template & forloop help

2008-02-08 Thread David Reynolds
plate? > > {% for div in divs %} > {{ form.name|forloop.counter }} > {% endfor %} > > If i just did it manualy like below it works fine > > {% for div in divs %} > > {% endfor %} > > Any help would be greatly appreciated. Does doing this do what you want?

Re: mysqldb fails to import after following directions

2008-02-25 Thread David Reynolds
On 23 Feb 2008, at 3:51 am, newbiedoobiedoo wrote: > Am in the process of setting up the mysqldb and it succeeds to install > and build, > however, the import mysqldb test command still fails. How about: import MySQLdb (the case is important) -- David Reynolds [EMAIL

Re: Django Filebrowser with FastCGI

2008-02-25 Thread David Reynolds
/ BackwardsIncompatibleChanges#_nolongerinbuiltins -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@

Re: Advanced admin interface customization question

2008-03-06 Thread David Reynolds
ich isn't what I want (as there are > several hundred values). > > Is there some easy built-in way to do either or both of these things > that I'm just not aware of? As you say, in trunk currently there is no real way of doing this. I suggest you take a lot at the newform

Re: Help needed (very granular admin permissions)

2008-03-07 Thread David Reynolds
haven't been able > to find any example like this on the net so far. There used to be a branch of django that did per-object permissions [0], which sounds like what you want, however, I don't think it's actively worked on nowadays. You'll probably have to roll your o

Re: Add a new line in TextField

2008-03-10 Thread David Reynolds
On 9 Mar 2008, at 1:06 pm, Daniel de la Cuesta wrote: > Is there any way to add som html tags in the "TextField? If you want a rich text editor to insert the html for you, you could try TinyMCE http://code.djangoproject.com/wiki/AddWYSIWYGEditor -- David Reynolds [EMAIL P

Re: Admin recipes anyone?

2008-03-10 Thread David Reynolds
ld be very grateful! Brandon, Whilst there are hacky, workaround kind of ways of doing this with the admin system as it currently is, I suspect if wait until newforms- admin hits trunk, it'll be a hell of a lot easier to do any admin customisation you need to do. -- David Reynolds [EMA

Re: How do you make a CMS in Django (trying to get the big picture)?

2008-03-26 Thread David Reynolds
gt; actually build a CMS. It really depends on what you want the CMS to do. http://www.pylucid.org/ is a CMS written in django, perhaps you could get some ideas on where to start from that? -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You recei

Re: datetime 8 hours off

2008-04-04 Thread David Reynolds
le will be the date/time when apache is started/restarted (which could be at the same time everyday). Thanks, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: Cleaning up Word's mess in text areas using tiny_mce

2008-04-09 Thread David Reynolds
n, but this then means you have to reformat it. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@

Re: Cleaning up Word's mess in text areas using tiny_mce

2008-04-10 Thread David Reynolds
t > with everything except some tags, like , , etc., stripped out. > > This works fine, whether on bad formatting coming from word, or > unwanted formatting done in TinyMCE (BGColor, etc.). > > 1: http://www.gnome.org/~jdub/bzr/planet/2.0/planet/sa

Re: Two sites, one django project

2008-04-15 Thread David Reynolds
s.path.join(PROJECT_DIR, 'templates/site1'), ) EMAIL_SUBJECT_PREFIX = '[site1] ' Then when you run the development server for each site or deploy the site you would pass the specific settings file rather than the common one. I hope that makes some sort of sense. -- David

Re: Weblog archive links are bad

2008-04-24 Thread David Reynolds
; > I tried to open a trac ticket on this, but it thinks I'm a spammer. Don't bother opening a ticket.. it's because there were no entries in March. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because

Re: Grrr, can't import custom template tag

2008-04-28 Thread David Reynolds
If you're running on Apache, have you restarted it? Have you stopped and started your development server? -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: where can i download newformsadmin

2008-05-06 Thread David Reynolds
trunk checkout. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 fr

Re: Changing timestamps in apache with mod-python

2008-05-13 Thread David Reynolds
On 13 May 2008, at 9:52 am, Sebastian wrote: > I have checked the Python's datetime in a shell and it returns the > correct time. I have also checked the datetime in a manage.py shell > and it also returns the correct value. Perhaps the timezone isn't set correctly on your

Re: Django graphic designers

2008-06-10 Thread David Reynolds
of my options is to hire a designer, but I would prefer to hire > one > with Django knowledges. Another resource... http://www.oswd.org/ -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: ImageField

2008-06-25 Thread David Reynolds
or "license" for more information. (InteractiveConsole) >>> import Image -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: User profile and sliding date range data model?

2007-03-30 Thread David Reynolds
noys me about datetime is that it doesn't handle leap years properly. However, if you use python-dateutil[1] it has a relativedelta so you can do things like: >>> datetime.date.today()+relativedelta(years=+3) datetime.date(2010, 3, 30) .. which will take into account leap year

Re: User profile and sliding date range data model?

2007-03-30 Thread David Reynolds
On 30 Mar 2007, at 9:21 am, David Reynolds wrote: > > One of the things that annoys me about datetime is that it doesn't > handle leap years properly. However, if you use python-dateutil[1] it > has a relativedelta so you can do things like: > >>>> datetime.dat

Re: Admin History - Date not formatted

2007-04-05 Thread David Reynolds
46FalseFalse > > I am using Windows with timezone (GMT +10:00 Canberra, Melbourne, > Sydney) and have set the settings.py variable to "Australia/Melbourne" > > Does anyone know why Django is doing this? Set USE_I18N to true in your settings.py Than

Re: Admin History - Date not formatted

2007-04-05 Thread David Reynolds
On 5 Apr 2007, at 1:35 pm, Malcolm Tredinnick wrote: >> Set USE_I18N to true in your settings.py > > We fixed ticket #3918 today (in [4931]), so this problem is fixed > in the > very latest code, too. Even better. Thanks Malcolm :) -- David Reynold

Re: A Few Questions with How to Work With Views

2007-05-23 Thread David Reynolds
ate a tagging app that allows tags for blog posts and for photos. I know how the database model for this might look, and I've read a bit on the many-to-many relationship in Django, but does anyone have any pointers here? Someone has made a fairly generic tagging application: http://code.google.

Re: profiling django / import error: no module named profile

2007-05-24 Thread David Reynolds
r/lib/python2.4/hotshot/stats.py", line 3, in ? import profile ImportError: No module named profile any ideas? If you're on Debian or Ubuntu: # aptitude install python-profiler Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: reassessing our Operating System

2007-09-18 Thread David Reynolds
nfs to edit the files using Textmate. At home, I just use OS X. Hope that's of some help. -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Does anyone have an easy way to debug the values in a session?

2007-09-24 Thread David Reynolds
pe stuff. This will then give you a print out of the items in the session as a dictionary. You need to use Requestcontext on your views and have 'django.core.context_processors.request' in your TEMPLATE_CONTEXT_PROCESSORS Hope that helps, Dave -- David Reynolds [EMAIL PROTECTE

Re: Admin Media on a VServer

2007-10-08 Thread David Reynolds
/contrib /admin/media/ and then... SetHandler None This is using mod_python, it's a bit different with fastcgi, etc. Hope that helps, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Need help selecting a Django hosting provider

2007-10-18 Thread David Reynolds
any hosting providers that I should avoid? Another vote for Webfaction - their interfaces makes it very easy to set up django (and lots of other things too). Another option to perhaps consider is to get a VDS and do your own install. Thanks, David -- Davi

Generic relations - reasonable usage?

2007-10-22 Thread David Reynolds
Hi, I have the requirement to have an active/inactive function for all contenttypes in a site I'm working on. Is this a valid usage for a Generic Relationship? If so, any tips as to how I'd go about implementing this? Thanks, David -- David Reynolds [EMAIL

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-26 Thread David Reynolds
; You can probably install everything from there as well. Fink > installs everything under /sw (you can change it). Macports [0] is, I think the more up to date version of that. [0] - http://www.macports.org/ -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~-

Re: parsing Django RSS feeds for content reposting

2007-11-08 Thread David Reynolds
sed blog. > > Can someone suggest some script or tool where we can have the > content made available in another web site through some Javascript. Take a look at the magpie library [0] for PHP. 0 - http://magpierss.sourceforge.net/ -- David Reynolds [EMAIL PROTECTED] --~--~-~--~

  1   2   >