Re: How to import ModelForm Dynamically?

2008-06-02 Thread David.D
I worked! Thank you very much. On Jun 3, 1:15 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Mon, Jun 2, 2008 at 9:06 AM, David.D <[EMAIL PROTECTED]> wrote: > > views.py > > == > > def model_form(request, model_name): > >    form_class = __import__('products.models.%sForm'%model_name)

Re: How to import ModelForm Dynamically?

2008-06-02 Thread David.D
Thanks. But I got TypeError at /products/ModelA/ 'module' object is not callable On Jun 3, 1:12 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Jun 2, 2008 at 10:06 AM, David.D <[EMAIL PROTECTED]> wrote: > > > In my "products" app: > > > models.py > > > > > class

Re: "Includes" directory?

2008-06-02 Thread James Bennett
On Mon, Jun 2, 2008 at 1:29 PM, Huuuze <[EMAIL PROTECTED]> wrote: > I'm new to Django, so please be gentle. Basic question: when > developing a web app, I've typically created an "includes" directory > which stores commonly used functions or methods. From a best practice > standpoint, is it

Re: How to import ModelForm Dynamically?

2008-06-02 Thread James Bennett
On Mon, Jun 2, 2008 at 9:06 AM, David.D <[EMAIL PROTECTED]> wrote: > views.py > == > def model_form(request, model_name): >form_class = __import__('products.models.%sForm'%model_name) >form = form_class() >... > > model_name is a string Unless you really grok how __import__()

Re: How to import ModelForm Dynamically?

2008-06-02 Thread Karen Tracey
On Mon, Jun 2, 2008 at 10:06 AM, David.D <[EMAIL PROTECTED]> wrote: > > In my "products" app: > > models.py > > > class ModelA(models.Model): >... > > class ModelB(models.Model): >... > > class ModelC(models.Model): >... > ... > class ModelAForm(ModelForm): >class Meta: >

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread Karen Tracey
On Mon, Jun 2, 2008 at 5:43 PM, <[EMAIL PROTECTED]> wrote: > > could not create i get when i reinstall 2.0. > > however there is a map psycopg2. but i should have psycopg? > > because it says no module psycopg. > > > but i mean i have that this is going in circles, when i change to >

Re: Custom CSS for newforms using ModelForm

2008-06-02 Thread Eric Abrahamsen
Hey there, You probably want this: http://www.djangoproject.com/documentation/newforms/#customizing-widget-instances You'll have to specify the field types for your model, then widget types for each field, and the extra attributes go in the widget. Yrs, E On Jun 3, 2008, at 2:23 AM, Mayank

Re: newforms

2008-06-02 Thread Eric Abrahamsen
Hi Bobby, you're best off going through the tutorial in the online docs, that has a basic explanation of how views made, and how you can render a template with a given context. Try this bit in particular:

Re: sorting inspectdb output

2008-06-02 Thread [EMAIL PROTECTED]
If a class is defined after it is being referenced, you can just modify the code to reference the class name with quotes around it and it should alleviate any errors. class Table1(models.Model): table1_id = models.AutoField(primary_key=True) table2 = models.ForeignKey('Table2') # notice

django-tagging installation problem

2008-06-02 Thread M.Ganesh
Hi, Running 'python manage.py syncdb' after including 'tagging' in the INSTALLED_APPS throws the following error. My django version : (0, 97, 'pre') r7543 (trunk) Python version : Python 2.5.1 (r251:54863, Mar 7 2008, 03:41:45) django tagging version : (0, 2.1001, None) How do I

Quickly and Easily, a Touch of Elegance

2008-06-02 Thread health
Quickly and Easily, a Touch of Elegance By MARK BITTMAN Published: April 9, 2008 MOSTLY I play down elegance — it’s too complicated and fussy for most home cooks to bother with — but occasionally I’m surprised at how easily it can be achieved. That was the case a couple of weeks ago when I

More Than 100 Windows XP Tricks,Tweaks - You can do easily

2008-06-02 Thread Jenilia Jemma
Click Here -- --- Online Dating Tips - Interesting & Informative http://funlimit.blogspot.com ---

