Re: PostgreSQL backend - Ident authentication failed?

2010-06-20 Thread Torsten Bronger
Hallöchen! Victor Hooi writes: > [...] > > However, I'm still curious as to what changed, as I'm fairly sure > this setup worked on the old Ubuntu 9.04 server? And I'm > definitely sure that the database username was set to "victorhooi" > on that old system - I copied the settings.py file over us

Re: decoupling project name from import?

2010-06-20 Thread Sithembewena Lloyd Dube
Thanks everyone, I could use that link myself. On Mon, Jun 21, 2010 at 5:23 AM, vcarney wrote: > I've now got this working by also adding the following to my projects > settings.py file: > > import os > import sys > PROJECT_ROOT = os.path.dirname(__file__) > sys.path.insert(0, os.path.join(PROJE

Re: PostgreSQL backend - Ident authentication failed?

2010-06-20 Thread Kenneth Gonsalves
On Monday 21 June 2010 11:18:27 Victor Hooi wrote: > OperationalError at admin > FATAL: Ident authentication failed for user "victorhooi" > in pg_hba.conf change the authorisation from ident to password -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received thi

Re: PostgreSQL backend - Ident authentication failed?

2010-06-20 Thread Victor Hooi
heya, Thanks for the tip. It does work now, following your advice =). I created a new PostgreSQL user named "www-data". I then changed my settings.py file: 'USER': 'www-data', # Not used with sqlite3. 'PASSWORD': 'ourpassword', # Not

Re: PostgreSQL backend - Ident authentication failed?

2010-06-20 Thread Torsten Bronger
Hallöchen! Victor Hooi writes: > [...] > > I created a blank PostgreSQL database as myself ("victorhooi"). > > I ran ./manage.py syncdb, and this seemed to authenticate fine, > and create all the required tables. > > When I try to go to http://site.com/admin though, I get an error: > > Operat

Actions after HttpResponse rendered?

2010-06-20 Thread DaNmarner
There's a similar question as mine on stackoverflow.com: http://stackoverflow.com/questions/1081340/how-do-you-do-something-after-you-render-the-view-django and there isn't a satisfactory answer there. Basically, how do I do some thing after a view returns the response? Does request_finished ena

PostgreSQL backend - Ident authentication failed?

2010-06-20 Thread Victor Hooi
Hi, We have a Django application that we just moved from a Ubuntu 9.04 server to 10.04. We're running Apache 2.2/WSGI, with PostgreSQL as the backend. My settings.py file: 'DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_ps

Django with passenger and Staticgenerator ( in dreamhost)

2010-06-20 Thread vishnu.kumar
Hi, I am trying to use the staticgenerator for my django site. http://nemesisdesign.net/blog/coding/setup-django-staticgenerator-apache-mod_wsgi/ But that config is not working in my Dreamhost PS, since the link contains only for apache-wsgi-django. In Dreamhost, passenger is there. I am not sure

Help with Formset (I think it is formset I need)

2010-06-20 Thread Bryan A
Hello: I am trying to create a form with a check box list for Tags associated with an Appointment. Form: Please list tags for this Appoingmen _ Work _ School _ Other I need to design this so users can add additional ta

Django templates and libraries

2010-06-20 Thread tanman
Hello, I'm trying to setup an existing Django site up on WebFaction. I've uploaded the code and installed the libraries, but I'm having trouble getting the site to use my libraries. I've figured out that when I installed libraries with easy_install, they were installed to / home/jhumunc/lib/python2

Re: decoupling project name from import?

2010-06-20 Thread vcarney
I've now got this working by also adding the following to my projects settings.py file: import os import sys PROJECT_ROOT = os.path.dirname(__file__) sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps")) manage.py now knows about my apps folder. See Greg Allard's post for more info if you run in

Re: decoupling project name from import?

