How to display the euro currency EURO and choose the =?ISO-8859-1?Q?comma_as_the_decimal_separator??=

2007-11-26 Thread Song.qk
Hello world, I've tried many things with no avail to make appear the Euro symbol. I've put the line # encoding: utf-8 at the beginning of the local_settings.py and added CURRENCY = 'EURO' But that does not seem to work, my product prices are still displayed with the $ symbol. On the other hand

Re: Win XP Installation

2007-11-26 Thread kernel1983
http://www.djangocn.com/setup.zip pls using this setup.py file. because the setup.py file did not consider the platform Windows. Or using SVN version. On 11月24日, 上午10时04分, dineshv <[EMAIL PROTECTED]> wrote: > Okay, found the problem. It should say: C: > \Python25\Django-0.96.1>python setup.py

File Upload Delima

2007-11-26 Thread Zack
I have been trying to upload files in my django project. It works fine with smaller files but when they get a little bit bigger it stalls my server. I have looked at ticket 2070 and I have tried to apply the patches but I can't quite get it to work. My set up seems to be different than most. I am

Re: How to display if a user is logged in? Do I develop a custom template tag?

2007-11-26 Thread Greg
Ok...I'm looking into using django's builtin Authentication models. I can use that to add users. However, I still need to associate a user with their favorites once they login. So do I need to add a ManyToManyField in my User table that points to my products table? On Nov 26, 6:51 pm, pk <[EMA

Re: File upload virus scanning

2007-11-26 Thread leifbyron
Thanks for the tip on pyClamd, Marty! I'll sleep much better at night if I can run uploads through a utility like this before saving them to the system. I'll let you know how it turns out. Leif --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Oracle usage

2007-11-26 Thread anthony
so which means i should be able to get oracle working if i download the code from the trunk? On Nov 23, 7:19 pm, "Ben Ford" <[EMAIL PROTECTED]> wrote: > Some of the more oracle oriented people on the list will be able to give you > an answer with more depth, however: there was a branch (and a spr

Re: Publishing

2007-11-26 Thread Mike Feldmeier
Thank you for your response, The 'test' is actually just a stand-in name for this posting. Thanks, Mike On Nov 26, 7:10 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > FWIW, you should never call stuff that might be interpreted as a > Python module, 'test'. This is because there is a standard

Re: How to display if a user is logged in? Do I develop a custom template tag?

2007-11-26 Thread pk
There are a couple of things you have to do to get the "user" object automatically available to all templates. 1. Follow the authentication setup as suggested. 2. Then read the bit about request_context: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestconte

Re: Publishing

2007-11-26 Thread Graham Dumpleton
FWIW, you should never call stuff that might be interpreted as a Python module, 'test'. This is because there is a standard Python module of that name. Thus, depending on sys.path order, it could pick up the standard Python module instead of your site package. Thus, for a start, trying to recreat

Re: How to display if a user is logged in? Do I develop a custom template tag?

2007-11-26 Thread Christopher Allan Webber
Why not use django's builtin Authentication models? It handles most of this for you. from django.contrib import auth authenticate with: user = auth.authenticate(username=username, password=password) then log the user in: auth.login(request, user) and prest

How to display if a user is logged in? Do I develop a custom template tag?

2007-11-26 Thread Greg
Hello, I have a website where people can login and keep track of their favorite products. Whenever they login I create a session variable: 'request.session['member_id']'. If this session variable is set then I know that a user is logged in. In order to get this to work I have to send the sessio

Re: Django ldap, not ldap auth!

2007-11-26 Thread Matthias Kestenholz
Hi, On Mon, 2007-11-26 at 13:02 -0800, tinti wrote: > Hi all, > > have a really big problem getting ldap working with django. > Tried almost everything :( My code is in the views.py : > > from ldap import * > def ldapListUsers(ldap): > """List all ldap users""" > l = ldap.initialize("ld

Re: Django ldap, not ldap auth!

2007-11-26 Thread Ramiro Morales
On Nov 26, 2007 6:02 PM, tinti <[EMAIL PROTECTED]> wrote: > > Hi all, > > have a really big problem getting ldap working with django. > Tried almost everything :( My code is in the views.py : > > from ldap import * > def ldapListUsers(ldap): > """List all ldap users""" > l = ldap.initializ

Django ldap, not ldap auth!

2007-11-26 Thread tinti
Hi all, have a really big problem getting ldap working with django. Tried almost everything :( My code is in the views.py : from ldap import * def ldapListUsers(ldap): """List all ldap users""" l = ldap.initialize("ldap://localhost:389/";) l.simple_bind_s("cn=Manager,dc=local,dc=net"

Re: PyAMF nogo, try DjangoAMF

2007-11-26 Thread iongion
sorry for the double post, confusing gmail authentication --~--~-~--~~~---~--~~ 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 th

Contract Django Work

2007-11-26 Thread Oxford
About Us: We are seeking some contract assistance with specific coding needs. We are a Canadian based company and would prefer Canadian programmers although US programmers should apply. Deliverables: We will provide detailed specs and basic models and would require some backend development (model

PyAMF nogo, try DjangoAMF

2007-11-26 Thread iongion
DjangoAMF seems a viable solution for bridging django with flash/flex applications. I gave it a shot, reached all the way to authentication but then halted. Here is a sample view: from amf.django import permission_required in settings.py i have AMF_AUTH_FUNC = 'amfapp.views.login' @permissio

Re: Django Web Hosting Service

2007-11-26 Thread rp
Although more expensive ($34/mo), I found highspeedrails.com to be excellent--you can also host multiple sites on one account. As my webfaction sites grew, they didn't hold up the way that highspeedrails.com did. I eventually moved things over there. --~--~-~--~~~---~

Get Paid $$$$ for Taking Online Surveys

2007-11-26 Thread Mike
Get Paid for Taking Online Surveys Join today and receive $4 to $250 for taking online surveys that influence the development of new products and services. Check my web site and start immediately earning extra money from your own computer at anywhere by taking online surveys http://www3.sy

Publishing

2007-11-26 Thread Mike Feldmeier
Using: Ubuntu (gutsy) Apache (2.2.4) Python (2.5.1) mod_python (3.3.1) I have a project with two projects underneath "local_apps.general" and "shared.blog". Running the development server, everything runs great. /home/mike/www/www.test.com/ test/ settings.py urls.py

افضل وامتع لعبه على الانتر نت best game

2007-11-26 Thread غشمشم
السلام عليكم امتع لعبه على النت مباشره بدون تحميل لعبة ترافيان ترافيان هو لعبه على الانترنت في عالم ملئ بالالاف من المستعملين الذين يبدؤون جمعيهم كزعماء لقرى صغيره بحيث يشنون حروبا على بعضهم بإمكانك الانضام الي اي حلف تريده كما تستطيع انشاء حلف يخصك باسمك اللعبه جدا شيقه وممتعه وتضم لاعبين م

How to edit inline a Foreignkey field in a form?

2007-11-26 Thread sjc
Hi all, I'm creating a form from two models (using the barest of code): --- models.py: class Member name = CharField email = EmailField projects = ManyToManyField('Project') class Project submitter = ForeignKeyField(Member) description = TextField member1 = Foreign

Re: Django Web Hosting Service

2007-11-26 Thread Yatla
I have had two small Django sites running on asmallorange shared hosting for more thane a year. It took quite some time to get working in the shared environment, but then worked ok. The server reposne to the first hit on the site is slow to respond, but then ok. I just recently moved to a VPS a

New Forms --How to get change values inside a form field based on choices made in another field

2007-11-26 Thread Keith Mallory
Hi, I am toying around with newforms. I have a registration form with Country, State, cities. I want a user to get just the states within the country, and cities related to the state. I plan to have have country, state and city with foreignkey. With every state having a foreignkey to a country

Re: Django and PyAMF, AMF remoting

2007-11-26 Thread Arnar
Hello Bert, Sorry for the late reply. On Nov 22, 3:50 pm, Bert Heymans <[EMAIL PROTECTED]> wrote: > Installing went fine (sudo python setup.py install), and the tests are > OK (python setup.py test) but somehow I can't access the django > package. This is the output I get in a terminal: > > Pyth

Re: management.py and post_syncdb

2007-11-26 Thread leotr
And where is " ' " sign after Kiev? --~--~-~--~~~---~--~~ 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

Re: management.py and post_syncdb

2007-11-26 Thread leotr
why would you need that? why don't you simply use fixtures? --~--~-~--~~~---~--~~ 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: Preferred Schema Evolution Tool

2007-11-26 Thread Derek Anderson
the SoC2006 branch isn't dead (assuming that's what you're talking about not being touched in 4 months), it has just been pulled into an external project: http://code.google.com/p/deseb/ there is also an intro/howto video available here: http://kered.org/deseb_demo.mpeg ~10 m

Re: Detecting Object with Empty Relation Ship

2007-11-26 Thread Manakel
It look like sensible options to make the check. I'll try to test the one related to Q Object. Note: Your blog is my second bible for django (first being the B- List) :-) On Nov 23, 8:15 pm, Empty <[EMAIL PROTECTED]> wrote: > I'm not sure I follow you completely, but I think my blog post on the

Re: Out of range value

2007-11-26 Thread Thomas Güttler
Am Montag, 26. November 2007 14:28 schrieb Nader: > Hallo, > > I have a model in which one field value can be a large integer value > (from 2^0=1 till 2^32=4294967296). ... > If want to try to input the 2^31 or 2^32 I get the next 'Warning': > Out of range value adjusted for column 'poolMaskID' at

Re: Out of range value

2007-11-26 Thread James
MySQL's int column is 4 bytes long. If you need to go (2^32) - 1 is the largest value that will fit in an unsigned int and (2^31) - 1 is the largest that will fit in a signed int. This is because 2^32, in binary, is a 1 with 32 zeroes after it--likewise 2^31 is a 1 with 31 zeroes after is. Subtrac

Out of range value

2007-11-26 Thread Nader
Hallo, I have a model in which one field value can be a large integer value (from 2^0=1 till 2^32=4294967296). poolMaskID = models.IntegerField(choices=[(pow(2,elm), '2^%s=%s' % (elm, pow(2,elm))) for elm in range(33)]) The definition of attribute i

Re: FastCGI shared hosting

2007-11-26 Thread Phil
In case your hoster is dreamhost, please consider changing your "app.fci" to "dispatcher.fcgi". Dreamhost is known to do special stuff when the fcgi is named that way. On Nov 22, 6:31 pm, Dwarf <[EMAIL PROTECTED]> wrote: > Hello, > the problem is getting to be annoyed. > I have shared django host

management.py and post_syncdb

2007-11-26 Thread sector119
Hi! I need to provide some initial data for my model. I decided to use signals.post_syncdb for this. % cat locations/management.py # -*- coding:utf-8 -*- from django.dispatch import dispatcher from django.db.models import signals from locations import models as locations_app DEFAULT_LOCATION =

()(()()()*****)*)*)**)*))**)*)*)*)*)* ░♥♥░⌠░♥♥░⌠░♥♥░⌠░♥♥░⌠░♥♥░⌠

