Re: Django source editing offtopic

2006-08-02 Thread Nebojša Đorđević
On 2 Aug 2006, at 00:44, toth anna wrote: Sorry for boring the list with a slightly offtopic question. I saw that many of you are using a Mac. (i used it perhaps twice in my life) Last week i needed to edit several python files on a MiniMac (without net, b), and i used "built-in" editor of m

KPO

2006-08-02 Thread [EMAIL PROTECTED]
KPO Base KPO Services Knowledge Process Outsourcing ( KPO ) Services from DataGrep cover the entire segments ranging from data entry to research & development Pharma. Few of our services here for preview: · Legal services Reviewing transactional & litigation documents; drafting contract

SOFTWARE

2006-08-02 Thread [EMAIL PROTECTED]
Thuriam Software Services >From solution design and offshore software development to outsourcing application support and improvement, Thuriam's offers a compelling alternative to minimize software development costs, and improve the quality of your software solutions and compress software developm

Uploading?

2006-08-02 Thread Gabriel Puliatti
Hey, I've been trying to do an uploading page, where users can upload a file, outside of the admin panel, of course. I follow http://www.djangoproject.com/documentation/forms/, but I end up getting "local variable 'errors' referenced before assignment" All the code is here: http://arrrt.googlec

HEALTHCARE

2006-08-02 Thread [EMAIL PROTECTED]
KPO Base Healthcare Services We at KPO Base provide thought leadership to our healthcare clients by closely watching the developments and challenges met by the healthcare industry continuously. Our incorporated analyses offer industry, competitive, customer and technology modernism along with str

LEGAL

2006-08-02 Thread [EMAIL PROTECTED]
Legal Source India Legal Services Legal Source India provides both civil and criminal legal assistance ranging from legal advice to full case representation, depending on client need. Our staff of 78 attorneys and 47 paralegals is parted into areas of legal expertise to best address the problems

ACCOUNTING

2006-08-02 Thread [EMAIL PROTECTED]
FINANCE-OUTSOURCING Accounting & Financial Services Finance-Outsourcing provides clients with a total Financial and Accounting Outsourcing Solutions. Having access to timely and accurate financial and accounting information is crucial for organizations to maintain a competitive edge in the marke

BPO

2006-08-02 Thread [EMAIL PROTECTED]
BPO BAY BPO Services BPO Bay BPO Service is the momentous strategic business annex and investment to date. BPO Bay universal association base consists of nearly 300 clients, including 21 Fortune 500 organizations and prospective outsourcing industries like IT / I.S / Insurance/ Financial Services

Re: Uploading?

2006-08-02 Thread Jeremy Dunck
If this isn't true: " # if request.POST: " then errors is not assigned. On 8/2/06, Gabriel Puliatti <[EMAIL PROTECTED]> wrote: > > Hey, I've been trying to do an uploading page, where users can upload a > file, outside of the admin panel, of course. > > I follow http://www.djangoproject.com

REAL ESTATE

2006-08-02 Thread [EMAIL PROTECTED]
Real Estates At Real Estate, assisting you discover your home is just the starting. >From financing to linking with utilities to remodeling and beyond, we can facilitate. Real Estate Real Estate is a full-service real estate company with a recognized reputation for helping clients in all stages

REALESTATE

2006-08-02 Thread [EMAIL PROTECTED]
Real Estates At Real Estate, assisting you discover your home is just the starting. >From financing to linking with utilities to remodeling and beyond, we can facilitate. Real Estate Real Estate is a full-service real estate company with a recognized reputation for helping clients in all stages

Re: VMWare image for running/developing Django

2006-08-02 Thread [EMAIL PROTECTED]
Please post a link when you get the image online, I would love to give it a spin. /mac --~--~-~--~~~---~--~~ 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@googleg

Re: REALESTATE

