Re: a problem about using inclusion_tag

2008-01-14 Thread Jóhann Þ
I think it should be {% show_authors_for_book book %}, because it's an custom tag, not a variable. On Jan 14, 4:18 am, shomain <[EMAIL PROTECTED]> wrote: > my code list is : > = > 1.mysite/books/models.py >

Re: file upload RAM buffer or stream to tmp

2008-01-14 Thread Sebastjan Trepca
I'm afraid it still uses memory: http://code.djangoproject.com/browser/django/trunk/django/http/__init__.py#L100 Sebastjan On 1/14/08, Vance Dubberly <[EMAIL PROTECTED]> wrote: > > Does django still buffer file uploads into RAM or is has it started > streaming to temp files yet? > > -- > To pr

Re: Shared hosting with FastCGI, problems

2008-01-14 Thread Ralf
Did you get your Django site to work? What database are you using? I'm also trying to get Django to work on hostmonster.com, but I'm having trouble with the MySQL backend, it doesn't seem to be installed. I tried manually installing it (copying files), but I get this error: [Mon Jan 14 03:17:20

Define a model without any primary-key

2008-01-14 Thread Nader
Hallo, Maybe this is an irrelevant question, but I have to define a model for an application without any primary-key. Is such definition possible in "Django"? Because I have to make a model from the below MySQL table which doesn't have any primary key -- -- Table structure for table `usedInput`

Re: Define a model without any primary-key

2008-01-14 Thread Kenneth Gonsalves
On 14-Jan-08, at 4:42 PM, Nader wrote: > > Hallo, > > Maybe this is an irrelevant question, but I have to define a model > for an application without any primary-key. Is such definition > possible in "Django"? Because I have to make a model from the below > MySQL table which doesn't have any pr

Re: bad html in textfield

2008-01-14 Thread Steingrim Dovland
On 1/14/08, Rocco Pellegrini <[EMAIL PROTECTED]> wrote: > I made un upgrade to svn django version and now I have a problem with > bad html. > We, in our community www.innovatorieuropei.com, use html tags inside > textfield and now the rendering html from templates s of this > kind:BELLLA NAPOLI <

bad html in textfield

2008-01-14 Thread Rocco Pellegrini
Hi all. I made un upgrade to svn django version and now I have a problem with bad html. We, in our community www.innovatorieuropei.com, use html tags inside textfield and now the rendering html from templates s of this kind:BELLLA NAPOLI

OVVERO VEDI NAPOLI E POI MUORI

I don'

Re: Performance / Memory/CPU Usage of A Django App with 10,000+ Models in a High Traffic Site

2008-01-14 Thread Tim Chase
> I'm developing a large webapp using django. One of my requirements > is > that it needs to be able to handle 10,000+ different entities or > models that need to be associated with a user. A single user have > needs to be able to to associate himself with any of the existing > models and have on

Re: Define a model without any primary-key

2008-01-14 Thread Tim Chase
>> Maybe this is an irrelevant question, but I have to define a model >> for an application without any primary-key. Is such definition >> possible in "Django"? Because I have to make a model from the below >> MySQL table which doesn't have any primary key > > django is for programmers - perfect

Re: bad html in textfield

2008-01-14 Thread Rocco Pellegrini
thanks. On Jan 14, 12:23 pm, "Steingrim Dovland" <[EMAIL PROTECTED]> wrote: > On 1/14/08, Rocco Pellegrini <[EMAIL PROTECTED]> wrote: > > > I made un upgrade to svn django version and now I have a problem with > > bad html. > > We, in our communitywww.innovatorieuropei.com, use html tags inside

Re: Can not login on running behind Apache, but can when on development server

2008-01-14 Thread shabda
Trying to login many times in a row produced this Exception, Exception Type: SuspiciousOperation at /admin/ Exception Value: User may have tampered with session cookie. Full traceback, Traceback: File "/home/shabda/lib/python2.5/django/core/handlers/base.py" in get_response 82.

