close connections and restart django?

2006-05-29 Thread shaunc
Hello, I'm writing some scripts for a testing environment. I want to dump some core stuff from the database, recreate the database, and reload the stuff. I can do all the steps individually, but deleting the database requires closing the db connection. Can I get django to cleanup and close its

admin "page not found" after m-r migration

2006-05-29 Thread frank h.
Hello, I recently migrated to trunk and all seems great except that I cannot change the admin user when logged in as admin user... the error message in the browser is: Page not found (404) Request Method: GET Request URL:http://127.0.0.1:8000/admin/auth/user/1/ can anyone shed some

ANN: Feedjack - A Django+Python Powered Feed Aggregator (Planet)

2006-05-29 Thread Gustavo Picon
Feedjack is a feed aggregator writen in Python using the Django web development framework. Website: http://tabo.aurealsys.com/software/feedjack/ Like the Planet feed aggregator: * It downloads feeds and aggregate their contents in a single site * The new aggregated site has a feed of its

ANN: Feedjack - A Django+Python Powered Feed Aggregator (Planet)

2006-05-29 Thread Gustavo Picon
Feedjack is a feed aggregator writen in Python using the Django web development framework. Website: http://tabo.aurealsys.com/software/feedjack/ Like the Planet feed aggregator: * It downloads feeds and aggregate their contents in a single site * The new aggregated site has a feed of its

Re: How do I send an HttpRequest using the framework?

2006-05-29 Thread Adrian Holovaty
On 5/28/06, CloudMagnus <[EMAIL PROTECTED]> wrote: > The basic Idea is that I am posting some values to one server from my > site then I am going to get an asynchronous POST back with some data, > using that information I am supposed to send a request back to them > with the same information as a

Stripping spaces from text fields in forms (forms.TextField)

2006-05-29 Thread [EMAIL PROTECTED]
Stripping leading and trailing whitespace from text fields in forms in nearly always desirable, but Django doesn't handle this for me. There seems to be a hook built in for massaging input data before it's validated: FormField.prepare(). I tried subclassing TextField like so: class

Re: Importing classes without project name, possible?

2006-05-29 Thread [EMAIL PROTECTED]
Thanks for clearing that up. I'm sure once I got off the development server I would've run in to this problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Adding a specialized database type

2006-05-29 Thread Sean
I'm having the same problem with my database. I use the ltree structure to represent a hierarchical order of objects (object is (sub-)part of object). The way that postgres returns an ltree type is for example "2:4:45", which basically means id=45 is part of id=4, which again belongs to id=2. A

Re: Is Django suitable for a big numbers of visitors??

2006-05-29 Thread Jeremy Dunck
On 5/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I assume that any per-URL caching scheme will sooner or later end up > sending users a wrong page (one that has been generated for another > user), which could be a major problem. EVERY page is personalized, so I > can't for instance

Re: auto_now_add bug with MySQL

2006-05-29 Thread Jeroen Ruigrok van der Werven
On 5/29/06, Konstantin Shaposhnikov <[EMAIL PROTECTED]> wrote: > I've seen it here http://code.djangoproject.com/ticket/1056 (see the > first comment by jacob) > Though I am not sure how actual this statement is. Ticket seems to be quite > old. Luke fixed the code in the meantime though. It

Re: auto_now_add bug with MySQL

2006-05-29 Thread Konstantin Shaposhnikov
On 5/29/06, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote: > Hi Konstantin, > > On 5/29/06, Konstantin Shaposhnikov <[EMAIL PROTECTED]> wrote: > > I suggest you to not use auto_now_add at all if you are using current > > (post magic-removal) version of django. > > I am using the SVN

Adding a specialized database type

2006-05-29 Thread Scott Anderson
Hi all, I'd like to add a specialized data type for PostgreSQL: the contrib/ltree type. I've found the DATA_TYPES hash in the backend creation objects, but my question is this: What's the least intrusive, best way to add this mapping for my application? I could: 1) modify the Django source

Re: auto_now_add bug with MySQL

2006-05-29 Thread Petar Marić
auto_now_add has been fixed in [3002] Hurray for Luke ;) -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com/ --~--~-~--~~~---~--~~ You received this message because you are

Re: Wiki or Blogs done with django

2006-05-29 Thread nate-django
On Mon, May 29, 2006 at 09:48:11AM +0200, Giovanni Giorgi wrote: > I am planning to build a small personal web site. > I have used Plone CMS (Zope powered) but it is very slow and requires > a lot of memory. I'm coming from a similar camp. I've had a blog running on Zope with COREBlog for

Re: auto_now_add bug with MySQL

