How to serve a static html file instead of rendering it as a template.

2010-06-10 Thread lalaba
Hi all, I am wondering how I can serve an html file without having to have Django think it's a template file. In my html file, because there are markups that confuse Django, I'd like to serve it as it is. I tried to read the html file directly into Django, and use HttpRespont(htmlText) to get arou

Re: Error I continue to get

2010-06-10 Thread Kenneth Gonsalves
On Friday 11 June 2010 12:05:50 Sam Lai wrote: > That error message looks like Windows to me. try adding the word > python at the start of that command. > yes, it did not look like a linux error message - although last time I looked windows would say 'bad command or file name' -- Regards Kennet

Re: Error I continue to get

2010-06-10 Thread Sam Lai
That error message looks like Windows to me. try adding the word python at the start of that command. If you are indeed on Windows, how did you install Python? The easiest one I've used is the ActiveState's ActivePython distribution for Windows; sets everything up properly, including proper file e

Re: unable to download django

2010-06-10 Thread Kenneth Gonsalves
On Friday 11 June 2010 00:32:38 JRMAbock wrote: > I did finally get Django 1.2.1 downloaded but now it wont install. > what do you mean by 'won't install'? all you need to do is symlink django to the site-packages directory and symlink django-admin.py to somewhere in your path and you are done

Re: Error I continue to get

2010-06-10 Thread Kenneth Gonsalves
On Friday 11 June 2010 02:50:55 JRMAbock wrote: > I am trying to start a project by entering into the command line. > > directory> django-admin.py startproject mysite > > after I enter it I get the return > > django-admin.py is not recognized as an internal or external command > operable program

Re: CSRF token not adding hidden form field

2010-06-10 Thread Joel Klabo
yeah, still 403. CSRF token missing or incorrect. On Jun 10, 7:20 pm, Lee Hinde wrote: > Is the error the same? > > > > On Thu, Jun 10, 2010 at 5:41 PM, joelklabo wrote: > > Still won't work. Here is my views.py: > > > def login(request): > >        c = {} > >        c.update(csrf(request)) > >

Re: Writing your first Django app tutorial, part 3 question

2010-06-10 Thread Dan Harris
Looks like you haven't created any polls yet, at least not one with an ID of 5. Go into the admin section described in part 2 of the tutorial and make a few polls. Once you've create some you should see polls of IDs 1,2,3 etc show up and the URLs should start to work. Dan Harris dih0...@gmail.com

Re: CSRF token not adding hidden form field

2010-06-10 Thread Lee Hinde
Is the error the same? On Thu, Jun 10, 2010 at 5:41 PM, joelklabo wrote: > Still won't work. Here is my views.py: > > def login(request): >        c = {} >        c.update(csrf(request)) >        if request.POST: >                username = request.POST['username'] >                password = req

Re: Writing your first Django app tutorial, part 3 question

