Re: Apache + Django - syntax error

2007-09-06 Thread b3n
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. On 29 Aug, 23:39, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Aug 29, 11:06 pm, b3n <[EMAIL PROTECTED]> wrote: > > > Hey I manag

Multiple Django sites under Apache 2 on RHEL4 ?

2007-08-29 Thread b3n
I did search first and read a few threads but I'm still confused. We have a dedicated server running RHEL ES4 . We have about 10 simple PHP sites on there, under Apache. I want to start using Django for some sites (I wont mix PHP and Python). What is the right way to set this up? I've been

Re: Apache + Django - syntax error

2007-08-29 Thread b3n
Ahh never mind. I hadn't started the MySQL server. Doh. --~--~-~--~~~---~--~~ 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: Apache + Django - syntax error

2007-08-29 Thread b3n
Hey I managed to get Apache to find Django! SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "['C:\Python'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE bookmarks.settings PythonDebug On Now I get a nice Django-styled error instead of the

Re: Apache + Django - syntax error

2007-08-29 Thread b3n
Still says a syntax error when I navigate to http://localhost/ MOD_PYTHON ERROR ProcessId: 1420 Interpreter:'localhost' ServerName: 'localhost' DocumentRoot: 'C:/xampp/htdocs' URI:'/' Location: '/' Directory: None Filename: 'C:/xampp/htdocs/'

Apache + Django - syntax error

2007-08-29 Thread b3n
I'm trying to get Django working on my local Apache (v2). I'm on Windows XP. SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE bookmarks.settings PythonDebug On PythonPath "C:\Python\bookmarks" If I take out PythonPath I

Re: Lighttpd advice please

2007-08-29 Thread b3n
I found a guide that said: "RHEL 64 bit v4.0 does not support PHP as FastCGI. Lighttpd is not available from RHN (up2date command). How do I configure and install lighttpd with FastCGI? Ok let me answer these questions and other queries systematically. I have installed Lighttpd under both RHEL

Re: Lighttpd advice please

2007-08-28 Thread b3n
Thanks Nic, Yeah I've been reading the Django and Lighttpd docs but it's not getting any clearer, just the opposite =/ I'll keep reading... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Lighttpd advice please

2007-08-28 Thread b3n
Actually our server OS is: Red Hat Enterprise Linux ES 4 --~--~-~--~~~---~--~~ 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

Lighttpd advice please

2007-08-28 Thread b3n
We have a dedicated server at Rackspace running Apache 2 and Fedora Core 5. I want to start using Django/Python on this server. At the moment we only have about 10 client sites (PHP based) on the server . I want to also install Lighttpd on this box - to act as a static media server. Can /

Re: How to link SVN Django to Python? (for easy update)

2007-08-23 Thread b3n
Cheers, The junction thing works well! re: *nix I'll get around to it someday. I've been thinking about it a lot recently. I may go for a dual-boot or maybe even virtualisation. And my DOS-prompt terminal DOES have colours! :p --~--~-~--~~~---~--~~ You

Re: How to link SVN Django to Python? (for easy update)

2007-08-22 Thread b3n
Yeah that's how I've done it at the moment. But it's not good! Every time I run SVN Update, I would need to copy everything from django_src to site-packages again. The snippet I quoted above implies that that's not necessary. --~--~-~--~~~---~--~~ You received

How to link SVN Django to Python? (for easy update)

2007-08-22 Thread b3n
I did search but didn't find anything. Probably because the answer is too obvious... I checked out django using SVN but how do I do the next bit? "Symlink django_src/django so that django is within your Python site- packages directory, or update your PYTHONPATH to point to it." I'm using

Re: How to make a mapping/alias db table? (many-to-many)

2007-08-22 Thread b3n
I got Django to create the table by running 'reset' and then re- running 'syncdb'. manage.py reset mange.py syncdb I thought I read somewhere that syncdb should add the table anyway? Bug? It's a bit annoying having to repopulate the data. If I added the join table manually would Django still

Re: How to make a mapping/alias db table? (many-to-many)

2007-08-22 Thread b3n
When I run syncdb, it says: "No fixtures found." If I look in my database using phpmyadmin, I don't see the join table. The only app tables are: mylinks_bookmarks and mylinks_categories If I go into the Python shell and try to add a Category to a Bookmark. It tells me that the table doesn't

How to make a mapping/alias db table? (many-to-many)

2007-08-21 Thread b3n
I've had 20 tabs open all day, all displaying django docs - but I can't work this out. A bookmark can have many categories, and a category can be in many bookmarks. So I just want a simple table that consists of category_id, bookmark_id >From the docs I thought Django would create this

Re: Template within a Template?

2007-08-21 Thread b3n
Actually I need another clue... I'm getting very confused about how to structure my Python projects/ apps. In settings.py: TEMPLATE_DIRS = ( "C:/Python/my_templates", ) In my template dir: mylinks/ mylinks/base_site.html mylinks/bookmark_list.html (extends base_site) Now in

Re: Template within a Template?

2007-08-21 Thread b3n
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

Template within a Template?

2007-08-21 Thread b3n
I want all of my "views" (HTML pages) to use a common header, footer etc. What is the python/django way of achieving this? I need to know because if I have to change the header/footer, then I only want to have to do it one place, rather than editing every template file. I can't get my head

Re: Database Fields

2007-08-21 Thread b3n
Thanks, Actually I was referring to the django admin tables as mentioned . I didn't define those models! None of these issues are a huge problem - but I'm a perfectionist ;) Ben, On Aug 17, 2:36 pm, Michal Ludvig <[EMAIL PROTECTED]> wrote: > b3n wrote: > > Thanks, > >

Re: Database Fields

2007-08-17 Thread b3n
<[EMAIL PROTECTED]> wrote: > b3n wrote: > > Why doesn't Django create primary key integer and tinyint integer > > database fields as UNSIGNED? > > Assuming you're talking about MySQL ... > > > Especially where a field is used as a flag. e.g. auth_user > > > i

Re: Database Fields

2007-08-17 Thread b3n
And some table have very crazy indexes: TABLE auth_permission PRIMARY - PRIMARY id content_type_id - UNIQUE content_type_id, codename auth_permission_content_type_id - INDEX content_type_id "UNIQUE and INDEX keys should not both be set for column `content_type_id`"

Database Fields

2007-08-17 Thread b3n
Why doesn't Django create primary key integer and tinyint integer database fields as UNSIGNED? Especially where a field is used as a flag. e.g. auth_user is_staff = tinyint(1) is_active = tinyint(1) is_superuser = tinyint(1) Doesn't seem very optimised. And why does it create primary key