2006-05-29 Thread Jeroen Ruigrok van der Werven
Hi Konstantin, On 5/29/06, Konstantin Shaposhnikov <[EMAIL PROTECTED]> wrote: > I suggest you to not use auto_now_add at all if you are using current > (post magic-removal) version of django. I am using the SVN trunk yes. (It would be great if someone could finally fix trunk's setup.py to

Re: auto_now_add bug with MySQL

2006-05-29 Thread Konstantin Shaposhnikov
Hello, On 5/29/06, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote: > Andy, > > On 5/8/06, Andy Dustman <[EMAIL PROTECTED]> wrote: > > Try the patch on this bug: > > The 2nd patch didn't work for me, as I noted in the ticket. > > The initial save with DateField(auto_now_add = True) is

Re: Is Django suitable for a big numbers of visitors??

2006-05-29 Thread wiz
> How can I verify that caching works? "apache benchmark" or something like that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Wiki or Blogs done with django

2006-05-29 Thread Bryan Murdock
On 5/29/06, Konstantin Shaposhnikov <[EMAIL PROTECTED]> wrote: > Hello, > > Do not count this post as self promotion but you can also check my > personal site :) Here is how it looks like: >http://step-inside.org > And here you can browse sources: >

Re: auto_now_add bug with MySQL

2006-05-29 Thread Jeroen Ruigrok van der Werven
Andy, On 5/8/06, Andy Dustman <[EMAIL PROTECTED]> wrote: > Try the patch on this bug: The 2nd patch didn't work for me, as I noted in the ticket. The initial save with DateField(auto_now_add = True) is correct, it has the date as it should. But using it in conjunction with FileField() will

Re: Wiki or Blogs done with django

2006-05-29 Thread Konstantin Shaposhnikov
Hello, Do not count this post as self promotion but you can also check my personal site :) Here is how it looks like: http://step-inside.org And here you can browse sources: http://step-inside.org/projects/stepinside/browser/trunk Though it is not ported to the latest version (post

Re: Is Django suitable for a big numbers of visitors??

2006-05-29 Thread PythonistL
Thank you for your reply Now I have in my settings.py file: DEBUG = False MIDDLEWARE_CLASSES = ( "django.middleware.common.CommonMiddleware", "django.middleware.sessions.SessionMiddleware", "django.middleware.doc.XViewMiddleware", "django.middleware.cache.CacheMiddleware", )

Re: Is Django suitable for a big numbers of visitors??

2006-05-29 Thread [EMAIL PROTECTED]
Hi. I'm in a similar situation --- my site is about to launch and I hope to have a fair number of visitors. I looked at the caching middlwares but have a general problem with them. My site is highly personalized. I.e. the same URL pattern will generally return slightly different pages for

Re: Importing classes without project name, possible?

2006-05-29 Thread simonb
Not a dumb question. This depends on how sys.path is set. The app that you are importing still needs to be on the sys.path - either set via Python code or using the PYTHONPATH env var. If you are running the test server with manage.py then the directory above your apps is on the sys.path

Re: Wiki or Blogs done with django

2006-05-29 Thread Patrick
Another is: http://socialistsoftware.com/ and here you can find the source http://source.socialistsoftware.com/sssource/ ciao ciao Patrick > > Possibly the quickest blog to get up and running is by Ross Poulton - > http://www.rossp.org/ - his code has not had the magic removed yet > though... >

Re: Wiki or Blogs done with django

2006-05-29 Thread tonemcd
Possibly the quickest blog to get up and running is by Ross Poulton - http://www.rossp.org/ - his code has not had the magic removed yet though... Paul Bissex - http://e-scribe.com/news/171 - has done a *very* small Wiki implementation. Cheers, Tone

Re: Is Django suitable for a big numbers of visitors??

2006-05-29 Thread James Bennett
On 5/29/06, PythonistL <[EMAIL PROTECTED]> wrote: > If so, what configurations would you reccomend? Beefy servers and plenty of caching. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ You received

Re: Is Django suitable for a big numbers of visitors??

2006-05-29 Thread wiz
> I use Django with FastCGI ( via WSGI) and have problems with downtime > when more visitors come to my website. 1) use cache 2) disable DEBUG --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Is Django suitable for a big numbers of visitors??

2006-05-29 Thread PythonistL
I use Django with FastCGI ( via WSGI) and have problems with downtime when more visitors come to my website. Did anyone test Django apps for high numbers of visitors(hits)? If so, what configurations would you reccomend? Thank you for reply L.

Wiki or Blogs done with django

2006-05-29 Thread Giovanni Giorgi
Hi all, I am planning to build a small personal web site. I have used Plone CMS (Zope powered) but it is very slow and requires a lot of memory. There is some django application for building small blogs or wiki? I will eventually plan to do something like that if missed ;) -- Software

Re: Problems with sites not actually updating I change the code

2006-05-29 Thread Kenneth Gonsalves
On Sat, May 27, 2006 9:22 pm, [EMAIL PROTECTED] said: > > Hi, I'm new to both django and python so this may be something simple > I'm missing. > > When I change the code on a file the changes don't seem to reflect in > the website. After a while they will show up randomly. Later on I > make a