Many to Many field and underscores

2008-06-02 Thread Eric Wertman
I'm having an odd problem with my models.. I have a model RequestType, that's supposed to be related to a model Service via a table, request_type_service. This all works fine, but it's looking for the wrong column, and throwing this error : Unknown column 'request_type_service.requesttype_id'

Re: pass complete context from template to simple_tag

2008-06-02 Thread Julien
simple_tag doesn't accept context as argument, yet. You'll have to create your own tag. See: http://groups.google.com/group/django-users/browse_thread/thread/b3b3d7894f48b609/cf74b962aa68085e?lnk=gst=simple_tag+context#cf74b962aa68085e On Jun 3, 12:36 am, Berco Beute <[EMAIL PROTECTED]> wrote: >

Re: Custom CSS for newforms using ModelForm

2008-06-02 Thread mw
I'm not entirely sure I understand the question, but a form generated by newforms and rendered through a template can easily just have a CSS file attached to it like you would normal HTML. I just have a standard at the top of a template that I pass the modelform created form to. On Jun 2,

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread circularfunc
could not create i get when i reinstall 2.0. however there is a map psycopg2. but i should have psycopg? because it says no module psycopg. but i mean i have that this is going in circles, when i change to DATABASE_ENGINE = 'postgresql_psycopg2' it works. but i get > ValueError: invalid

Silly DateTimeField question--display the hour in template?

2008-06-02 Thread mw
Hello, I feel like I must be missing something really obvious. I have a DateTimeField setup as apart of a model and it correctly stores the date and time and I can see this in the admin panel, however, when I spit out the variable in the template system, it only shows the date. I'm passing it

Re: "Includes" directory?

2008-06-02 Thread Juanjo Conti
I do it like that. Remember to put a __init__.py file inside your 'includes' directory so you can handle it as a package. Juanjo On Mon, Jun 2, 2008 at 3:29 PM, Huuuze <[EMAIL PROTECTED]> wrote: > > I'm new to Django, so please be gentle. Basic question: when > developing a web app, I've

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread circularfunc
i have downloaded that already. is it 2.0 i should have or 1.1? On 2 Juni, 23:17, neuro_damage <[EMAIL PROTECTED]> wrote: > http://www.stickpeople.com/projects/python/win-psycopg/. > > Go there download the appropriate package for your system. Then you > should have the module. > > On Jun 2,

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread neuro_damage
http://www.stickpeople.com/projects/python/win-psycopg/. Go there download the appropriate package for your system. Then you should have the module. On Jun 2, 4:15 pm, [EMAIL PROTECTED] wrote: > C:\Python25\Lib\site-packages\django\bin\webapps>manage.py syncdb > Traceback (most recent call

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread circularfunc
C:\Python25\Lib\site-packages\django\bin\webapps>manage.py syncdb Traceback (most recent call last): File "C:\Python25\Lib\site-packages\django\bin\webapps\manage.py", line 11, in execute_manager(settings) File "C:\Python25\lib\site-packages\django\core\management.py", line 1672, in

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread circularfunc
can i copy text from the windows command prompt? when just using postgresql i get: error loading psycopg module no module named psycopg im not using the subversion download but the latest official version. On 2 Juni, 23:06, neuro_damage <[EMAIL PROTECTED]> wrote: > can you post all the

Re: syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread neuro_damage
can you post all the output shown please. Looks like it doesn't like the postgres version, are you using the right module there's two the two below are the ones available, make sure to use the appropriate one. 'postgresql_psycopg2', 'postgresql' On Jun 2, 3:42 pm, [EMAIL PROTECTED] wrote: >

syncdb: invalid literal for int with base 10: '1,'

2008-06-02 Thread circularfunc
when running syncdb i get: postgres_version = [int(val) for val in cursor.fetchone()[0].split() [1].split('.')] invalid literal for int() with base 10: '1,' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Help with request encoding (again)

2008-06-02 Thread John M
Karen, Thanks so much for keeping up on this. I'll run through the software to find the correct answer. This is a side project, and my time gets in bursts, sorry for the late reply. John On May 29, 9:13 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 29, 2008 at 11:52 PM, John M