2006-08-02 Thread nesh
reported to abuse. --~--~-~--~~~---~--~~ 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 to [EMAIL PROTEC

Re: Loop in template

2006-08-02 Thread spako
thanks for the short answer :) saved me around hunting for something. --~--~-~--~~~---~--~~ 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 unsub

Re: Having trouble with views

2006-08-02 Thread Tomas Jacobsen
Yes! That worked. Woho!! Thank you Malcolm and Martin! The next step is getting the detail view of each project to work. Do I need to write a new view for that, or can I use django generic view? My urls looks like this now: mydomain.com/portfolio = list all my projects mydomain.com/portfolio/c

Re: Protecting files

2006-08-02 Thread Max Sinelnikov
No, you couldn't. Bobby can upload to this directory, Sussie can upload to this directory, so Sussie can pass Django authorization with her own login/password and can download all files. The right way is to serve files in a directory which is not Apache-accessile as offered by Nebojsa Dordevic. 200

Linking to admin interface

2006-08-02 Thread [EMAIL PROTECTED]
I would like to make a link to the admin for certain objects on the public page, so that someone who has the acces rights, can click the link, log in, and fix whatever he wants fixed. Is there an easy way to do this, like a get_admin_url() or something? --~--~-~--~~~-

Re: Linking to admin interface

2006-08-02 Thread Malcolm Tredinnick
On Wed, 2006-08-02 at 02:53 -0700, [EMAIL PROTECTED] wrote: > I would like to make a link to the admin for certain objects on the > public page, so that someone who has the acces rights, can click the > link, log in, and fix whatever he wants fixed. Is there an easy way to > do this, like a get_ad

Re: Using a session variable in templates

2006-08-02 Thread Phil Powell
That sounds like just the thing I need - to hook into every request and inject into the context dictionary. Will give it a try. Thanks Chris! On 01/08/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Context processors might work: > http://www.djangoproject.com/documentation/templates_pytho

Re: Linking to admin interface

2006-08-02 Thread [EMAIL PROTECTED]
Thanks! --~--~-~--~~~---~--~~ 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 to [EMAIL PROTECTED] For mo

Re: Myghty Templates in Django - ver. 1

2006-08-02 Thread [EMAIL PROTECTED]
Thanks :) Wikified here: http://code.djangoproject.com/wiki/MyghtyTemplatesInDjango --~--~-~--~~~---~--~~ 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@googlegroup

Re: Django source editing offtopic

2006-08-02 Thread Kenneth Gonsalves
On 02-Aug-06, at 4:14 AM, toth anna wrote: > Sorry for boring the list with a slightly offtopic question. > I saw that many of you are using a Mac. (i used it perhaps > twice in my life) > Last week i needed to edit several python files on a MiniMac > (without net, b), and i used "built-in"

Re: Weird slowdown with dev server behind nat

2006-08-02 Thread Akatemik
> In my experience, when you encounter non-obvious but fairly consistant slow > downs in net traffic, the first thing to check is DNS. > > In this case, I'd make sure that each of the DNS cache servers that the client > consults to resolve the address of your server can perform both a forward and

Re: Project when using multiple sites

2006-08-02 Thread Jay Parlar
On 8/2/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > and obviously not all the sites are identical (they have different hostnames > and possibly different things enabled for that site) .. they go in the > site_NN directory. > > I usually have a group of 'shared' URL roots.. > url_app_X.py > and

Re: Design question (models? apps? field_type?)

2006-08-02 Thread Robert
Hello Julio and thank you for your helpful response. I think you got the main idea, but I'm not sure Here's a quick spec. I got from the guy. "Export market" (which shows the table after carrier logs in with columns below) | date_load | container_type | shipowner | container_type | place_load

Re: Project when using multiple sites

2006-08-02 Thread Ian Holsman
On 02/08/2006, at 10:29 PM, Jay Parlar wrote:On 8/2/06, Ian Holsman <[EMAIL PROTECTED]> wrote: and obviously not all the sites are identical (they have different hostnamesand possibly different things enabled for that site) .. they go in thesite_NN directory.I usually have a group of 'shared' URL r