Grab this chance ..... Speedup your Internet & PC

2008-01-14 Thread priya001
Easy to follow PC tips, to make your PC work Faster and Better. Also tips on how to speedup your Browser, Customization Tips, How to make Internet faster tips and lots more. Read our Daily Postings and become a Computer Expert. Learn all the wonderful things that you can do with your PC. It is a

Re: Can not login on running behind Apache, but can when on development server

2008-01-14 Thread Kenneth Gonsalves
On 14-Jan-08, at 5:40 PM, shabda wrote: > Exception Type: SuspiciousOperation at /admin/ > Exception Value: User may have tampered with session cookie. sounds like something has been re-installed -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ Foss Conference for t

Re: problem with django admin after update to development version

2008-01-14 Thread Alex Koshelev
Error is in your code. Read the exception's message. On 14 янв, 16:06, Rocco Pellegrini <[EMAIL PROTECTED]> wrote: > Before admin worked well. Now with development version this is the > result: > ViewDoesNotExist at /admin/ > Tried home1 in module prog_innov.views. Error was: 'module' object has

problem with django admin after update to development version

2008-01-14 Thread Rocco Pellegrini
Before admin worked well. Now with development version this is the result: ViewDoesNotExist at /admin/ Tried home1 in module prog_innov.views. Error was: 'module' object has no attribute 'home1' Why? Of course I have seen all post around the same problem but I don't understand. Thanks. --~--~-

Genuine Earning through Mobile

2008-01-14 Thread Priyabrata Patra
Hello, I found few sites for earning through your mobile. 1. http://www.sms2india.co.in/?user=patrapb 2. http://www.youmint.com/network-patrapb 3. http://www.mginger.com/index.jsp?inviteId=115252 Visit and calculate how much can you make through SMS or Email. HAPPY MOBILE EARNING. I found a

Re: problem with django admin after update to development version

2008-01-14 Thread Rocco Pellegrini
Alex hi, no error in my code. I followed the instructions from documentation and home1 code is another thing. This is the code: #def home1(request) # return HttpResponseRedirect('http://www.innovatorieuropei.com/ editoriali/') in my views.py in the root site. In the documentation there is no co

ManyToManyField - referencing attribute

2008-01-14 Thread shocks
Hi I'm trying to get a ManyToManyField working in my model. It all works fine apart from the functionality in my view template. I'm using it to export some XML and have an 'ifeqaul' condition to test which category(ies) a client is associated with. A ForeignKey setup works fine for my template

Re: Shared hosting with FastCGI, problems

2008-01-14 Thread Michael Hipp
Yes. I finally did get it to work. But my issues weren't database related. Turned out to be something fairly simple with .htaccess as I suspected. (I'm not even up to the point of database access yet. And I'll be using PostgreSQL as that's what I know.) Michael Ralf wrote: > Did you get you

web frame work

2008-01-14 Thread [EMAIL PROTECTED]
web frame work http://padmagirl.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: problem with django admin after update to development version

2008-01-14 Thread Grindizer
> #def home1(request) > # return HttpResponseRedirect('http://www.innovatorieuropei.com/ are this lines commented in you code ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: Re: problem with django admin after update to development version

2008-01-14 Thread patrick . o
I am on a client site on the 11th Jan. I shall respond to your email on my return. Many thanks Patrick O'Connor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: problem with django admin after update to development version

2008-01-14 Thread Alex Koshelev
Error is still in you code. May be you(django when imports modules and parses the urls.py files) try to import name that doesn't exists. Check urls.py and models.py files. On 14 янв, 16:35, Rocco Pellegrini <[EMAIL PROTECTED]> wrote: > Alex hi, > no error in my code. > I followed the instructions

Re: problem with django admin after update to development version