Re: newforms

2008-06-02 Thread Bobby Roberts
ok i'm new to django... can you explain that? On Jun 2, 3:26 pm, Andrew Ingram <[EMAIL PROTECTED]> wrote: > It looks like you need to add the form to your view contexts. > >return render_to_response ("UPSRateLookUp/upsratelookup.html",{ > "form": form >"results": results,

Re: newforms

2008-06-02 Thread Andrew Ingram
It looks like you need to add the form to your view contexts. return render_to_response ("UPSRateLookUp/upsratelookup.html",{ "form": form "results": results, "query": query }) else: form = form_upslookup() return render_to_response

Re: newforms

2008-06-02 Thread Bobby Roberts
yeah i'm looking at that but it doesn't make sense to me. here's a snip of my template, the forms.py file and the views.py file. Here are my questions: 1. the form doesn't show up on the template... what am I missing here to get my form to show up? 2. how in the world do I tell the

Re: psql to postgres, IA prompt, how to create database?

2008-06-02 Thread Thierry Schork
On Mon, 2008-06-02 at 10:15 -0700, [EMAIL PROTECTED] wrote: > and how do i access or change password etc for this database later? > is there a turorial somewhere? > http://www.postgresql.org/docs/manuals/ http://www.postgresql.org/docs/8.0/interactive/sql-alteruser.html >From that last page:

"Includes" directory?

2008-06-02 Thread Huuuze
I'm new to Django, so please be gentle. Basic question: when developing a web app, I've typically created an "includes" directory which stores commonly used functions or methods. From a best practice standpoint, is it recommended that I create an "includes" directory (not application) within my

Re: psql to postgres, IA prompt, how to create database?