Re: Project when using multiple sites

2006-08-02 Thread Jay Parlar
On 8/2/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > 4 steps. > > 1. copy the settings.py to new-settings.py > 2. add a site_id via the admin tool > 3. configure new-settings.py, changing the cookie name, SITE_ID, and > SECRET_KEY as above > 4. clone your httpd.conf with so that it uses new-setti

Re: What is the proper way to apply a patch to the release version

2006-08-02 Thread Jay Parlar
SVN doesn't (I believe) offer the ability to apply outside patches. Instead, you'll have to do what we do in the Unix world, use the "patch" program. You can find a Windows version of it here: http://gnuwin32.sourceforge.net/packages/patch.htm This program takes the patch file and applies it to

[White-paper] Full Text Search w/ MySQL

2006-08-02 Thread John Sutherland
Hi all, I just wanted to let you know about a white-paper written by one of the guys in my office. "Extending Django's database API to include full-text search" We spent a little bit of time coming up with some generic

Re: [White-paper] Full Text Search w/ MySQL

2006-08-02 Thread Adrian Holovaty
On 8/2/06, John Sutherland <[EMAIL PROTECTED]> wrote: > I just wanted to let you know about a white-paper written by one of > the guys in my office. > > "Extending Django's database API to include full-text search" > Hey

Re: Protecting files

2006-08-02 Thread Adrian Holovaty
On 8/2/06, Max Sinelnikov <[EMAIL PROTECTED]> wrote: > No, you couldn't. Bobby can upload to this directory, Sussie can upload to > this directory, so Sussie can pass Django authorization with her own > login/password and can download all files. The right way is to serve files > in a directory whi

Re: Weird slowdown with dev server behind nat

2006-08-02 Thread DavidA
Akatemik wrote: > > In my experience, when you encounter non-obvious but fairly consistant slow > > downs in net traffic, the first thing to check is DNS. > > > > In this case, I'd make sure that each of the DNS cache servers that the > > client > > consults to resolve the address of your server

'WSGIRequest' object has no attribute 'user'

2006-08-02 Thread Tyson Tate
I've been running the latest SVN of Django on my production server under Apache and FCGI. Occasionally, I've been getting error e-mails like so: -- Traceback (most recent call last): File "/home/ohgoditb/django_src/django/core/handlers/base.py", line 74, in get_response res

best way to include subdirectory as part of templates/ views?

2006-08-02 Thread Chris Kelly
Hey all, long time lurker, first time poster. I want to say thanks for this great framework, I am really loving developing with/ getting the hang of it. I am in the process of building my first major django app, and I have run into an issue that I think I can chalk up to unfamiliarity with the f

Re: 'WSGIRequest' object has no attribute 'user'

2006-08-02 Thread [EMAIL PROTECTED]
Does your template context processor contain: django.core.context_processors.auth? Chris --~--~-~--~~~---~--~~ 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@googl

Re: Full Text Search w/ MySQL

2006-08-02 Thread Adam Endicott
Nice work John, good stuff. Do any of the core devs see this as a candidate for inclusion in contrib? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: Distribute Django program to run on a local computer

2006-08-02 Thread Rob Hudson
I've made a little more progress this morning... I created a run script to start up Django without needed to edit manage.py directly. With this run script I can add other features later. Here's the gist of it. (Quotes is my test app I created) #!/usr/bin/env python import sys, os sys.path.app

Re: best way to include subdirectory as part of templates/ views?

2006-08-02 Thread [EMAIL PROTECTED]
This might be wrong, but from my work on Django and reading the docs. If you have a URL conf file like: urlpatterns = patterns('', (r'^articles/2003/$', 'news.views.special_case_2003'), ) It should work when you have the url www.abc.com/articles or if you have www.abc.com/testSite/articles