2008-01-14 Thread Rocco Pellegrini
yes On Jan 14, 3:22 pm, Grindizer <[EMAIL PROTECTED]> wrote: > > #def home1(request) > > # return HttpResponseRedirect('http://www.innovatorieuropei.com/ > > are this lines commented in you code ? --~--~-~--~~~---~--~~ You received this message because you are su

Re: ManyToManyField - referencing attribute

2008-01-14 Thread Grindizer
{% for cat in client.categories.all %} {% ifequal cat category %} ... {% endif %} {% endfor %} I don't really test it, but think it should work. But i think olso that it is not a good approch: If your goal is to do somthing only with cleints that belong to a specifique category (given to te

Re: problem with django admin after update to development version

2008-01-14 Thread Rocco Pellegrini
I removed it but the response was the same. ??? Request Method: GET Request URL:http://innovatorieuropei.com/admin/ Exception Type: ViewDoesNotExist Exception Value:Tried home1 in module prog_innov.views. Error was: 'module' object has no attribute 'home1' I dont' undes

Problem with loading fixture xml to Postgres database

2008-01-14 Thread knight
Hi, I have a large fixture initial_data.xml and I'm trying to syncdb on new Postgres database, & though it says it imported 764 objects, I see none in the db. After a little investigation, I think it is related to dependencies between classes (foreign keys), which aren't handled in the right orde

Re: problem with django admin after update to development version

2008-01-14 Thread Alex Koshelev
It is a solution. """ Tried home1 in module prog_innov.views. Error was: 'module' object has no attribute 'home1' """ Uncomment it or remove this view from urls.py On 14 янв, 17:29, Rocco Pellegrini <[EMAIL PROTECTED]> wrote: > yes > > On Jan 14, 3:22 pm, Grindizer <[EMAIL PROTECTED]> wrote: >

Re: Multilingual text in db

2008-01-14 Thread Grupo Django
On 13 ene, 01:24, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Jan 12, 2008 11:04 PM, Grupo Django <[EMAIL PROTECTED]> wrote: > > > > > IMHO Internationalization is useless if there is no support for > > multilingual translations in the database. I've seen different > > approaches like Dj

Re: problem with django admin after update to development version

2008-01-14 Thread Alex Koshelev
It means that you haven't delete all references to this commented view. On 14 янв, 17:57, Rocco Pellegrini <[EMAIL PROTECTED]> wrote: > I removed it but the response was the same. > ??? > Request Method: GET > Request URL:http://innovatorieuropei.com/admin/ > Exception Type: V

Re: ManyToManyField - referencing attribute

2008-01-14 Thread Alex Koshelev
{% for cat in client.categories.all %} {{cat.name}} {% endfor %} On 14 янв, 16:41, shocks <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to get a ManyToManyField working in my model. It all works > fine apart from the functionality in my view template. I'm using it > to export some XML and h

Re: Multilingual text in db

2008-01-14 Thread Alex Koshelev
django-multilingual is more clean and have very good design. I have used it in some commercial projects. transdb is ugly in it design and concept. On 12 янв, 17:04, Grupo Django <[EMAIL PROTECTED]> wrote: > IMHO Internationalization is useless if there is no support for > multilingual translatio

Problem with loading fixture xml to Postgres database

2008-01-14 Thread knight
Hi, I have a large fixture initial_data.xml and I'm trying to syncdb on new Postgres database, & though it says it imported 764 objects, I see none in the db. After a little investigation, I think it is related to dependencies between classes (foreign keys), which aren't handled in the right orde

Re: problem with django admin after update to development version

2008-01-14 Thread Grindizer
what do you have in your urls.py ? On 14 jan, 15:57, Rocco Pellegrini <[EMAIL PROTECTED]> wrote: > I removed it but the response was the same. > ??? > Request Method: GET > Request URL:http://innovatorieuropei.com/admin/ > Exception Type: ViewDoesNotExist > Exception Value:

Re: Can not login on running behind Apache, but can when on development server