2008-06-02 Thread Thierry Schork
\h before any command gives you the help: \h CREATE DATABASE Command: CREATE DATABASE Description: create a new database Syntax: CREATE DATABASE name [ [ WITH ] [ OWNER [=] dbowner ] [ TEMPLATE [=] template ] [ ENCODING [=] encoding ] [ TABLESPACE [=]

Custom CSS for newforms using ModelForm

2008-06-02 Thread Mayank Dhingra
Hi, I was looking to add custom css to the fields of a (new)form that I created using ModelForm but couldn't find any mention or discussion on it. Does any know know how can I achieve it ? Thanks in advance, --~--~-~--~~~---~--~~ You received this message

Re: Navigation components

2008-06-02 Thread Peter Rowell
A site I finished a few months ago had a 4 level hierarchy. I created a Section model and all content classes had an FK to Section (including Section itself). E.g., Home Section A Section A.1 Article Video Audio Books (etc., etc.) Section A.2 (etc.)

problem with tutorial(polls)app, database problem

2008-06-02 Thread circularfunc
self.connection ) Database.connect(conn_string, **self.options) psycopg2.OperationalError: missing "=" after "owner" in connection info string did this to create the database: CREATE USER django_user PASSWORD 'passwd'; CREATE DATABASE django owner=django_user;

Re: psql to postgres, IA prompt, how to create database?

2008-06-02 Thread Tom Pope
hi http://www.postgresql.org/docs/ On 6/2/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > and how do i access or change password etc for this database later? > is there a turorial somewhere? > > > On 2 Juni, 18:34, "Tom Pope" <[EMAIL PROTECTED]> wrote: > > hi > > > > CREATE USER

Re: Method .cache() for QuerySet

2008-06-02 Thread Marinho Brandao
Hi James, I disagree to you. My intention never was make a ticket (this I did, after, when I saw that would be a nice idea for the framework). I know what is a ticket and what is a snippet and what are the diferences between one and other, and I created it as a snippet because it can be util

Re: About newforms-admin branch

2008-06-02 Thread Jeff Anderson
Grupo Django wrote: On 2 jun, 00:26, Jeff Anderson <[EMAIL PROTECTED]> wrote: Grupo Django wrote: When newforms-admin is merged to the trunk, what will happen with all the sites that are currently using the current admin application? It's completely different. Should we change every

Re: psql to postgres, IA prompt, how to create database?

2008-06-02 Thread circularfunc
and how do i access or change password etc for this database later? is there a turorial somewhere? On 2 Juni, 18:34, "Tom Pope" <[EMAIL PROTECTED]> wrote: > hi > > CREATE USER django_user PASSWORD 'passwd'; > > CREATE DATABASE django owner=django_user; > > i hope this helps > > On 6/2/08, [EMAIL

Re: Method .cache() for QuerySet

2008-06-02 Thread James Bennett
On Mon, Jun 2, 2008 at 11:58 AM, Marinho Brandao <[EMAIL PROTECTED]> wrote: > Meanwhile, I am not sure if it is safe as I need, so, I wish to know > your opinion about it: Review of patches proposed for Django should take place in the Django ticket tracker; djangosnippets is not the appropriate

Method .cache() for QuerySet

2008-06-02 Thread Marinho Brandao
Hi, eu created the method .cache() for the QuerySet class and it is being util for me (the performance and scalability is very best than before). Meanwhile, I am not sure if it is safe as I need, so, I wish to know your opinion about it: http://www.djangosnippets.org/snippets/777/ thank you

Re: How nicely does django play in a distributed environment?

2008-06-02 Thread James Bennett
On Mon, Jun 2, 2008 at 7:06 AM, Phillip B Oldham <[EMAIL PROTECTED]> wrote: > I'm looking at using django to replace our current CMS application > written in PHP. Currently we have two servers behind a load balancer, > and everything's nice and stable. We're getting a consistent month-on- > month

Re: psql to postgres, IA prompt, how to create database?

2008-06-02 Thread Tom Pope
hi CREATE USER django_user PASSWORD 'passwd'; CREATE DATABASE django owner=django_user; i hope this helps On 6/2/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > i started the psql to postgres interactive prompt and there supposedly > is a command CREATE DATABASE but just writing that

psql to postgres, IA prompt, how to create database?

2008-06-02 Thread circularfunc
i started the psql to postgres interactive prompt and there supposedly is a command CREATE DATABASE but just writing that doesnt help. i need to create a database. doing the django tutorial: http://www.djangoproject.com/documentation/tutorial01/

Re: Just getting started

2008-06-02 Thread jfinke
Thanks for the insight Russ. I appreciate it. On May 31, 3:09 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Thu, May 29, 2008 at 10:14 PM, jfinke <[EMAIL PROTECTED]> wrote: > > > The problem then becomes is there any easy to sync the notebook > > information back with HQ when the

Re: How nicely does django play in a distributed environment?

2008-06-02 Thread The Code Janitor
If you consider that Django started as an application for the news paper industry and the associated sites you might get a reasonable guess at answering your own question. I agree with all the other posts in that correctly building the infrastructure and properly engineering your application to

Re: Navigation components

2008-06-02 Thread Michael Wieher
I like to nest {blocks} using django's cool {block content} feature to have a "base page" and all my subsequent pages inherit from it... that, and some intelligent {{variables}} being passed pretty much handles things for me, but my site isn't terribly complex. On Mon, Jun 2, 2008 at 10:46 AM,

Navigation components

2008-06-02 Thread Will
Hi all I'd like to start a discussion about generating navigation components. Despite their importance and their fairly generic nature, best practice is not obvious to me after trawling through hundreds of posts, blogs etc. Anyone that's interested, could you briefly state how you do it,

Re: newforms

2008-06-02 Thread yml
Hello, Here it is some documentation : * http://www.djangobook.com/en/1.0/chapter07/ * http://www.djangoproject.com/documentation/newforms/ The short answer to your question is the switch is done inside the views.py. You will make at least 2 cases there one if the "method" is "POST" and an

Re: How to change Apache port? do I need to?

2008-06-02 Thread circularfunc
this is what i cant do: "Assuming there were no errors in any of the steps up to this point, you should now be able to browse to localhost/testproject and be greeted with this page:" Not Found The requested URL /testproject was not found on this server. i can however see that these works:

Re: How to change Apache port? do I need to?

2008-06-02 Thread Thierry Schork
Sorry, I'm a linux only user for the last 8 years. Apache don't have official front-end as far as I know, so you have to check with the package where your apache server came from. On Mon, Jun 2, 2008 at 5:06 PM, <[EMAIL PROTECTED]> wrote: > > also, i have a problem with the apache GUI on

Re: How to change Apache port? do I need to?

2008-06-02 Thread Thierry Schork
On Mon, Jun 2, 2008 at 5:03 PM, <[EMAIL PROTECTED]> wrote: > > so this: > "Note that if you choose to run Apache on port 8000, it will conflict > with the default port for the Django development/test server. Not > cool. " > > is not a problem as it is? No. It would only be a problem if you

Re: How to change Apache port? do I need to?

2008-06-02 Thread circularfunc
also, i have a problem with the apache GUI on windows. it doesnt allow me to stop or restart the server i have to do that from the command prompt. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Multi-table Models and Fixtures

2008-06-02 Thread Greg Taylor
I've been looking through the source to try to see if there is any indicator as to whether this is the intended behavior. If nobody speaks up today, I'll file a bug, as it would appear to be. --~--~-~--~~~---~--~~ You received this message because you are

Re: How to change Apache port? do I need to?

2008-06-02 Thread circularfunc
so this: "Note that if you choose to run Apache on port 8000, it will conflict with the default port for the Django development/test server. Not cool. " is not a problem as it is? On 2 Juni, 16:59, "Thierry Schork" <[EMAIL PROTECTED]> wrote: > put exactly what you want. > 80 is the default HTTP

Re: How to change Apache port? do I need to?

2008-06-02 Thread Thierry Schork
put exactly what you want. 80 is the default HTTP port. 443 is the default HTTPS 8080 is often used for the proxy, but as long as it don't conflict with another service on your server, you can put anything you want On Mon, Jun 2, 2008 at 4:55 PM, <[EMAIL PROTECTED]> wrote: > > in httpf.conf : >

Re: How to change Apache port? do I need to?

2008-06-02 Thread circularfunc
in httpf.conf : #Listen 12.34.56.78:80 Listen 80 #ServerName thedude-PC.Belkin:80 what should i ahve here 80 or 00 or something else? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Template tag to split list evenly

2008-06-02 Thread Tim Chase
> I am building a django-app that pulls call logs from a mysql > database and displays reports, I am trying to make the reports > printable and I use a CSS that splits them into two columns on > the page. I am trying to find a template tag that will split > the lists up so that they will fit onto

Re: model inheritance and admin (qs-rf & nf-a)

2008-06-02 Thread ekellner
> Have you done any experimentation to see how far off working it is in the > newforms-admin branch...and whether it's any easier to fix there? I believe > the plan is to implement this support exclusively in newforms-admin and not > worry about getting it to work on the old admin. (Someone

newforms

2008-06-02 Thread Bobby Roberts
hi all. I'm new to python and Django but have extensive experience on the microsoft side of things. I am liking what I see so far with this platform. forms/newforms seems confusing to me and I need some help tying everything together. I have a simple one field form built in my forms.py and

Re: Template tag to split list evenly

2008-06-02 Thread Tim Chase
1) no body...this leaves the question up to a lot of interpretation. 2) what happens if the list has an odd number of items list? 3) what happens if there are a prime number of items in the list? You might also be interested in my columnize() filter[1] which could be modified to use a