2010-06-10 Thread albert kao
On Jun 10, 6:30 pm, albert kao wrote: > I try the "Writing your first Django app tutorial, part 3" (http:// > docs.djangoproject.com/en/dev/intro/tutorial03/#intro-tutorial03) with > Django-1.2.1. > I have got a Page not found (404) when modifying the urls.py described > in the "Decoupling the U

Re: Problem with mod_wsgi and django

2010-06-10 Thread Graham Dumpleton
Do you have multiple Django sites hosted on the same Apache? Try alternate WSGI script as documented in: http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html to see if it makes a difference. Graham On Jun 11, 12:44 am, Hasnain Lakhani wrote: > I have a django site deploye

HIPAA experience

2010-06-10 Thread DrBloodmoney
Hello, I was hoping that some of the list members who have experience building HIPAA-compliant (or SOX-compliant) django apps could share some of their experiences. We are beginning to research possibly implementing some internal apps in our department, but of course working with patient data requ

Re: CSRF token not adding hidden form field

2010-06-10 Thread joelklabo
Still won't work. Here is my views.py: def login(request): c = {} c.update(csrf(request)) if request.POST: username = request.POST['username'] password = request.POST['password'] else: request = 'it is not there.'

Re: PendingDeprecationWarning during tests

2010-06-10 Thread Russell Keith-Magee
On Thu, Jun 10, 2010 at 9:05 PM, Plovarna wrote: > Hello, > I recently migrated from Django 1.1.2 to 1.2.1. When I run my test now, I get > a lot of PendingDeprecationWarning messages in console during Installing > index "phase". For example: > > ... > Creating table basket_basketitem > Creating

Re: not able to recognize non-default python files in app + project directory

2010-06-10 Thread Dan Harris
When you split things out into multiple files or directories you have to remember to import them into the models.py file or the __init__.py file (if using a directory). So if i had some models in a new file "extraModels.py" for example # In extraModels.py class ExtraModel(models.Model): pass

Re: Writing your first Django app tutorial, part 3 question

2010-06-10 Thread Dan Harris
According to your urlconf you should be going to a url like http://127.0.0.1/polls/5/results where the "5" is the ID of the poll you are looking at the results for. You are just missing the ID it looks like. See this: http://docs.djangoproject.com/en/1.2/intro/tutorial03/#write-your-first-view pa

UnboundLocalError: local variable 'resolver' referenced before assignment

2010-06-10 Thread Marcus Whybrow
mod_wsgi (pid=2639): Exception occurred processing WSGI script '/home/ webapps/apache/tinygraph.wsgi'. Traceback (most recent call last): File "/home/webapps/.virtualenvs/tinygraph/lib/python2.6/site- packages/Django-1.2.1-py2.6.egg/django/core/handlers/wsgi.py", line 241, in __call__ respons

Re: annotate with query set for distinct values

2010-06-10 Thread sebastien piquemal
I think you didn't really look well anotate, because it looks like it is what you qre looking for ! Or is there something I misunderstood ? http://docs.djangoproject.com/en/dev/ref/models/querysets/#annotate-args-kwargs "Annotates each object in the QuerySet with the provided list of aggregate va

Re: not able to recognize non-default python files in app + project directory

2010-06-10 Thread rahul jain
anyone on this ?? --RJ On Thu, Jun 10, 2010 at 11:34 AM, rahul jain wrote: > Hi Django, > > In my app directory, I splitted my models and views.py into multiple > files since they start becoming very long but django is not able to > recognize those files . > It only recognizes models.py, views.p

Re: error: unsupported operand type(s) for *: 'Decimal' and 'float'

2010-06-10 Thread Dan Harris
To be more specific it looks like this: ((pow(2*math.pi*v,2)))*((pow(2,2)) piece of your very large single line of calculation is the culprit. You should be able to convert to a decimal like so: {previous_stuff_here} * Decimal(str(((pow(2*math.pi*v, 2)))*((pow(2,2 * {more_stuff_here } As a

Writing your first Django app tutorial, part 3 question

2010-06-10 Thread albert kao
I try the "Writing your first Django app tutorial, part 3" (http:// docs.djangoproject.com/en/dev/intro/tutorial03/#intro-tutorial03) with Django-1.2.1. I have got a Page not found (404) when modifying the urls.py described in the "Decoupling the URLconfs" section: Request Method: GET Reque

Re: select_related() depth when specifying fields

2010-06-10 Thread Dan Harris
Michael, I believe the case of query.select_related(person__place) will "only" follow the place foreign key. This means that if you had 5 FK's in your person models, that only a single FK would be followed instead of all 5 for optimization. Upon further looking there is also a "depth" argument you

Re: annotate with query set for distinct values

2010-06-10 Thread SlafS
Yes, I'm aware of the background of the problem but i was wondering if I can somehow "workaround" it. Thanks for Your help On 10 Cze, 23:34, Dan Harris wrote: > The problem is the GROUP BY you are looking to get. The problem with > doing a group by you don't get the whole object which is what th

Re: annotate with query set for distinct values

2010-06-10 Thread Dan Harris
Here is an example: # In models.py class TestModel(models.Model): name = models.CharField() # Get a listing of unique names and their counts # In some view from django.db.models import Count TestModel.objects.values("name").annotate(Count("name")) This will return a list of the form: [{'na

occasional: 'ManagementForm data is missing or has been tampered with'

2010-06-10 Thread felix
When using admin inline forms I am occasionally getting these odd errors, the vast majority of them from a single user. The POST is missing many fields (including the management form ones) and one of the fields (description) is even cut off in the middle ! POST:Call Howard at xxx-xxx- for sh

Re: Thinking of Patterns

2010-06-10 Thread Erkan Özgür Yılmaz
Hi James, I've been searching for a good way of developing an open source Scheduling, Asset Tracking and Project Management system too. But I think your idea is something bigger than mine. I was trying to design a software system specialized for animation and fx studios. Actually, what I aim is p

Re: annotate with query set for distinct values

2010-06-10 Thread Dan Harris
The problem is the GROUP BY you are looking to get. The problem with doing a group by you don't get the whole object which is what the Django queryset is trying to return: res = queryset.annotate(Count("name")) This will give you a result set that you want and you can iterate over like: {% for r

Re: CSRF token not adding hidden form field

2010-06-10 Thread Lee Hinde
You need to add: from django.core.context_processors import csrf at the top of Views.py and c = {} c.update(csrf(request)) to each response/view since you're using render_to_response On Thu, Jun 10, 2010 at 8:10 AM, joelklabo wrote: > This is my source on GitHub if anyone is intereste

Re: select_related() depth when specifying fields

2010-06-10 Thread Dan Harris
According to the select_related() documentation at: http://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.QuerySet.select_related it looks like select related "follows foreign keys as far as possible". In the documentation example it shows select_related following a foreign k

error: unsupported operand type(s) for *: 'Decimal' and 'float'

2010-06-10 Thread Waleria
Hello.. I again.now my problem is: I have the function following: http://paste.pocoo.org/show/224041/ These values i get of a form...however returns me an errorfallows below the error Exception Type: TypeError Exception Value: unsupported operand type(s) for *: 'Decimal' and 'float' E

Re: error: unsupported operand type(s) for *: 'Decimal' and 'float'

2010-06-10 Thread felix
use float( form.cleaned_data['a'] ) etc also, when retreiving the field from the db it will be a Decimal object and needs to be converted to do math with it on_sale = float(myObj.price) * 0.9 On Jun 10, 9:22 pm, Waleria wrote: > Hello.. > > I again.now my problem is: > > I have the fu

Re: dev server smtplib error

2010-06-10 Thread Karen Tracey
On Thu, Jun 10, 2010 at 11:22 AM, adrian wrote: > > I have seen this error now on 3 projects and two OS (Mac & Linux), but > only with the dev server. > The view will begin the response and then hang for a long time (30+ > seconds), then this error is generated and it > continues normally. Usua

annotate with query set for distinct values

2010-06-10 Thread SlafS
Hi there! I have a question. If i have a model with some fields (let's say all CharFields named aaa,bbb,ccc etc. and some calculated properties named xxx and zzz) how can I obtain something similar to "SELECT aaa, count(aaa) FROM my_model_table GROUP BY aaa;" i.e. a list of - lazy loaded - objects

Re: annotate with query set for distinct values

2010-06-10 Thread SlafS
Thanks. I've already tried that but this isn't quite what i'm looking for. As u wrote this returns a list, but I would like to obtain my calculated property when I'm iterating over this. Like so (let's say the result is in res variable) : {% for r in res %} {{r.xxx}} - {{r.name__count}} {% end

Error I continue to get

2010-06-10 Thread JRMAbock
I am trying to start a project by entering into the command line. directory> django-admin.py startproject mysite after I enter it I get the return django-admin.py is not recognized as an internal or external command operable program or batch file Can anyone help me fix this problem? -- You re

Re: not able to recognize non-default python files in app + project directory

2010-06-10 Thread rahul jain
HI Dan, Thanks for your response but that will not solve my problem. I am not splitting models. I am splitting actions defined in the models across multiple files. So suppose one of my model actions is calling which in turn calls the constructor or simple functions defined in normal python fil

Re: select_related() depth when specifying fields

2010-06-10 Thread Michael Hrivnak
I read that myself. I asked the question because it goes on to state that you can specify down-stream models like this: query.select_related(person__place) If it follows all relationships as far as possible, even when specific relationships are requested, why would that syntax ever be necessar

select_related() depth when specifying fields

2010-06-10 Thread Michael Hrivnak
If I use select_related() on a queryset and specify some attribute names, will it follow those relationships as far as possible, or does that imply "depth=1"? Thanks, Michael signature.asc Description: This is a digitally signed message part.

Re: error: unsupported operand type(s) for *: 'Decimal' and 'float'

2010-06-10 Thread Dan Harris
The error looks like you are attempting to multiply a decimal by a float which isn't allowed. Django coerces form fields like DecimalField into a decimal object. See: http://docs.python.org/library/decimal.html for more information about the decimal object. An error occurs like the one you have i

Re: unable to download django

2010-06-10 Thread JRMAbock
I did finally get Django 1.2.1 downloaded but now it wont install. I have cleaned my registry to get rid of svn django files but I may not have deleted all of them because I can still access the directory django and django-trunk is still a possible directory when I check my dir. Can I install Djan

Re: parameters directly in the function

2010-06-10 Thread Waleria
Well.i got this values of a form but i thank you very much...because i got resolve this problem Thank you On 10 jun, 15:53, Daniel Roseman wrote: > On Jun 10, 6:13 pm, Waleria wrote: > > > Hello!!! > > > I'm Walériai have a question about a functionsi have a > > function bellow: > >

Re: parameters directly in the function

2010-06-10 Thread Daniel Roseman
On Jun 10, 6:13 pm, Waleria wrote: > Hello!!! > > I'm Walériai have a question about a functionsi have a > function bellow: > > y.append(pow(form.cleaned_data['Pinc'],2)/(2*(pow(2*pi*v, > 2)))*((pow(2,2)*pow(form.cleaned_data['Qe'],2)))/ > (pow(form.cleaned_data['fp'],2))*(pow(form.cleaned

Re: Django fcgi deployment on bluehost

2010-06-10 Thread John Shaver
I know a bit about setting it up on bluehost. Have you already tried following their helpdesk article? http://helpdesk.bluehost.com/index.php/kb/article/000531 Are you installing your own python, or are you using the already installed one? You should have python 2.6 already installed (/usr/bin/

parameters directly in the function

2010-06-10 Thread Waleria
Hello!!! I'm Walériai have a question about a functionsi have a function bellow: y.append(pow(form.cleaned_data['Pinc'],2)/(2*(pow(2*pi*v, 2)))*((pow(2,2)*pow(form.cleaned_data['Qe'],2)))/ (pow(form.cleaned_data['fp'],2))*(pow(form.cleaned_data['df'],2))) I need to pass this parameter (2

Thinking of Patterns

2010-06-10 Thread James O'Connor
I've been toying with the idea of building some higher level components for Python. More of business frameworks for solving certain kinds of problems. Most of the frameworks I see for Python and Django are fairly horizontal and low level, for which I think there is a great need, but my interest i

not able to recognize non-default python files in app + project directory

2010-06-10 Thread rahul jain
Hi Django, In my app directory, I splitted my models and views.py into multiple files since they start becoming very long but django is not able to recognize those files . It only recognizes models.py, views.py, tests.py (default ones). So In my other files If i do this from ..models import I

Chicago Python User Group: Customize Django Admin

2010-06-10 Thread Brian Ray
Hello: I will be presenting tonight at ChiPy http://chipy.org If anyone is around Chicago tonight, feel free to stop in. Here is the official announcement http://mail.python.org/pipermail/chicago/2010-June/006863.html thanks, Brian Ray http://twitter.com/brianray -- You received this message

Re: Need subset on Admin interface

2010-06-10 Thread Dan Harris
Sounds about right, glad it's working for you! Dan Harris dih0...@gmail.com On Jun 10, 12:41 pm, onorua wrote: > I did following: > add Media JS for User model (jquery and my own script follows), with > FireBug get the names of HTML id of the elemets I want to process. > Then created view with J

Re: File Upload with Progress Bar

2010-06-10 Thread Venkatraman S
I got this working with SWFUpload. I shall upload a test app which does this and update this thread. In the meantime, if you want some quick help, then let me know. or can refer to : http://github.com/naltimari/django-swfupload-samples -V- http://twitter.com/venkasub On Fri, Jun 4, 2010 at 4:41

Re: Need subset on Admin interface

2010-06-10 Thread onorua
I did following: add Media JS for User model (jquery and my own script follows), with FireBug get the names of HTML id of the elemets I want to process. Then created view with JSON output. $(document).ready(function() { $('#id_Port').html(""); $('#id_Switch').change(function() { va

Translation preprocessor intelligence

2010-06-10 Thread stanleyxu2005
Hi All, I am writing a multi-language project. Most translatable strings are in templates. I override some django templates as well. When I run the translation preprocessor "python /usr/bin/django-admin.py makemessages -a", all translatable strings from those modified django templates appear in tr

Django mashup contest

2010-06-10 Thread Martin Ostrovsky
Hi, (Apologies in advance for the spam) Our company, repustate.com, just launched our new natural language processing API. It's totally open & free and is powered by Django. To kick off our launch, we're having a contest to see who can create the best mashup using our API and any others on the we

Re: list_editable duplicate queries

2010-06-10 Thread chadc
As a follow-up to my last message, there seems to be another issue when the foreign key is optional. If you set 'null=True, blank=True' on the host field of the accounts model above, Django joins everything except the foreign key and then hits the database every time it needs data relating to the f

Re: CSRF token not adding hidden form field

2010-06-10 Thread joelklabo
This is my source on GitHub if anyone is interested: http://github.com/joelklabo/Brooski On Jun 10, 8:00 am, joelklabo wrote: > This is my urls.py: > >         (r'^site_media/(?P.*)$', 'django.views.static.serve', > {'document_root': settings.MEDIA_ROOT}), >     (r'^$', feed), >     (r'^admin/',

Re: CSRF token not adding hidden form field

2010-06-10 Thread joelklabo
This is my urls.py: (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), (r'^$', feed), (r'^admin/', include(admin.site.urls)), (r'^accounts/login/$', '.contrib.auth.views.login', {'template_name': 'base.html'}), (r'^accoun

Re: Django/MySQL trailing spaces bug?

2010-06-10 Thread Steven Davidson
Thanks Karen, Tom, I thought I understood collations and rechecking the MySQL docs I think that is still the case. I'm more than happy with __exact using the DB collation even when it is case insensitive. What I certainly didn't grasp until now was the SQL standard's (SQL-92, specifically) compar

dev server smtplib error

2010-06-10 Thread adrian
I have seen this error now on 3 projects and two OS (Mac & Linux), but only with the dev server. The view will begin the response and then hang for a long time (30+ seconds), then this error is generated and it continues normally. Usually it occurs on a page that either parses or uploads files.

Problem with mod_wsgi and django

2010-06-10 Thread Hasnain Lakhani
I have a django site deployed on an apache2.2.14 server. It mostly runs fine, however at random intervals it suddenly seems to forget my URLconf, no matter what URL i access, i get an error message saying the URL is not found. The problem lasts about a minute before it goes away by itself, however

Re: Help: Custom ManyRelatedManager Behavior

2010-06-10 Thread Alex Robbins
I recently ran into this same problem (I wanted to only show related episodes that had been marked live). I ended up just making a method on Podcasts to do it. class Podcast(models.Model): ...some data fields... def live_episodes(self): return self.episode_set.filter(live=True) class Epi

Re: Change password in administration page

2010-06-10 Thread Bill Freeman
That is an *admin-istrator* interface. A serious disadvantage of getting rid of the sha1 field is that then you couldn't save and restore it around a temporary password change to allow you to become a user in order to see a problem he's having without him having to tell you his password. You are

Re: Django fcgi

2010-06-10 Thread Kenneth Gonsalves
On Thursday 10 June 2010 19:13:54 Jeliuc Alexandr wrote: > Thank You! :) > It was tag. > beer on you next time we meet ;-) -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Simplification of a DB "query"

2010-06-10 Thread Kenneth Gonsalves
On Thursday 10 June 2010 19:26:33 illuminated wrote: > Although the above algorithm would/should work, I was wondering if > there was more elegant way to this? > without an endtime, it is going to be difficult -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received thi

Re: assigning data based on a comparison between two tables

2010-06-10 Thread Alex Robbins
It is probably better to use candidates.count(), rather than len(candidates). len will cause the whole queryset to be loaded into memory. It doesn't look like you use it later, so that is kind of a waste. Hope that helps, Alex >From django docs: Note: Don't use len() on QuerySets if all you want

Simplification of a DB "query"

2010-06-10 Thread illuminated
Hi all, I'm writing a django app and need help with filtering results from DB. There is a conference room and it's usage is stored in django model. There is a field "start_time" (model.TimeField); no "end_time". When I query the table with a time range (i.e. 3pm - 5pm) I would like to get not onl

Re: multiple databases -- database across sites?

2010-06-10 Thread Alex Robbins
Chris, The sites contrib app seems to address your use case. http://docs.djangoproject.com/en/dev/ref/contrib/sites/ You could just add a foreign key to site in the second app and modify the manager to only get items for the current site. class SiteSpecificManager(db.Manager): def get_query_se

django and facebook ilike box and button

2010-06-10 Thread Jeliuc Alexandr
Hello! I have to integrate facebook ilike box in django project. Unfortunately when I press it is says "verification required" I had similar problem before with i like button but it was symfony project and there more then 10 redirect on index page... What can be the problem? -- You received this

Re: Django fcgi

2010-06-10 Thread Jeliuc Alexandr
Thank You! :) It was tag. On Jun 10, 3:34 pm, Kenneth Gonsalves wrote: > On Thursday 10 June 2010 17:53:56 Jeliuc Alexandr wrote: > > > I'don't know.. if i have debug-toolbar in my isntalled applications it > > shows debug toolbar stacked on screen if i take it out i got > > simple white screet

Re: PendingDeprecationWarning during tests

2010-06-10 Thread Bzyczek
Yes, it seems but I don't know why -- I use new way for specifying DB settings with DATATASES dictionary like: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'my_db', 'USER': 'my_user', 'PASSWORD': 'my_pass', 'HOST

Change password in administration page

2010-06-10 Thread stanleyxu2005
Hi All again, The django "change password" way in user profile is IMO very programmer-oriented. In the password field, it shows "sha1$7b0a7$1132f5a57d65325337b25a162b04b40fa6d55f6f" something like that. And to goto the normal change password dialog, user must have to click the not very well visib

Re: PendingDeprecationWarning during tests

2010-06-10 Thread Kenneth Gonsalves
On Thursday 10 June 2010 18:35:32 Plovarna wrote: > Does anybody know where this messages came from? > looks like the new multidb syntax needed for your connection string in settings.py -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you a

Re: Is there a way to force a template to get translated to a certain language without passing RequestContex?

2010-06-10 Thread Vasil Vangelovski
Thanks for the help. On Thu, Jun 10, 2010 at 12:49 PM, Tom Evans wrote: > On Thu, Jun 10, 2010 at 11:39 AM, Vasil Vangelovski > wrote: >> I'm rendering a template with a management command (something I need >> for producing documentation in my native language). So I've no request >> object, so n

PendingDeprecationWarning during tests

2010-06-10 Thread Plovarna
Hello, I recently migrated from Django 1.1.2 to 1.2.1. When I run my test now, I get a lot of PendingDeprecationWarning messages in console during Installing index "phase". For example: ... Creating table basket_basketitem Creating table accounts_userprofile Creating table accounts_address Creat

Model history in administration page

2010-06-10 Thread stanleyxu2005
Hello All, I created a model and let it be shown in administration page. The model is very simple, it contains a description and an ip address. I created a demo model named "aaa". And then click the "History" button right top at the detail view of this model. But the action field is empty. I assu

Re: Django fcgi

2010-06-10 Thread Jeliuc Alexandr
:) It is very good idea. I've some js blocks. Thank You. Kenneth On Jun 10, 3:34 pm, Kenneth Gonsalves wrote: > On Thursday 10 June 2010 17:53:56 Jeliuc Alexandr wrote: > > > I'don't know.. if i have debug-toolbar in my isntalled applications it > > shows debug toolbar stacked on screen if i take

Re: Django fcgi

2010-06-10 Thread Kenneth Gonsalves
On Thursday 10 June 2010 17:53:56 Jeliuc Alexandr wrote: > I'don't know.. if i have debug-toolbar in my isntalled applications it > shows debug toolbar stacked on screen if i take it out i got > simple white screet without any data ... > what should it be? fcgi file? or .htaccess ? > my only expe

Re: Django fcgi

2010-06-10 Thread Jeliuc Alexandr
I'don't know.. if i have debug-toolbar in my isntalled applications it shows debug toolbar stacked on screen if i take it out i got simple white screet without any data ... what should it be? fcgi file? or .htaccess ? On Jun 10, 3:20 pm, Kenneth Gonsalves wrote: > On Thursday 10 June 2010 17:29:3

Re: Django fcgi

2010-06-10 Thread Kenneth Gonsalves
On Thursday 10 June 2010 17:29:31 Jeliuc Alexandr wrote: > Hello. I just installed django on remote host using fcgi mode... > Now I've strange problem it works for chrome and gives error for > firefox > what error? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You rec

Re: Generic views & summary in the side bar

2010-06-10 Thread tsmets
Most combinations around the following syntax did not seem to have worked : [code] latest_news_nbr = { "queryset" : News.objects.all().count(), "template_object_name" : "latest_news_nbr", "extra_context" : {"latest_news_nbr" : News.objects.all().count()} } [/code] ... what I meant wit

Using array type data in Django/ Postgresql

2010-06-10 Thread bjja
Hi Psycopg2 supports array types but I can not find any evident information whether Django supports them. Bjørn -- 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 unsubscribe

Django, Caching and PostgreSQL replication

2010-06-10 Thread Simon Riggs
fyi, PostgreSQL CHAR(10) conference has detailed coverage of * Django and PostgreSQL replication * PostgreSQL and memcache * Latest PostgreSQL 9.0 replication features * Slony and pgpool updates * other technologies CHAR(10) is being held in Oxford, UK on July 2-3. You can register and/or pay on

ANN: eGenix pyOpenSSL Distribution 0.10.0-1.0.0a

2010-06-10 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.10.0-1.0.0a An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface f

Re: pg_get_serial_sequence("unknown", "unknown") - revision 13336

2010-06-10 Thread Russell Keith-Magee
On Thu, Jun 10, 2010 at 7:26 PM, Federico Capoano wrote: > Yea, you're right, thank you so much guys. > > I downloaded django 1.2.1 stable and put that for the moment. > > When I'll have time I will upgrade postgres. FYI - I've just reverted r13328, so the 1.2 branch will support Postgres 7.4 aga

Django fcgi

2010-06-10 Thread Jeliuc Alexandr
Hello. I just installed django on remote host using fcgi mode... Now I've strange problem it works for chrome and gives error for firefox What is the problem? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Django Send Mail

2010-06-10 Thread Kenneth Gonsalves
On Thursday 10 June 2010 13:36:42 Sudharshan wrote: > d that too... doesn't seem to be working > moreover i need to add that from the google searching that i did i > come to know that all cpanel accounts are smtp- authenticated! > but still i don't know what the problem is > not all are - I

Re: pg_get_serial_sequence("unknown", "unknown") - revision 13336

2010-06-10 Thread Federico Capoano
Yea, you're right, thank you so much guys. I downloaded django 1.2.1 stable and put that for the moment. When I'll have time I will upgrade postgres. On Jun 9, 6:24 pm, Matt Hoskins wrote: > Hi Federico, > > From the discussion on django-developers it looks like the patch will > be reverted s

django-attachments

2010-06-10 Thread Venkatraman S
Has anyone used django-attachments? I would specifically like to know as to how i can enforce the rule that there is only ONE attachment with A model - i mean, say i have a user object, then i can upload only ONE attachment for this record. -V -- You received this message because you are subscr

Re: Is there a way to force a template to get translated to a certain language without passing RequestContex?

2010-06-10 Thread Tom Evans
On Thu, Jun 10, 2010 at 11:39 AM, Vasil Vangelovski wrote: > I'm rendering a template with a management command (something I need > for producing documentation in my native language). So I've no request > object, so no RequestContext. Is there a way I can force the template > rendering process to

Is there a way to force a template to get translated to a certain language without passing RequestContex?

2010-06-10 Thread Vasil Vangelovski
I'm rendering a template with a management command (something I need for producing documentation in my native language). So I've no request object, so no RequestContext. Is there a way I can force the template rendering process to lookup translation strings from a particular language other than Eng

Re: Generic views & summary in the side bar

2010-06-10 Thread Venkatraman S
On Thu, Jun 10, 2010 at 3:32 PM, tsmets wrote: > I thought I could use the generic views to fill the side bars with > summary data. > > Not sure what you mean - pass the vars to the template and use them accordingly wherever you want. IMHO, django doesnt know whether something is in the sidebar o

Generic views & summary in the side bar

2010-06-10 Thread tsmets
I thought I could use the generic views to fill the side bars with summary data. # urls.py latest_news_nbr = { "queryset" : News.objects.all().count(), } nbr_users = { "queryset" : PersonProfile.objects.count(), } Could some one tell me how I could have those being evaluated in a smart

Re: problem with encoding "utf-8", postgresql 8.3

2010-06-10 Thread Matt Hoskins
I can't help shed much light on the problem, but it's worth saying that 0xefbfbd is the sequence for the UTF-8 BOM (Byte Order Mark), see http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8 and is shown as a zero-width invisible character. It could be that however you're getting the "ó" onto the UR

multiple databases -- database across sites?

2010-06-10 Thread chris
Hi there, I have the following problem: There is one django site, which consists of two apps, the data for these apps are stored in a database. Some of the models in one app access models from the other app. Now I want to create a new site (on the same server), which contains new data for one o

Re: Django Send Mail

2010-06-10 Thread Sudharshan
i tried that too... doesn't seem to be working moreover i need to add that from the google searching that i did i come to know that all cpanel accounts are smtp- authenticated! but still i don't know what the problem is moreover i was getting proper debug tracebacks to my mail upto few months