2008-01-14 Thread shabda
But If it were so how would running it from the development server allow me to login? On Jan 14, 5:13 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 14-Jan-08, at 5:40 PM, shabda wrote: > > > Exception Type: SuspiciousOperation at /admin/ > > Exception Value: User may have tampered with se

Off Topic: Inline comments - sort of a javascript / JSON question

2008-01-14 Thread cjl
Djangoholics: I am working on an 'inline comment' system, inspired by the online Django Book. I want users to be able to comment on any paragraph in my text. I'm doing this without looking at the code that drives the Django Book or Jack Slocum's implementations, because I really like trying to f

Re: problem with django admin after update to development version

2008-01-14 Thread Rocco Pellegrini
urlpatterns = patterns('', # Example: # (r'^prog_innov/', include('prog_innov.apps.foo.urls.foo')), # Uncomment this for admin: (r'^admin/', include('django.contrib.admin.urls')), (r'^blog/', include('prog_innov.blog.urls')), (r'^editoriali/', include('prog_innov.editorial

Re: setting up a new django site (mod_python)

2008-01-14 Thread comike01
I beleive I had this set correctly, except for one problem, this line from the documentation: SetEnv DJANGO_SETTINGS_MODULE mysite.settings Im not sure what mysite.settings should be set to. Is there a way I can detect what these values should be? Thanks! On Jan 11, 11:47 pm, "Karen Tracey"

generic views

2008-01-14 Thread Chris
Hello I am working with a generic view and I am trying to grab the url expression variable and pass it to a dictionary for the generic view to use but I keep getting an error that the variable is not defined. Its obvious that the variable is not defined yet but is there a way that I can make this

Re: Off Topic: Inline comments - sort of a javascript / JSON question

2008-01-14 Thread cjl
I've spent the last few hours reading up on JSON, and django serialization, and I think I'm getting the hang of it. Can someone confirm the following pseudocode?: var data = eval(' serialized_data_from_ django '); data.length = number_of_records_returned_from_django data[0].fields.fieldname = d

Re: setting up a new django site (mod_python)

2008-01-14 Thread Ariel Mauricio Nunez Gomez
comike01, 1. Please post the whole django-related config you have on apache. 2. Tell us what's the name of your project and where it is located on your filesystem. I really don't think the problem is related to the settings value, instead it must be a path configuration problem as Karen suggests.

Re: setting up a new django site (mod_python)

2008-01-14 Thread comike01
sure, though I'd prefer to obscure some information with , but every time that is used it is for the same piece of text. The information I have as of now is as such: in my apache httpd.conf file: setHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_

Where to store static files?

2008-01-14 Thread Prof. William Battersea
Hello, Does any one have any suggestions for setting up apache so that: 1. Admin files stay in the contrib/admin folder 2. Other static media stay in some other folder, with the rest of my site files. 3. I can use mysite.com/media for both of them. Longer explanation: I'm using Django on a sha

Re: generic views

2008-01-14 Thread Alex Koshelev
You must specify details in pattern definitian http://www.djangoproject.com/documentation/generic_views/ On 14 янв, 20:08, Chris <[EMAIL PROTECTED]> wrote: > Hello I am working with a generic view and I am trying to grab the url > expression variable and pass it to a dictionary for the generic vi

Re: Where to store static files?

2008-01-14 Thread Alex Koshelev
The best solution is to separate admin media files and site specific files. For example: /media/admin/ - for admin static files /media/ - for others On 14 янв, 20:14, "Prof. William Battersea" <[EMAIL PROTECTED]> wrote: > Hello, > > Does any one have any suggestions for setting up apache so that:

Re: Where to store static files?

2008-01-14 Thread Prof. William Battersea
Ah, okay. Got it. Thanks. 2008/1/14 Alex Koshelev <[EMAIL PROTECTED]>: > > The best solution is to separate admin media files and site specific > files. For example: > /media/admin/ - for admin static files > /media/ - for others > > On 14 янв, 20:14, "Prof. William Battersea" > <[EMAIL PROTECTED]

Re: Custom ForeignKey field validation

2008-01-14 Thread David Grant
On Jan 12, 2008 6:34 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Jan 12, 2008 5:28 AM, David Grant <[EMAIL PROTECTED]> wrote: > > > I have a simple category model. They will eventually be chapters in a > > book and I only want entries to go into child categories, not the roots. > > Here's the

Re: file upload RAM buffer or stream to tmp

2008-01-14 Thread Vance Dubberly
Thanks manI suppose I should have just RTFC :D Kind of a bummer, guess I'll be using cherrypy for this project. Was hoping to use django but it looks like there is no way to hook into the request response loop before the request is parsed. :( Please tell me I'm wrong. Vance On Jan 14, 20

Re: file upload RAM buffer or stream to tmp

2008-01-14 Thread James Bennett
On Jan 14, 2008 12:01 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote: > Kind of a bummer, guess I'll be using cherrypy for this project. Was > hoping to use django but it looks like there is no way to hook into > the request response loop before the request is parsed. :( If streaming uploads are vi

Re: problem with django admin after update to development version

2008-01-14 Thread David Grant
Look in prog_innov.blog.urls too 2008/1/14 Rocco Pellegrini <[EMAIL PROTECTED]>: > > urlpatterns = patterns('', ># Example: ># (r'^prog_innov/', include('prog_innov.apps.foo.urls.foo')), > ># Uncomment this for admin: >(r'^admin/', include('django.contrib.admin.urls')), >(r'^b

sexy hot latina posing in bra and panty

2008-01-14 Thread natasha hingis
Watch sex goddess super hot latina Jennifer Lopezposing in bra and panty Jennifer Lopez Jennifer Lopez Jennifer Lo

Re: generic views

2008-01-14 Thread Chris
I still get that error. Just forgot to add in the details variable when I dpasted. http://dpaste.com/31049/ but I still get the same error that I was talking about. Should I put the details dictionary definition below the urlpattern so that maybe the variable is defined before I get to that point

Re: file upload RAM buffer or stream to tmp

2008-01-14 Thread Brot
On Jan 14, 7:56 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Jan 14, 2008 12:01 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote: > > > Kind of a bummer, guess I'll be using cherrypy for this project. Was > > hoping to use django but it looks like there is no way to hook into > > the request re

Re: Performance / Memory/CPU Usage of A Django App with 10,000+ Models in a High Traffic Site

2008-01-14 Thread Sebastian
Thanks for the input. Having a entity and value model was actually my first approach but I am concerned is being forced to have multiple inserts/updates when inserting/updating a entity record to the database. If my entity has 30 fields and an user edits a record associated with them instead of ju

Re: problem with django admin after update to development version

2008-01-14 Thread Rocco Pellegrini
no home1 in blog.urls I searched in the net for the problem and I founded in this forum http://www.nabble.com/Error-message-when-viewing-admin--%28ViewDoesNotExist-at--admin-%29-to13022675.html an answer: """Did you have a view named "startsess" that you subsequently deleted? Admin is looking for

Re: Django won't create foreign keys

2008-01-14 Thread apramanik
Anyone? I still haven't gotten this to work without modifying Django. Thanks! On Jan 12, 3:34 pm, apramanik <[EMAIL PROTECTED]> wrote: > It seems to be fixed if I change sql_create django/core/management/ > sql.py to > > for model in app_models: > output, references = sql_model_create

sex bomb beyonce posing nude(see her boobs)

2008-01-14 Thread natasha hingis
Catch sexy beyonce knowlesposing nude here.. beyonce knowles beyonce knowles beyonce knowles

Re: problem with django admin after update to development version

2008-01-14 Thread Rocco Pellegrini
Thanks to all. I dropped tha table django_content_type and all worked wery well. On Jan 14, 8:53 pm, Rocco Pellegrini <[EMAIL PROTECTED]> wrote: > no home1 in blog.urls > I searched in the net for the problem and I founded in this > forumhttp://www.nabble.com/Error-message-when-viewing-admin--%

Re: setting up a new django site (mod_python)

2008-01-14 Thread Ariel Mauricio Nunez Gomez
> > the path to the actual project itself is located at /home/www/ > django..com/htdocs/mysite/ There it is. It is generally not a good idea to put your project's files on a public folder (htdocs , www) for security reasons. The short advice, without knowing all the other details on your serv

Re: generic views

2008-01-14 Thread Christos Τrochalakis
2008/1/14 Chris <[EMAIL PROTECTED]>: > > I still get that error. Just forgot to add in the details variable > when I dpasted. http://dpaste.com/31049/ but I still get the same > error that I was talking about. Should I put the details dictionary > definition below the urlpattern so that maybe the

Re: Django won't create foreign keys

2008-01-14 Thread Rajesh Dhawan
On Jan 14, 3:15 pm, apramanik <[EMAIL PROTECTED]> wrote: > Anyone? I still haven't gotten this to work without modifying Django. > Thanks! See the discussion here: http://code.djangoproject.com/ticket/4193 Although it mentions only SQLite, I think the problem is more general than that based on

Re: generic views

2008-01-14 Thread Alex Koshelev
If you want to apply additional filtering for query set with parameter that has catched from url so you have to "inherit" generic view with your own. Example for your case: #views.py from django.views.generic.list_detail import object_list def my_view( request, tag_category ): CATEGORY_DETAI

Re: Problem with loading fixture xml to Postgres database

2008-01-14 Thread Rajesh Dhawan
> Is this a known issue? Is it related to Postgres or its DB API? > I need urgent help, and any idea/direction would be highly > appreciated! Forgive me if this sounds offensive, but have you made sure that your DB settings point to the right database instance? I am thinking that perhaps the 764

Re: Performance / Memory/CPU Usage of A Django App with 10,000+ Models in a High Traffic Site

2008-01-14 Thread Rajesh Dhawan
Perhaps you want to look at Amazon's SimpleDB: http://www.amazon.com/b/ref=sc_fe_l_2?ie=UTF8&node=342335011&no=3435361&me=A36L942TSJ2AJA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Problem with loading fixture xml to Postgres database

2008-01-14 Thread Russell Keith-Magee
On Jan 14, 2008 11:46 PM, knight <[EMAIL PROTECTED]> wrote: > > I have a large fixture initial_data.xml and I'm trying to syncdb on > new Postgres database, & though it says it imported 764 objects, I see > none in the db. As another reply suggests - if your fixture loading operation is returning

Re: Performance / Memory/CPU Usage of A Django App with 10,000+ Models in a High Traffic Site

2008-01-14 Thread Frankie Robertson
On 14/01/2008, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > Perhaps you want to look at Amazon's SimpleDB: > > > http://www.amazon.com/b/ref=sc_fe_l_2?ie=UTF8&node=342335011&no=3435361&me=A36L942TSJ2AJA Or couchdb: http://couchdb.org/ > > -- http://grimboy.co.uk --~--~-~--~~-

Re: file upload RAM buffer or stream to tmp

2008-01-14 Thread Vance Dubberly
James, So very true. I tell you what, I've been meaning to contribute something to the project because it is a very nice framework but at this point I have a week to do this and getting code into trunk takes longer than a week. With cherrypy I can just write a Tool that filters the request bef

Re: problem with django admin after update to development version

2008-01-14 Thread Rocco Pellegrini
this exactly solve the problem: 1) drop from the database the table django_content_type. 2) run python manage.py syncdb to recreate the table. On Jan 14, 9:44 pm, Rocco Pellegrini <[EMAIL PROTECTED]> wrote: > Thanks to all. > I dropped tha table django_content_type and all worked wery well. > > O