pass complete context from template to simple_tag

2008-06-02 Thread Berco Beute
I've written a simple tag that renders a template, but to do so it needs the complete context. How can I pass that from a template? Thanks, 2B --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Use variables inside an 'include' tag (and/or: how to set a variable in a template)

2008-06-02 Thread Berco Beute
That's seems to be working, the only thing I've left to do is passing the complete context from the template to the simple_tag, else the simple_tag won't be able to render the template. How is that normally done in Python? 2B On May 31, 7:32 am, Alex Morega <[EMAIL PROTECTED]> wrote: > Create

Re: How nicely does django play in a distributed environment?

2008-06-02 Thread Michael Wieher
I'd imagine like anything else, the tools exist to do it right, but its up to the work man to put the round pegs in the square hole, er or vice-versa? The issues you'll have when you discuss distributed loads rarely fall onto the appserver itself, rather, they come into play regarding cache

Re: Template tag to split list evenly

2008-06-02 Thread mike171562
I am building a django-app that pulls call logs from a mysql database and displays reports, I am trying to make the reports printable and I use a CSS that splits them into two columns on the page. I am trying to find a template tag that will split the lists up so that they will fit onto a printed

Template tag to split list evenly

2008-06-02 Thread mike171562
Hello, --~--~-~--~~~---~--~~ 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

