does Django cache work across scripts?

2007-02-25 Thread Jaanus
Hi, aplogies if this is a FAQ/recently discussed - I tried a quick search but didn't find anything - hit me with a URL if there is one. My question - does Django cache work across scripts? The problem I have is: my page needs to show some data that is timewise expensive to generate. If I do it

Re: Problem accessing users and groups in Admin

2006-09-21 Thread Jaanus
> error" (status code 500) is the right error to be returning here. Don't > worry about that; it's doing the right thing. well yeah.. from my POV the "right" thing would be to not show these errors at all and rather work as expected :( --~--~-~--~~~---~--~~ You

Re: Problem accessing users and groups in Admin

2006-09-20 Thread Jaanus
one more strange thing... this is what the Django server tells me about these requests. Note the 500 error code, not 404... [20/Sep/2006 22:33:34] "GET /admin/auth/user/3/ HTTP/1.1" 404 1688 [20/Sep/2006 22:35:00] "GET /admin/auth/user/add/ HTTP/1.1" 500 90930 [20/Sep/2006 22:35:01] "GET

Re: Problem accessing users and groups in Admin

2006-09-20 Thread Jaanus
= middleware_method(request, e) ▶ Local vars VariableValue callback callback_args ('auth', 'user') callback_kwargs {} e exceptions mail_admins middleware_method > path '/admin/auth/user/add/' request , POST:, COOKIES:{'sessionid': '0c4d10baa61a95d26b3a798397d1c10d'}, META:{'ALLUSE

Re: Problem accessing users and groups in Admin

2006-09-19 Thread Jaanus
I'm getting exactly the same problem. Upgraded from 0.91 to 0.95, carefully followed the RemovingTheMagic instructions from wiki, changed code, schema and data as instructed, tested everything. All works fine EXCEPT changing and adding users in the admin, which gives a 404. Any ideas would be

Re: django problem at dreamhost

2006-03-20 Thread Jaanus
> Does the "apps" directory have an __init__.py file in it? Generally > that "no module named..." error signifies there's no __init__.py. ha! that may have been it. killed apps now so cant check, but this may have been it. thanks for the p

Re: django problem at dreamhost

2006-03-20 Thread Jaanus
limodou wrote: > It'll setup a app named appname in current directory, but not apps > directory. So if you want to create a new app in apps directory, you > should go into apps directory, and run the django-admin.py. Or create > the app manually it easy. I can understand this and this all makes

Re: django problem at dreamhost

2006-03-19 Thread Jaanus
hmm.. and just as I wrote this, I noticed the Django demo page on that Linux host says... "Start your first app by running trmproject/manage.py startapp [appname]." After I did it, the new app showed up right in the project's directory, without "apps". So in one host it is with "apps" and in

Re: django problem at dreamhost

2006-03-19 Thread Jaanus
to run on the server. The Django versions are the same (0.91 - also tried with SVN trunk - getting the same) and I've double-and triple-checked all the paths and settings. [hostname]$ django-admin.py sqlreset appname Traceback (most recent call last): File "/home/jaanus/django/django_src/django/bin

Re: Easy customizing of admin subsections?

2005-12-11 Thread Jaanus
ml, and work on it to > produce the CSV output? This would be a big deal IMHO. Probably not. At least I didn't do it, I just got the data for the csv generator using the standard get_list stuff etc, with Django it's only a few lines anyway. -- rgds, Jaanus

Re: Easy customizing of admin subsections?

2005-12-04 Thread Jaanus
Robert Wittams wrote: > I think you want to upgrade to trunk, where a long term effort to make > the admin very customisable has been merged. Hey now... that was too easy! you're cheating! :D (I was indeed on .90 and trunk works as you say) > In your case, you will be able to create a template

Re: Uploading a file

2005-12-04 Thread Jaanus
In the admin it works fine (except images that didnt work for me so had to switch to filefield for images). Havent tried in frontend. Working example - just configure your settings (MEDIA_ROOT) and add FileField to your model and you're done.

Easy customizing of admin subsections?

2005-12-04 Thread Jaanus
through the template and add my link at an appropriate location. Does that sound reasonable? Or is there any other easy way for me to accomplish this (insert custom link at an appropriate location in the admin), other than messing with change_list code? -- rgds, Jaanus