Apache / Mod_Python / RHEL5 issue with PYTHONPATH in Apache environment

2008-01-14 Thread [EMAIL PROTECTED]
Hello All, I would appreciate expert advice about getting PYTHONPATH to work with Apache and mod_python for django. When I shell into the server I can get all modules to load without error (as root). This includes django, custom modules (people) and my projects (mysite). BASH snippet: --

Re: a problem about using inclusion_tag

2008-01-14 Thread shomain
Oh,yes --~--~-~--~~~---~--~~ 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 more

Re: Apache / Mod_Python / RHEL5 issue with PYTHONPATH in Apache environment

2008-01-14 Thread Graham Dumpleton
On Jan 15, 12:47 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Is there an Apache or Python main config file that needs to be set a > certain way to allow my PYTHONPATH to be accessed or exported for > Apache. In the same directory as the Apache executable, 'httpd', 'apache2' or whatev

Re: Apache / Mod_Python / RHEL5 issue with PYTHONPATH in Apache environment

2008-01-14 Thread scott_in_springfield
Thank you, Graham. > In the same directory as the Apache executable, 'httpd', 'apache2' or > whatever your platform calls it, there should be an 'envvars' file. I didn't find this file anywhere. Found no 'envvars' on the entire system. Google research showed that apachectl loads envvars in an Ap