How to import ModelForm Dynamically?

2008-06-02 Thread David.D
In my "products" app: models.py class ModelA(models.Model): ... class ModelB(models.Model): ... class ModelC(models.Model): ... ... class ModelAForm(ModelForm): class Meta: model = ModelA class ModelBForm(ModelForm): class Meta: model = ModelB

Side effect if using threading.local ?

2008-06-02 Thread Jens
Hi... Are there exist any side effect by using threading.local, like it describe in the Wiki: http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser - Performance issue? - does it works in all server setup variants? Thx. Jens --~--~-~--~~~---~--~~ You

Please help me ...

2008-06-02 Thread me
http://windowsxpprotips.blogspot.com/ how to manage windows xp pro ,some tips to handle xp pro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: model inheritance and admin (qs-rf & nf-a)

2008-06-02 Thread Karen Tracey
On Mon, Jun 2, 2008 at 8:19 AM, Elizabeth Kellner <[EMAIL PROTECTED]> wrote: > On 28 Mai, 14:15, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > Model inheritance is not supported by the admin: > > > > http://code.djangoproject.com/ticket/6755 > > > > There's a patch on that ticket, but I have no

How to change Apache port? do I need to?

2008-06-02 Thread circularfunc
should i use 8080 or 8000 for apache? i got all the way down to the end of the tutorial(see below) but when i run testproject it is not at localhost/testproject but at localhost/ 8000 so i need to change port for apache? how do i change the port? http://thinkhole.org/wp/django-on-windows/

kindk

2008-06-02 Thread me
http://windowsxpprotips.blogspot.com/ how to manage windows xp pro ,some tips to handle xp pro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Apache file permission, wont let me edit file

2008-06-02 Thread Thierry Schork
You have to be the "root" user of the server to do that. Use the "su" command (or "sudo bash" if sudo is intalled) into a terminal and edit the file from the terminal. You probably try to edit the file from a normal user account, which have just a read permission to that file. On Mon, Jun 2,

Re: Apache file permission, wont let me edit file

2008-06-02 Thread Christian Joergensen
slix wrote: > i try to edit httpd.conf file by adding > LoadModule python_module modules/mod_python.so > > but it wont let me. how do i change the file permissions to do this? > also is there some security issues here i should consider? You probably need administrative rights (root access) for

Re: mod-python, LoadModule python_module modules/mod_python.so

2008-06-02 Thread slix
ty i solved it now. should i change back the permission after having edited the file? On 2 Juni, 14:30, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > slix wrote: > > how do i check my file permissions? > > Last time I used Windows one selected File->Properties. That was many > versions of

Template tag render method doesn't get called

2008-06-02 Thread Julien
Similar issues have been raised in [1] and [2], but unfortunately I could not find an answer for this. Basically I have a custom template whose 'render' method never gets called (the 'init', however, does): class ShowParticipantNode(Node): def __init__(self, participant, edit):

Re: How nicely does django play in a distributed environment?

