Re: Accessing SSL client certificate variables

2007-11-14 Thread KpoH
Look here: http://code.google.com/p/sslauth/ :) On 17 окт, 16:22, lmierzej <[EMAIL PROTECTED]> wrote: > Is there a way to access apache/mod_python's SSL client certificate > variables in django? > > I found only this:http://code.djangoproject.com/ticket/2938- is it > really not possible without p

Re: adding field to model

2007-09-06 Thread KpoH
alter table your_table add column blablalbla ksuess пишет: > hi. I had to add a field to an existing model. how do i update the db? > (of course there is content.) > -- Artiom Diomin, Development Dep, "Comunicatii Libere" S.R.L. http://www.asterisksupport.ru http://www.asterisk-support.com

Re: session expire_date

2007-08-09 Thread KpoH
SESSION_COOKIE_NAME = 'sessionid' # Cookie name. This can be whatever you want. SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks). SESSION_COOKIE_DOMAIN = None # A string like ".lawrence.com", or None for standard domain cookie. SESSION_C

Re: Problem whit slung filter on Object_list genric view

2007-08-07 Thread KpoH
'slug_field':'user' Marco A. пишет: > > Hi ! > > I doesnt undestand why , the slug by filters doesnt run . > > error : > > > NameError at /marco/ > > > name 'user' is not defined > > Request Method: GET > Request URL: http://127.0.0.1:8000/marco/ > Exception Type: NameError > E

Re: Without Apache

2007-08-06 Thread KpoH
Artiom Diomin пишет: > webserver: nginx with fastcgi > > -- Artiom Diomin, Development Dep, "Comunicatii Libere" S.R.L. http://www.asterisksupport.ru http://www.asterisk-support.com --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: email_message documentation

2007-08-01 Thread KpoH
check this out http://www.djangoproject.com/documentation/email/ Matt Davies пишет: > Hello everyone > > I've been testing using the send_mail function, but I've heard that > it's now deprecated, is that right? > > I've searched for some documentation on how to use the new > Email_Message functio

Re: Django on a shared host. The docs are scaring me ;)

2007-07-17 Thread KpoH
great! gordyt пишет: > Andy here are my notes for setting up Django with Dreamhost using > FastCGI: > > http://www.gordontillman.info/Development/DjangoDreamhost > > --gordy > -- Artiom Diomin, Development Dep, "Comunicatii Libere" S.R.L. http://www.asterisksupport.ru http://www.asterisk-sup

Re: some problems when django worked under fastcgi..

2007-07-11 Thread KpoH
edit ./manage.py #!/usr/bin/env python replace with #!/usr/local/bin/python 萧连衣 пишет: > > http://www.djangoproject.com/documentation/0.96/fastcgi/ > To easily restart your FastCGI daemon on Unix, try this small shell > script: > #!/bin/bash > > # Replace these three settings. > PROJDIR="/home/us

Re: Table shared by 2 application

2007-07-09 Thread KpoH
mistype from your_project.apps.forum.models import Forum KpoH пишет: > example: > > apps/manage/models.py > > from django.db import models > from your_project.apps.models import Forum > > class ForumManager(models.Model): > forum models.ForeignKey(Forum) &g

Re: Table shared by 2 application

2007-07-09 Thread KpoH
example: apps/manage/models.py from django.db import models from your_project.apps.models import Forum class ForumManager(models.Model): forum models.ForeignKey(Forum) ... and so on but model Forum will be in apps/forum/models.py Haku writes: > Hi all, this is my second help request in

Re: Running fast cgi server

2007-07-06 Thread KpoH
look is an example http://www.djangoproject.com/documentation/fastcgi/#running-django-on-a-shared-hosting-provider-with-apache [EMAIL PROTECTED] пишет: > Hi, > Instead of using "python manage.py " to start fast cgi > server. How to start a server using a single python script. > > Tha

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread KpoH
Use HttpResponseRedirect from django.http [EMAIL PROTECTED] пишет: > On most of my form posts, I redirect to another page once I save > whatever data has been posted on the form. ( I am not using new > forms, and in some cases I'm even using old fashioned hand rolled > forms to post from a view

Re: Could you please share your django-based website source code with me?

2007-07-02 Thread KpoH
http://code.djangoproject.com/svn/djangoproject.com/django_website/ :) On Monday 02 July 2007 06:45:38 nick feng wrote: >> Hi All, >> >> I plan to build a django-based website for open-sourcing these days, I have >> read the django-book. Since my limited knowledge of web developing(this is >> my

Re: Is django a good solution for non-CMS web-apps?

2007-06-29 Thread KpoH
No doubt. You can do with django whatever you want. not only CMS system. You even can do not use entire Django, but only part of it (ORM for example). In my company we write VoIP software using Django for instance. and it's very nice ;) thx for all django developers. walterbyrd write: > I have be

Re: generating customized flyers (pngs or pdf)

2007-06-27 Thread KpoH
Hello, use PIL (http://www.pythonware.com/products/pil/) for this ndengler пишет: > hello, > we want to output small flyers that users can print (or could > display). > I had a look at http://www.djangoproject.com/documentation/outputting_pdf/ > which explains how to creat pdfs with templates. >

Re: nasa site on django

2007-06-27 Thread KpoH
I don't understand. Static files served by django? Vance Dubberly wrote: > Moved http://opensource.arc.nasa.gov to django a couple of weeks ago. > Thought ya'll might want to know that. > > Also thought you might want to know the site was running on > Tomcat/Mysql and the performance difference

Re: project directory - simple question

2007-06-22 Thread KpoH
put in your "mysite_classes" directory empty file named __init__.py it will indicate that this is python module, and from now you can import it, or it's contents. sandro dentella пишет: > hi, > > while writing application that are meant to be used in many > different > projects *and* that all

Re: two way edit ManyToManyField in admin interface

2007-06-21 Thread KpoH
Stano you are inattentive, Then you define your model User in ManyToManyField you write Project, but it must be 'Project', in quotes. I wrote this in my preview post. so your model will look like this class User(models.Model): . # definition of User model projects = models.ManyToMan

Re: two way edit ManyToManyField in admin interface

2007-06-21 Thread KpoH
projects = models.ManyToManyField('Project', without comments :) stano пишет: > Hi, I am totally new. I am trying make TimeTracker project. > Now I am playing only with admin interface. > > I have this model: > > class User(models.Model): > timestamp = models.DateTimeField() > login

Re: robots.txt?

2007-06-04 Thread KpoH
You can "mod_rewrite" /robots.txt to /static/robots.txt for example Rob Hudson пишет: > What do most people do for a robots.txt file in Django? > > I set up my website to email me errors and 404s, and I often get a 404 > email for the robots.txt. > > Thanks, > Rob > -- Artiom Diomin, Develop