Re: runserver tracebacks on each HTTP-call

2006-08-02 Thread dummy
Hi, thanks for some hints. I can now tell you that the errors occure only on the admin pages, when the cursor moves very fast over the action icons 'edit' and 'add'. The symbols sometimes didn't display in the mouse-over state. The application/admin does work. Maybe the error is in the handlin

Re: runserver tracebacks on each HTTP-call

2006-08-02 Thread dummy
Hi, I have to correct me a little. I can now tell you that the errors occure only on the admin pages, when the cursor moves very fast over the action icons 'edit' and 'add'. The symbols sometimes didn't display in the mouse-over state. And they appear if I go click-by-click to list of users l

Two entries in a Manipulator.

2006-08-02 Thread Gabriel Puliatti
Hey, I'm trying to upload a file. However, I have two fields, one which is the file and the other one which is called togroups. However, reading the forms documentation I did not find a way to add two items, just one. The relevant code is here. http://pastebin.ca/111991 And this is the error tha

drag & drop for admin-interface

2006-08-02 Thread patrickk
I´m just doing some dojo DnD-stuff for the django admin-interface. so far, everything works fine ... I just have a couple of questions concerning your preferences before I submit my code. 1. right now, you can drag & drop table rows within the change-list. NOT every action is stored immediate

Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread Dan Shafer
I've spent the last few days looking intently at both Django and TG. I haven't yet built anything useful in either, but i've poked at them enough that I think I'm beginning to see through the fog, however dimly. My plan for the next six months is to create 4-6 substantial Web applications which wi

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread Chris Long
It's not very hard to integrate AJAX into Django, it is a bit more manual then TG (from what I've read). But with the AJAX frameworks out there, writing the javascript is far from hard. James has a blog article on AJAX and Django: http://www.b-list.org/weblog/2006/07/31/django-tips-simple-ajax-ex

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread Jay Parlar
On 8/2/06, Dan Shafer <[EMAIL PROTECTED]> wrote: > > My plan for the next six months is to create 4-6 substantial Web > applications which will all be variations on a single theme. IOW, I > anticipate lots of code and component reuse. On this point, it at least > *seems* to me I'd be better serve

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread Adrian Holovaty
On 8/2/06, Dan Shafer <[EMAIL PROTECTED]> wrote: > The second major factor in my design is the need for AJAX componentry and > in that regard, at least, it *seems* TG has a strong upper hand, though it > could clearly be implemented with some effort in Django. Can anyone address > the degree of d

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread James Bennett
On 8/2/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > You'll have to wait for the second part to see the complete > implementation, but he makes it look pretty easy so far. Or just read the code in the example page :) It's taking a bit longer than I'd anticipated to write up the full exegesis, but

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread James Bennett
On 8/2/06, Dan Shafer <[EMAIL PROTECTED]> wrote: > The second major factor in my design is the need for AJAX componentry and > in that regard, at least, it *seems* TG has a strong upper hand, though it > could clearly be implemented with some effort in Django. Can anyone address > the degree of d

Using form manipulator for data in multiple models

2006-08-02 Thread Mikeal Rogers
Hiya, In nearly every POST i get the data needs to be broken up and either modify or create more than one model. I was hoping to still be able to use the model manipulators for this but all the documentation seems to be very single form/post == single model manipulation. I'm wondering if

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread Jeremy Jones
Frommy experience with TG and Django, which the TG side may be a bit dated, the only upper hand that TG may have is that 1) TG includes MochiKit and 2) in TG, you just change a decorator to get a jsonified object from a controller rather than HTML. As others have chimed in, including MochiKit is

Re: VMWare image for running/developing Django