2008-06-02 Thread Ed McCaffrey
I'm new to Django, as well, so don't take this reply as authoritative. Chapter 20 of The Django book -- www.djangobook.com -- details various deployment scenarios, including ones distributed among several servers. It suggests that it is relatively easy to scale Django across several tiers (web

Re: Getting template errors before control goes to Django (Or so it seems)

2008-06-02 Thread Karen Tracey
On Mon, Jun 2, 2008 at 3:24 AM, shabda <[EMAIL PROTECTED]> wrote: > > I am trying to access an URL, and I get an error like this, > So if the ultimate error message isn't entirely helpful, the traceback can often help... > Traceback (most recent call last): > > File

Re: mod-python, LoadModule python_module modules/mod_python.so

2008-06-02 Thread Graham Dumpleton
slix wrote: > how do i check my file permissions? Last time I used Windows one selected File->Properties. That was many versions of Windows ago however, so how it is done know I don't know. Maybe you need to do some reading on how to run and administer Windows. > do i need to change them in

Getting the language from the URL: locale_url

2008-06-02 Thread Joost Cassee
Hi all, About two years ago atlithorn posted some code to get the language for a page from the URL. I have extended it and made it into a Django application. Basically, it allows you to have URLs like 'http:// www.example.com/nl/about/". It is located at:

Re: model inheritance and admin (qs-rf & nf-a)

2008-06-02 Thread Elizabeth Kellner
On 28 Mai, 14:15, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Model inheritance is not supported by the admin: > > http://code.djangoproject.com/ticket/6755 > > There's a patch on that ticket, but I have no idea if it works, solves the > complete problem, etc.  (If it were as easy as that patch,

Re: Outside a web server, as a service

2008-06-02 Thread Karen Tracey
On Mon, Jun 2, 2008 at 3:33 AM, Alexandre Parenteau <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm a newbie with Django, and I'm having trouble accessing django > database outside the web server. > > I'm using mod_python+apache+MySQL without any problem. > > However I need for my project to *also*

Apache file permission, wont let me edit file

2008-06-02 Thread slix
i try to edit httpd.conf file by adding LoadModule python_module modules/mod_python.so but it wont let me. how do i change the file permissions to do this? also is there some security issues here i should consider? --~--~-~--~~~---~--~~ You received this message

How nicely does django play in a distributed environment?

2008-06-02 Thread Phillip B Oldham
I'm looking at using django to replace our current CMS application written in PHP. Currently we have two servers behind a load balancer, and everything's nice and stable. We're getting a consistent month-on- month traffic increase though and I'm looking at moving to a more distributed model -

FormWizard

2008-06-02 Thread wolky
hi, I wanna ask a question about FormWizard in multiple step forms. I wanna create a 10 steps form. I can create with FromWizard module but I couldn't save all data to the database in def done(self, request, form_list): function. how can I save all data to the database end of the form? Thanks for

Re: mod-python, LoadModule python_module modules/mod_python.so

2008-06-02 Thread slix
how do i check my file permissions? do i need to change them in windows or apache? why is this anyway, is this a securitymeasure? On 2 Juni, 03:30, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Jun 2, 10:57 am, slix <[EMAIL PROTECTED]> wrote: > > > LoadModule python_module

RE: Outside a web server, as a service

2008-06-02 Thread Mat
Ive been using Django Bootstrap with a CRON job, (http://www.djangosnippets.org/snippets/374/) Been working wonderfully for me. Hope it helps, looks very similar to your code though... Mat -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

Outside a web server, as a service

2008-06-02 Thread Alexandre Parenteau
Hi, I'm a newbie with Django, and I'm having trouble accessing django database outside the web server. I'm using mod_python+apache+MySQL without any problem. However I need for my project to *also* access the database *outside* of mod_python. I wrote a script service.py which is supposed to

Re: About newforms-admin branch

2008-06-02 Thread Grupo Django
On 2 jun, 00:26, Jeff Anderson <[EMAIL PROTECTED]> wrote: > Grupo Django wrote: > > When newforms-admin is merged to the trunk, what will happen with all > > the sites that are currently using the current admin application? It's > > completely different. Should we change every single project to

Getting template errors before control goes to Django (Or so it seems)

2008-06-02 Thread shabda
I am trying to access an URL, and I get an error like this, Traceback (most recent call last): File "C:\Python25.1\lib\site-packages\django\core\servers \basehttp.py", line 277, in run self.result = application(self.environ, self.start_response) File

Re: click download, click install, go! no....

2008-06-02 Thread Andre Meyer
hi all i had the same experience the first time i wanted to try out django. the need to set up apache and mysql before you can even do anything is quite troublesome for first-time users. but this is absolutely not necessary. you can go strated almost instantly with the built-in server and