500.html not showing w/ mod_python

2008-01-14 Thread Shev
Hi all - I'm using apache2 and mod_python (sitting behind nginx) and the latest trunk version of django, and have setup the 500.html error template as suggested. Unfortunately, it doesn't seem to work - whenever there's a problem causing django to throw an exception, I end up seeing the simple an

Re: 500.html not showing w/ mod_python

2008-01-14 Thread Karen Tracey
On Jan 14, 2008 11:36 PM, Shev <[EMAIL PROTECTED]> wrote: > > Hi all - I'm using apache2 and mod_python (sitting behind nginx) and > the latest trunk version of django, and have setup the 500.html error > template as suggested. Unfortunately, it doesn't seem to work - > whenever there's a problem

Re: Apache / Mod_Python / RHEL5 issue with PYTHONPATH in Apache environment

2008-01-14 Thread Graham Dumpleton
On Jan 15, 2:48 pm, scott_in_springfield <[EMAIL PROTECTED]> wrote: > Thank you, Graham. > > > In the same directory as the Apache executable, 'httpd', 'apache2' or > > whatever your platform calls it, there should be an 'envvars' file. > > I didn't find this file anywhere. Found no 'envvars' on t

Re: generic views

2008-01-14 Thread Chris
Thanks so much for your help. Can I pass in the whole dictionary as you do in your example? When I attempt to do that I get this error. dict' object has no attribute '_clone'. Alternatively I can simpley pass in the individual variables suchas queryset and it works. I would like to pass it in as

Problem with Css and django template

2008-01-14 Thread laspal
hi, I am new to django and I am having problem with css and template. I have read the documentation on static file http://www.djangoproject.com/documentation/static_files/ but still having the problem. This is how my url.py file is: from django.conf.urls.defaults import * from trytemplate.views

Re: Problem with loading fixture xml to Postgres database

2008-01-14 Thread knight
If I put the objects in my fixture in the right order, I can see them in the database after they are loaded. Do you have any other suggestions? Regards, Alex. On Jan 15, 12:40 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Jan 14, 2008 11:46 PM, knight <[EMAIL PROTECTED]> wrote: > > >

Re: Apache / Mod_Python / RHEL5 issue with PYTHONPATH in Apache environment

2008-01-14 Thread scott_in_springfield
To shorten things, using mod_python.testhandler for some output with the following apache directives: SetHandler python-program PythonPath "['/Working/django','/Working/modules','/Working/ projects','/Working/projects/mysite'] + sys.path" SetEnv DJANGO_SETTINGS_MODUL