2006-08-02 Thread Matthijs
Personally I use a custom uniform server (http://sourceforge.net/projects/miniserver) which is basically a zip-file that you unpack on your Win32 windows system, and you're ready to django. This way you get apache2/mysql/phpmyadmin/etc. and django running in no time. To me that seems easier than

Re: Protecting files

2006-08-02 Thread Bill de hÓra
Todd O'Bryan wrote: > Part of my webapp will include a place for users to upload files that > they can save on the server. I teach high school, and this is mostly > designed as a way for students to quickly upload files so that they > can transfer them from home to school and vice versa. >

Re: Using form manipulator for data in multiple models

2006-08-02 Thread Chris Long
Not sure if this is of any help Create a manipulator with the form fields, doesn't matter if they are for two different models just make sure to remember the name. If you want to prepopulate the fields, you might have to fill in the data dictionary before creating the formwrapper and passing

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread patrickk
agreement and contradiction ... > * Write your view, and if it needs to respond to XMLHttpRequests, have > it serialize the response to XML or JSON. The tools in > django.core.serializers make this extremely easy -- simplejson is > bundled, so you can dump pretty much any Python data structure to

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread James Bennett
On 8/2/06, patrickk <[EMAIL PROTECTED]> wrote: > 1. It´s about certainty (which is not so important if you´re certain > about your js-toolkit; I´ve been playing around with different > toolkits for about half a year - and I´m still not sure which ones > better for me ...) With all due respect, th

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread Alan Green
On 8/3/06, Dan Shafer <[EMAIL PROTECTED]> wrote: > The second major factor in my design is the need for AJAX componentry and > in that regard, at least, it *seems* TG has a strong upper hand, though it > could clearly be implemented with some effort in Django. Can anyone address > the degree of

Should I Just Reinstall?

2006-08-02 Thread Dan Shafer
I'm now starting to build one or two tutorial projects in Django in my final phase evaluation of it and TurboGears. In preparation, I checked out of SVN the current trunk and ran through the setup/install process. I'm on OS X 10.4.7, by the way, and trying to run this locally with MySQL as the db.

put some initial data in the db

2006-08-02 Thread Gennan Chen
Hi!is there any way to put some initial data in the db by using "syncdb" option? Or I need to cook my own?? Gen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: What is the proper way to apply a patch to the release version

2006-08-02 Thread SmileyChris
I've found it easy enough to use TortoiseSVN to create patches. --~--~-~--~~~---~--~~ 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

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread gabor
James Bennett wrote: > On 8/2/06, patrickk <[EMAIL PROTECTED]> wrote: >> 3. Unless I´m very much mistaken, there´s already some development >> going on - in order to provide AJAX (Dojo) for the Admin-Interface. >> Since most of the django-users (I guess) will use the Admin- >> Interface, they prob

Re: put some initial data in the db

2006-08-02 Thread Sean
You could try this: http://www.djangoproject.com/documentation/django_admin/#sqlinitialdata-appname-appname Sean Gennan Chen wrote: > Hi! > > is there any way to put some initial data in the db by using "syncdb" > option? Or I need to cook my own?? > > Gen > > > > > --~--~-~--~~---

Re: put some initial data in the db

2006-08-02 Thread Malcolm Tredinnick
On Wed, 2006-08-02 at 14:52 -0700, Gennan Chen wrote: > Hi! > > > is there any way to put some initial data in the db by using "syncdb" > option? Or I need to cook my own?? http://www.djangoproject.com/documentation/model_api/#providing-initial-sql-data Regards, Malcolm > --~--~-~-

Re: drag & drop for admin-interface

2006-08-02 Thread Malcolm Tredinnick
Hi Patrick, On Wed, 2006-08-02 at 19:50 +0200, patrickk wrote: > I´m just doing some dojo DnD-stuff for the django admin-interface. > so far, everything works fine ... I just have a couple of questions > concerning your preferences before I submit my code. > > 1. right now, you can drag & drop

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread Malcolm Tredinnick
On Wed, 2006-08-02 at 21:45 +0200, patrickk wrote: [...] > 3. Unless I´m very much mistaken, there´s already some development > going on - in order to provide AJAX (Dojo) for the Admin-Interface. > Since most of the django-users (I guess) will use the Admin- > Interface, they probably won´t s

Re: Should I Just Reinstall?

2006-08-02 Thread Malcolm Tredinnick
On Wed, 2006-08-02 at 14:24 -0700, Dan Shafer wrote: > I'm now starting to build one or two tutorial projects in Django in my > final phase evaluation of it and TurboGears. In preparation, I checked > out of SVN the current trunk and ran through the setup/install > process. I'm on OS X 10.4.7, by

Re: Weird slowdown with dev server behind nat

2006-08-02 Thread Malcolm Tredinnick
On Wed, 2006-08-02 at 14:01 +, DavidA wrote: > > Akatemik wrote: > > > In my experience, when you encounter non-obvious but fairly consistant > > > slow > > > downs in net traffic, the first thing to check is DNS. > > > > > > In this case, I'd make sure that each of the DNS cache servers tha

Re: put some initial data in the db

2006-08-02 Thread Gennan Chen
Thanks for help. I did feel this hook is kind of strange since the whole idea of using model/DB API is to avoid writing SQL script. Since initial info I need to put in is some system info (such as host name, ip address...), which are not fixed, I intend to write another py file to do that instead

Re: drag & drop for admin-interface

2006-08-02 Thread patrickk
see http://demo.script.aculo.us/ajax/sortable_elements Am 03.08.2006 um 00:46 schrieb Malcolm Tredinnick: > > Hi Patrick, > > On Wed, 2006-08-02 at 19:50 +0200, patrickk wrote: >> I´m just doing some dojo DnD-stuff for the django admin-interface. >> so far, everything works fine ... I just have

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread patrickk
the django-user (in this case) IS the one who´s writing the code, of course. Am 03.08.2006 um 00:52 schrieb Malcolm Tredinnick: > > On Wed, 2006-08-02 at 21:45 +0200, patrickk wrote: > [...] >> 3. Unless I´m very much mistaken, there´s already some development >> going on - in order to provide

manage.py runserver throws error message

2006-08-02 Thread [EMAIL PROTECTED]
Hi everyone, I'm just following the Django tutorial, and I'm having trouble before even getting started... I created a new project, switched to the project's directory and typed "manage.py runserver". This is the error I got: C:\Documents and Settings\Administrador\Escritorio\site>manage.py run

Re: put some initial data in the db

2006-08-02 Thread Joseph Heck
You might just consider using the model objects, or even the default manipulators, to create your base objects. That's exactly what we did, and have both "initial_data.py" and "example_data.py" as a part of our build & testing process. At the start, we just have the model imports and away we go. It

manage.py runserver throws error message

2006-08-02 Thread neuruss
Hi everyone, I'm just following the Django tutorial, and I'm having trouble before even getting started... I created a new project, switched to the project's directory and typed "manage.py runserver". This is the error I got: C:\Documents and Settings\Administrador\Escritorio\site>manage.py run

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread Malcolm Tredinnick
On Thu, 2006-08-03 at 01:25 +0200, patrickk wrote: > the django-user (in this case) IS the one who´s writing the code, of > course. I understand that a person can be both a user and a developer, but that has nothing to do with what I wrote. My point was (and still is) that how the admin interfa

Re: drag & drop for admin-interface

2006-08-02 Thread Malcolm Tredinnick
Hey Patrick, On Thu, 2006-08-03 at 01:26 +0200, patrickk wrote: > see http://demo.script.aculo.us/ajax/sortable_elements I managed to work out that you were implementing some sort of sortable table. :-) Unfortunately, that doesn't fill in enough details to help me answer the questions you were a

Re: put some initial data in the db

2006-08-02 Thread Don Arbow
On Aug 2, 2006, at 4:17 PM, Gennan Chen wrote: > Thanks for help. I did feel this hook is kind of strange since the > whole idea of using model/DB API is to avoid writing SQL script. Umm, nope: http://www.b-list.org/weblog/2006/07/04/javascript-orm-and-hding-sql Don --~--~-~--~~

Re: put some initial data in the db

2006-08-02 Thread Russell Keith-Magee
On 8/3/06, Gennan Chen <[EMAIL PROTECTED]> wrote: Thanks for help. I did feel this hook is kind of strange since the whole idea of using model/DB API is to avoid writing SQL script. The other good reason to avoid this is that SQL inserts are somewhat DB specific. My reading is that the original

Re: put some initial data in the db

2006-08-02 Thread Malcolm Tredinnick
On Wed, 2006-08-02 at 16:17 -0700, Gennan Chen wrote: > Thanks for help. I did feel this hook is kind of strange since the > whole idea of using model/DB API is to avoid writing SQL script. > > > Since initial info I need to put in is some system info (such as host > name, ip address...), which

Re: manage.py runserver throws error message

2006-08-02 Thread Malcolm Tredinnick
On Wed, 2006-08-02 at 23:30 +, [EMAIL PROTECTED] wrote: > Hi everyone, > > I'm just following the Django tutorial, and I'm having trouble before > even getting started... > > I created a new project, switched to the project's directory and typed > "manage.py runserver". This is the error I g

Re: Protecting files

2006-08-02 Thread Derek Hoy
Sorry, this doesn't help with your problem with Apache, but Lighttpd has this: http://lighttpd.net/documentation/secdownload.html -- Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: drag & drop for admin-interface

2006-08-02 Thread David Robinson
patrickk wrote: > see http://demo.script.aculo.us/ajax/sortable_elements >> On Wed, 2006-08-02 at 19:50 +0200, patrickk wrote: >>> I´m just doing some dojo DnD-stuff for the django admin-interface. >>> ... >>> question: would you prefer instant saving? The thing that I wasn't clear about was wh

Re: drag & drop for admin-interface

2006-08-02 Thread arthur debert
Hi Patrick. I've been planing to implement this, but haven't found the time to. I know code speaks louder than words... but I've done some thought over this and would like to share my opinions. > 1. right now, you can drag & drop table rows within the change-list. > NOT every action is stored

Japanese translation of docs are now up to 0.95

2006-08-02 Thread Yasushi Masuda
Dear Django users, I'm happy to announce that I just have finished updating Japanese translation of all django docs come with django distribution, for release 0.95 (SVN revision 3491). Translated docs are published on my site: http://ymasuda.jp/python/django/docs/ . You may also access translati

Re: put some initial data in the db

2006-08-02 Thread Gennan Chen
Thanks! Joe and Russ. I plan to do it this way. I am pretty new to django. So, i really don't want to mess it too much, such as create my own manger etc... Gen On Aug 2, 2006, at 4:45 PM, Joseph Heck wrote:You might just consider using the model objects, or even the default manipulators, to create

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread James Bennett
On 8/2/06, gabor <[EMAIL PROTECTED]> wrote: > django does not force you to use the django-templating-system (you can > use myghty/zope-tal/whatever instead), but it clearly recommends the > django-templating-system, and that's the system which is the most > tested/streamlined/documented/developed.

Re: manage.py runserver throws error message

2006-08-02 Thread neuruss
Malcolm Tredinnick wrote: > So the error is saying it can't find settings.py in your project's > directory. Is it there? Yes, it is > Can you, inside the project directory, start a Python prompt and > successfully run "import settings"? Yes, I can. > Is there anything you've forgotten to tel

method as default field option

2006-08-02 Thread bernie2004
i would really like to know if there is a way around getting the same values when adding new entries through the admin when using defaults like those: models.CharField( default=random.randint(1,1000) ) or models.CharField( default=time.time() ) or in other words: is there any way to insert by de

Re: Weird slowdown with dev server behind nat

2006-08-02 Thread DavidA
Malcolm Tredinnick wrote: > Um, Dave? The original poster was using the development server. Apache > doesn't get a seat at the table here. :-) Er ... in my best Emily Litella impression: "Never mind" --~--~-~--~~~---~--~~ You received this message because you ar

Re: method as default field option

2006-08-02 Thread Malcolm Tredinnick
On Wed, 2006-08-02 at 18:41 -0700, bernie2004 wrote: > i would really like to know if there is a way around getting > the same values when adding new entries through the admin > when using defaults like those: > > models.CharField( default=random.randint(1,1000) ) > or > models.CharField( default

Re: Should I Just Reinstall?

2006-08-02 Thread Dan Shafer
Thanks for the note, Malcolm. I remain stymied.On 8/2/06, Malcolm Tredinnick <[EMAIL PROTECTED] > wrote:If you want to work with an interactive prompt, the easiest way is to be inside your project directory (jobs/ in your case, I guess) and run"./manage.py shell". This will set up DJANGO_SETTINGS_M

Flatpages problem

2006-08-02 Thread Edmund
Newbie question here... I installed Flatpages as per the docs. Then, I created a flatpage via the admin interface, and also checked that the SITE_IDs shown matched that in my settings.py. But, I get a 404. On tracing through the 404, I see that it is being raised in ~/django_src/django/shortcuts/

Re: Should I Just Reinstall?

2006-08-02 Thread Malcolm Tredinnick
On Wed, 2006-08-02 at 20:11 -0700, Dan Shafer wrote: > Thanks for the note, Malcolm. I remain stymied. > > On 8/2/06, Malcolm Tredinnick <[EMAIL PROTECTED] > wrote: > > > If you want to work with an interactive prompt, the easiest > way is to be > inside

compare dates in the template language

2006-08-02 Thread [EMAIL PROTECTED]
Hi, Is there any way to compare two dates in the Django template language? For example, I'd like to if the date variable due_date is before or after the current date. The timesince and timeuntil filters work, but they seem to require that I know ahead of time the order of the dates I'm comparing

Re: put some initial data in the db

2006-08-02 Thread Alan Green
On 8/3/06, Gennan Chen <[EMAIL PROTECTED]> wrote: > is there any way to put some initial data in the db by using "syncdb" > option? Or I need to cook my own?? Hi Gen, You can put code into the management.py file http://www.bright-green.com/blog/2006_07_12/initialising_application_data_.html Al

Re: Should I Just Reinstall?

2006-08-02 Thread Dan Shafer
Malcolm,Thanks for the great, detailed response. I really appreciate it.After reading your note and looking over other stuff I found rummaging about the user list, I decided I had really started down a sort of false-start path. So I did start over with the official version install from the Django s

Re: put some initial data in the db

2006-08-02 Thread Malcolm Tredinnick
On Thu, 2006-08-03 at 14:30 +1000, Alan Green wrote: > On 8/3/06, Gennan Chen <[EMAIL PROTECTED]> wrote: > > is there any way to put some initial data in the db by using "syncdb" > > option? Or I need to cook my own?? > > Hi Gen, > > You can put code into the management.py file > > http://www.b

Re: compare dates in the template language

2006-08-02 Thread Malcolm Tredinnick
On Thu, 2006-08-03 at 04:21 +, [EMAIL PROTECTED] wrote: > Hi, > > Is there any way to compare two dates in the Django template language? There is not comparison (beyond equals / not equals) in the template language at all. Even "ifchanged" is just an equality comparison spread over a wide ar

Re: Is AJAX Alone Reason to Use TG?

2006-08-02 Thread Don Arbow
On Aug 2, 2006, at 3:28 PM, gabor wrote: > > the same way i would like to see a "recommended" javascript library. Which, though, is the recommended one? Do I want lightweight, or widget heaven? One that follows standards (or should I say convention) or one that pushes the envelope? If I choo