2007-11-26 Thread gf
()(()()()*)*)*)**)*))**)*)*)*)*)* ░♥♥░⌠░♥♥░⌠░♥♥░⌠░♥♥░⌠░♥♥░⌠ INDIAN SEXMASALA VIDEOFREE FREE SEX TO NIGHT FREE SEX( ░♥♥░⌠░♥♥░⌠░♥♥░⌠░♥♥░⌠░♥♥░⌠ ░♥♥░⌠░♥♥░⌠░♥♥░⌠░♥♥░⌠░♥♥░⌠ *(*(*(*(*(*(*(*( INDIAN SEX STILL SOUTH INDIAN GIRLS SEX NO SOFTWARE SITE ONLY SEX http://jum

Re: exporting related data without killing the db

2007-11-26 Thread jj
I solved a similar issue using custom SQL. It's a little tedious to write, but the boost is significant. The way I've structured this: 1. create a manager for the main class 2. for each related object (either foreignKey or many2many), create a method fieldname_in_bulk() 3. create a method select_

exporting related data without killing the db

2007-11-26 Thread lispingng
Hi, I am working on a large project that requires i export applications to csv. the problem is the Application model has about six foreignkey fields including one to the Profiles model. also there are two backward relations to the Application models as well in other words the model structure is a

turkish singer list and their clips

2007-11-26 Thread turkeyfans
turkish singer list and their clips http://fankulup.blogspot.com --~--~-~--~~~---~--~~ 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

Re: validating fields with newforms - part 2

2007-11-26 Thread Thomas Güttler
Am Freitag, 23. November 2007 14:37 schrieb Wolfram Kriesing: > this has two drawbacks: > 1) the URL is validated in the "wrong" place (in clean() instead of > clean_url()) > 2) the error, if one occurs, is not assigned to the errors['url'] > but errors['__all__'] > > fixing 2) would also be ha