2010-06-20 Thread vcarney
I attempted to add my apps folder to the wsgi script file, but still no luck (same module import error). Here is what I have in my wsgi script file: import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'example.settings' sys.path.append('/apps/django') sys.path.append('/apps/django/example

Re: static files, nginx, memcached

2010-06-20 Thread Gabriel Gunderson
On Fri, Jun 18, 2010 at 11:22 AM, TheIvIaxx wrote: > I will just have a cron job populate memcached separately. > > Is this a common practice or is there a better method for this? I think the overall approach might need a little more thought, but if you end up doing something like this, incron wo

Re: Selling Django

2010-06-20 Thread Russell Keith-Magee
On Sun, Jun 20, 2010 at 11:51 PM, Richard Shebora wrote: > Russ, > Thanks for this clarification.  After reading your post I went > to http://pinaxproject.com/ and do indeed see your point.  I am happy to > jump on board and help with the project that is the generally accepted place > for learning

Re: Deploying Django with mod_wsgi

2010-06-20 Thread Graham Dumpleton
On Jun 21, 10:51 am, commonzenpython wrote: > Graham thanks for all your help, and patience,  i will read the the > information in the link you provided, this is the exact configuration > i added to the httpd.conf file : > > LoadModule wsgi_module modules/mod_wsgi.so > WSGIScriptAlias / /home/as

Re: Deploying Django with mod_wsgi

2010-06-20 Thread commonzenpython
Graham thanks for all your help, and patience, i will read the the information in the link you provided, this is the exact configuration i added to the httpd.conf file : LoadModule wsgi_module modules/mod_wsgi.so WSGIScriptAlias / /home/ashtanga/public_html/ash/apache/django.wsgi the path to my

Re: A Django project life cycle

2010-06-20 Thread Graham Dumpleton
On Jun 20, 10:07 pm, Sam Lai wrote: > If you want to run a piece of code on receiving a view HTTP request, > and a piece of code just before the response is sent to the user, look > into Django middleware > (http://docs.djangoproject.com/en/dev/topics/http/middleware/). That > is what it is spec

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
Sir thanks very much indeed , now its works. thanks. On Jun 20, 11:37 pm, Jagdeep Singh Malhi wrote: > On Jun 20, 5:00 pm, Graham Dumpleton > wrote: > > > On Jun 20, 9:17 pm, Jagdeep Singh Malhi > > wrote: > > > > On Jun 20, 3:08 pm, Graham Dumpleton > > > wrote: > > > > > On Jun

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
On Jun 20, 5:00 pm, Graham Dumpleton wrote: > On Jun 20, 9:17 pm, Jagdeep Singh Malhi > wrote: > > > > > On Jun 20, 3:08 pm, Graham Dumpleton > > wrote: > > > > On Jun 20, 7:34 pm, Jagdeep Singh Malhi > > > wrote: > > > > > in  which  file  i see  these lines . > > > > >   > > > > > > yes  t

Re: fieldsets django

2010-06-20 Thread Francis Gulotta
You might want to look into a css solution. -Francis --- Francis Gulotta wiz...@roborooter.com On Fri, Jun 18, 2010 at 3:40 PM, Waléria Antunes David < waleriantu...@gmail.com> wrote: > I have a form with various fields and I need to split these fields so that > it looks like the image attache

Re: Chase Paymentech

2010-06-20 Thread Francis Gulotta
Django bursar should also be mentioned. I'm about to try to use it, but out of the payment modules I've found it seems the most sane. http://bitbucket.org/bkroeze/django-bursar/ -Francis --- Francis Gulotta wiz...@roborooter.com On Sun, Jun 20, 2010

Re: decoupling project name from import?

2010-06-20 Thread Daniel Roseman
On Jun 20, 8:01 am, vcarney wrote: > I created a new project with django-admin.py as such: > > django-admin.py startproject foo > > Under the folder foo it gives me the basic files: > __init__.py >     manage.py >     settings.py >     urls.py > > I then created a new folder under foo named apps a

Re: Selling Django

2010-06-20 Thread Richard Shebora
Russ, Thanks for this clarification. After reading your post I went to http://pinaxproject.com/ and do indeed see your point. I am happy to jump on board and help with the project that is the generally accepted place for learning about (i stress learning about for me), and improving django appli

Re: decoupling project name from import?

2010-06-20 Thread Sithembewena Lloyd Dube
Am a Django noob, and I do not know what your Django proficiency is, but I'd think you have compromised the strict directory structure that Django created. I would: - Check that your new "apps" folder is on your PATH, - Consider having the apps folder outside of your foo project, - See http://doc

Caching a queryset

2010-06-20 Thread ALJ
Noob question I have a queryset that holds some very static information (workflow descriptions and attributes) but is used widely throughout by models and views. Is it automatically cached or should I specifically declare somewhere that I want it cached? -- You received this message becaus

Re: Chase Paymentech

2010-06-20 Thread Dan Gentry
Storing credit card numbers (and other info) isn't the only concern of the PCI standards. If your form collects a number an passes it on to the processor, you could also be vulnerable. On Jun 18, 2:09 pm, surtyaar wrote: > Hi Bobby, > > You might be interested in a django clone of the sample shop

Re: UnicodeDecodeError (ordinal not in range) when deleting an inline item - 1.2.1

2010-06-20 Thread Karen Tracey
On Sun, Jun 20, 2010 at 5:15 AM, Federico Capoano wrote: > I logged onto the server via SSH and tried the command "locale", the > following is what I get: > > LANG=en_US.UTF-8 > [snipped remainder] That looks fine, but the locale when you ssh into the server is not necessarily the same as the loc

decoupling project name from import?

2010-06-20 Thread vcarney
I created a new project with django-admin.py as such: django-admin.py startproject foo Under the folder foo it gives me the basic files: __init__.py manage.py settings.py urls.py I then created a new folder under foo named apps and added a blank __init__.py. Within the apps folder I

Re: A Django project life cycle

2010-06-20 Thread Sameer Rahmani
h , i use wsgi and django development server, i was thinking about signals too, and thanks for docs i'll read them -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To uns

Re: A Django project life cycle

2010-06-20 Thread Sam Lai
If you want to run a piece of code on receiving a view HTTP request, and a piece of code just before the response is sent to the user, look into Django middleware (http://docs.djangoproject.com/en/dev/topics/http/middleware/). That is what it is specifically designed to do. If instead you want to

Re: Serving media files

2010-06-20 Thread Graham Dumpleton
On Jun 20, 9:17 pm, Jagdeep Singh Malhi wrote: > On Jun 20, 3:08 pm, Graham Dumpleton > wrote: > > > On Jun 20, 7:34 pm, Jagdeep Singh Malhi > > wrote: > > > > in  which  file  i see  these lines . > > > >   > > > > yes  these links are  shown in source file > > > > > In your browser, when yo

Re: A Django project life cycle

2010-06-20 Thread Sameer Rahmani
i want to run a peace of code in the beginning of life cycle ( may be in settings.py ) but i want to know about number process and the codes that remain on memory ? olso i want to run a peace of code in the ending part -- You received this message because you are subscribed to the Google Groups

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
On Jun 20, 3:08 pm, Graham Dumpleton wrote: > On Jun 20, 7:34 pm, Jagdeep Singh Malhi > wrote: > > > in  which  file  i see  these lines . > > >   > > > In your browser, when you request the admin page which isn't showing > the styling, use your browser to view the source code for that page as

Re: A Django project life cycle

2010-06-20 Thread Sam Lai
I can't really help you because I don't know the internal life cycle either. I'd just start with reading through the code, which isn't really that hard (and it is what I've been doing for my custom admin form behaviour). If you have specific questions, you could post it here (or if it looks like y

Re: Serving media files

2010-06-20 Thread Graham Dumpleton
On Jun 20, 7:34 pm, Jagdeep Singh Malhi wrote: > in  which  file  i see  these lines . > >   > On Jun 20, 5:25 am, Graham Dumpleton > wrote: > > > > > On Jun 20, 3:06 am, Jagdeep Singh Malhi > > wrote: > > > > now my httpd.conf   file is :- > > > > Alias /media/ /usr/local/lib/python2.6/dist-

Re: A Django project life cycle

2010-06-20 Thread Sameer Rahmani
thanks for your consideration , i know that this is a painful matter and need extra work but i need to understand this cycle to write some peace of code for my project that optimize some actions also i really love to contribute to django, so please guide me :) -- You received this message becaus

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
Is these setting of my setting.py files are correct ? setting is :- MEDIA_ROOT = '/home/your_name/mysite/media/' MEDIA_URL = 'http://localhost/media' ADMIN_MEDIA_PREFIX = '/media/' On Jun 20, 2:08 pm, Jagdeep Singh Malhi wrote: > On Jun 19, 10:36 pm, Justin Myers wrote:> Have you set > y

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
in which file i see these lines . wrote: > On Jun 20, 3:06 am, Jagdeep Singh Malhi > wrote: > > > now my httpd.conf   file is :- > > > Alias /media/ /usr/local/lib/python2.6/dist-packages/django/contrib/ > > admin/media/ > > > > media/> > > Order deny,allow > > Allow from all > > > > Cha

Re: UnicodeDecodeError (ordinal not in range) when deleting an inline item - 1.2.1

2010-06-20 Thread Federico Capoano
I logged onto the server via SSH and tried the command "locale", the following is what I get: LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UT

Re: Serving media files

2010-06-20 Thread Jagdeep Singh Malhi
On Jun 19, 10:36 pm, Justin Myers wrote: > Have you set your MEDIA_ROOT, MEDIA_URL and ADMIN_MEDIA_PREFIX > settings in settings.py? > setting is :- MEDIA_ROOT = '/home/your_name/mysite/media/' MEDIA_URL = 'http://localhost/media' ADMIN_MEDIA_PREFIX = '/media/' > On Jun 19, 12:06 pm, Jagdee

Re: A Django project life cycle

2010-06-20 Thread Sam Lai
The onion model on the Django middleware documentation page might also help - http://docs.djangoproject.com/en/dev/topics/http/middleware/ The rest of it (how it is handled from the WSGI handler etc.) is really an internal matter. Unless you want to contribute to Django or create some custom vers

Re: A Django project life cycle

2010-06-20 Thread Kenneth Gonsalves
On Saturday 19 June 2010 19:21:10 Sameer Rahmani wrote: > >> http://www.catb.org/~esr/faqs/smart-questions.html > >> http://www.djangobook.com/ > > just for more information , i read django book , i know what i want , > and if you don't want to help please don't send me those link. > > > Can anyo

feature request - iunique

2010-06-20 Thread Kenneth Gonsalves
hi, request: we have: name = CharField("Name",iunique=True) iunique translates into a case insensitive unique reason: Most languages in the planet do not have case. This is peculiar to languages using the roman script. As a result, data entry done by people from non roman script backgrounds gen