Apache Setup

2008-11-25 Thread D$
Hi Everybody, Django newbie here. I'm trying to get it to work under apache with mod_python on a freebsd server but running into problems. I searched the archives and found similar things, but I tried all the suggestions and still no luck. The error: MOD_PYTHON ERROR ProcessId: 11226

Newbie Forms Question

2008-10-11 Thread d.
Sorry, I first posted this on the django developppers group, which was obviously wrong. Probably a simple, stupid error I'm making: I try to display a form in a template using: {{ rForm.as_table }} The browser displays pure html of the form content, having the form- source all escaped to s

AttributeError: 'module' object has no attribute 'TabularInline'

2009-03-04 Thread D
quot;import django; print django.get_version()" 1.0.2 final The broken server; 0.97-pre-SVN-7862 Once i updated it, it all works fine. Hope this helps someone, D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

How to display image in django template

2010-10-25 Thread d
Hi all I have been searching for solutions whole day. How would I display image file in django template. I have already set MEDIA_ROOT and MEDIA_URL. Can some one show a step by step instruction as it will help a lot of other people. Thanks! -- You received this message because you are subscrib

Django Country->State->City Dropdown list

2010-11-02 Thread d
URGENT! The following is my django code. I would like to have 3 column drop- down list. a member can select his location. when a country is selected, then all states for that country will display. the same thing happens to city. Now, I know it has something to do with Javascript. The question is

Re: Django Country->State->City Dropdown list

2010-11-02 Thread d
Thanks. I can't find intuitive examples. Can anyone post a little simple code -- 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 from this group, send email to djan

Django Dropdown List

2010-11-15 Thread d
Hi Does anyone know how to update dropdown list dynamically? If I select a country, then all states in that country will pop in the list. Can any one provide a relevant example. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Bio Technology seacrat

2007-12-18 Thread d
Bio Technology seacrat http://vigaragirls.blogspot.com/ Bio Technology seacrat http://prasoga.blogspot.com/ Bio Technology seacrat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Different settings.py files for server and development

2008-10-23 Thread D. Woodman
Thanks Ned! Cheers On Thu, Oct 23, 2008 at 7:08 PM, Ned Batchelder <[EMAIL PROTECTED]>wrote: > And BTW, my bad. Change the except: line to except ImportError, then the > syntax error from the dash will be apparent in your 500 page. > > --Ned. > http://nedbatchelder.com > > > Ned Batchelder wro

Django full text search best solution

2008-10-28 Thread alain D.
Hi, I'm looking at all the available solutions to implement a full text index for django models and I found various projects at different stages of maturity but none of them seems to have a strong community support ... so here is the list along with my comments (and last commit time) ... it any o

Re: Django full text search best solution

2008-10-28 Thread alain D.
Being inside database transactions is a good reason to use database's full text index ... but the sake of simplicity, a full text index created by python code inside the models declaration (easily maintainable) would be nice ... > Since all external full text indexing (sphinx, lucene) won't be pa

Re: Custom template tag problem: "No module named models"

2008-11-18 Thread Jim D.
I came across this thread and was having the exact same problem. *Exactly* the same... I had tried everything you tried to no avail. I actually fixed it by taking a hint from something that came out of following along with your debug session in my own code. I'll put my solution in terms of your

Admin widget for large number of related records

2008-12-05 Thread Jim D.
I apologize if this question has been asked/answered here before, but I searched around and couldn't find anything. We're working on a django app in which we're porting some existing user data overwe have about 100,000 user records that are being imported. We have many other models that are l

Issue with serializing a queryset that includes a custom SQL field defined by extra()

2008-08-25 Thread Jim D.
I think this might be a bug in source code, but before I report a ticket I thought I would ask just to ensure it's not me doing something wrong/stupid. In brief, I have a (MySQL) database table containing latitude and longitude columns. I am finding records from this table and sorting them based

Re: How to know which fields a model contains?

2008-08-25 Thread Jim D.
I'm pretty new to python myself, but my favorite way to inspect objects that I have found so far is the builtin method dir(). As in: dir(Publisher.objects.get(pk=1)) dir() tells you all of the methods and attributes for a given object, though it doesn't display the value of attributes. --~--~---

Re: Making sure published date is respected in views

2008-09-15 Thread D. Woodman
Thank you both a lot! I knew it was simple, not sure why I couldn't figure it out. Thanks! On Sat, Sep 13, 2008 at 12:55 PM, Keith Eberle <[EMAIL PROTECTED]>wrote: > Building on Marcelo's response, and an example from James Bennett's book > (Ch 5), you could also add a custom manager. It'd go s

Re: Access logged in user in models?

2008-10-04 Thread Vovk D
2008/10/4, Benjamin Buch <[EMAIL PROTECTED]>: > > > Category1: > expense1: 3.5 > expense2: 3.5 > total: 7.0 > > Category2: > expense1: 2 > expense2: 3 > total: 5 First, i think smth like sum you can do easy with JavaScript on the client-side, if cant do i

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread D. Woodman
Hi Malcolm, First off, thanks for taking the time to help out. I had an inkling that it was a permission problem, so I decided to remove everything and start again. After creating a new user and creating the folders as that user (lets call the user "bob") I still get the same issue. I have upload

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread D. Woodman
Haha, well I'm glad I didnt try that command. I ran "groups" and it returned only the group "bob" for the account I created, I did not see "apache" in that list (or any other group or user for that matter). I also ran "groups apache" with no result. Any more suggestions? Would transferring files

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread D. Woodman
just keep digging around till I stumble on the fix (which Im sure will be simple as they always seem to be...). I will be looking specifically into permissions issues as you suggested. Thanks a lot for your time and effort. Cheers, Dana On Wed, 2008-10-15 at 19:45 -0700, D. Woodman wrote: >

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread D. Woodman
Ok, thanks for the tip Malcolm, Ill try that out tonight. Have a great evening. Cheers, Dana Well, if it's a personal server with no other users on there but you, > just letting everybody (the "other" section) have read permissions on > settings.py won't hurt. So that will at least allow you to m

Form wizard back button

2009-02-06 Thread alain D.
Is there a way to add a back button using django's form wizard to navigate back to a previously filled form? I'd like users to be able to fill form1, go to form2, click "back": go to form1 (with populated fields) and continue the process ... is that possible? --~--~-~--~~--

Re: Form wizard back button

2009-02-09 Thread alain D.
It seems to me like a quite simple requirement for a form wizard ... but I'm still unable to find a simple way to do it ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Form wizard back button

2009-02-16 Thread alain D.
anyone? --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@

Inclusion Tags in Flatpages

2009-03-01 Thread d...@tintophat.com
I'm just starting to get my head around inclusion tags and have hit a roadblock. How on earth do I include them into a Flatpage base template? I don't want to have to dig into the flatpage code to make ti work so has anyone got a nice method for doing this? Cheers. Doug --~--~-~--~

Re: ImportError: No module named postgresql_psycopg2.base

2009-03-04 Thread Rajesh D
ssfully installed both django and psycopg2, I am > getting the above error. I have also set the PYTHONPATH correctly. > Is there anything else that I am missing? It's very likely that your Django installation is corrupt. Did you install it from your operating system's packaging t

Re: Django will not match r^sip/conf string in urls.py on Apache2 / modpython

2009-03-04 Thread Rajesh D
On Mar 4, 9:58 am, Dan wrote: > Url pattern below r^sip/conf and sip/createfile work for development > server but Apache comes up with a 404 error. Note that the error is > shown as Apache error not Django parsing error. So, is it Apache not > using the Python interpreter or something with Djan

Re: Django Flatpages nd set_language

2009-03-04 Thread Rajesh D
Hi Trevor, > I am building a bilingual cms type web site using Flatpages and django > admin to obviously input the content. I am using django-multilingual. > I need to be able to swap languages from one to another remembering > the page the user is on, I am aware of set_language and I created a >

Re: what would be a good schema for a facebook mini feed like app ?

2009-03-04 Thread Rajesh D
On Mar 4, 10:25 am, "uno...@gmail.com" wrote: > I have community features in my app - commenting, favoriting,friending > etc. > > I'm wondering what would be a good schema for a facebook like mini > feed app ? Where each user's acitivity stream is showed on their > profile page. Google for Dja

Re: DB Queries of unusual size

2009-03-04 Thread Rajesh D
On Mar 4, 1:44 pm, Kottiyath wrote: > I am now managing a web server for medium (going on high) traffic > site. I see that currently for each POST, it takes ~55-60 separate DB > queries for providing a reply. > Is this unusual? The total time taken for the queries is less than a > second. > I l

Re: Does Django get the height/width data of ImageField from height_field?

2009-03-05 Thread Rajesh D
irectly and not obj.image_field.width. The obj.width_field and obj.height_field values are populated by Django whenever you save an image field in your model. The above mentioned ticket discusses why the DB cached values are not returned when you access obj.img_field.width, height. -Rajesh D --~--~-

Re: Programmtically accessing properties on a model field?

2009-03-06 Thread Rajesh D
> > I'm working on some code to scrub an images directory of anything not > currently stored in the database, and would like to de-couple some > things. I'm using signals, passing in an instance of a model that I > would like to be able to grab some data from, namely, the 'upload_to' > parameter o

Re: Get Current User

2009-03-09 Thread Rajesh D
t; > The main thing I'm trying to accomplish is I want to save a model with one > of the fields being the current user that is logged in. http://docs.djangoproject.com/en/dev/topics/auth/#authentication-in-web-requests -Rajesh D --~--~-~--~~~---~--~~ You rec

Re: Overlapping date range test

2009-03-09 Thread Rajesh D
On Mar 9, 11:28 am, gnijholt wrote: > Hello django-users, > > I'm having some trouble with a date-range filter. > My goal is to prevent a model from being saved when it's date-range > overlaps with existing records. > > Apparently, the math is quite straightforward: > > ( start1 <= end2 and sta

Re: Overlapping date range test

2009-03-09 Thread Rajesh D
an implemenation of your above math rewritten this way: ( end2 >= start1 and start2 <= end1 ) -Rajesh D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Caching and logged-in users

2009-03-09 Thread Rajesh D
f you want finder control over what gets logged in. > Also, does anyone know of a simple way to tell when stuff is served > from cache and not, when you're testing on your production server? U... don't test on your production server :) If you use memcached, you can run it in v

Re: Open uploaded file while still in memory; In the Form Clean method?

2009-03-11 Thread Rajesh D
file = cleaned_data.get('xml_file') value = xml_file.read() # Do whatever validation you need on value xml_file.seek(0) # Reset the file to the beginning as you found it. Obviously, for larger files, you should read and process the data

Re: Help! Weird caching error is plaguing me!

2009-03-12 Thread Rajesh D
ou will need to make sure that the parent directory of 'django_authopenid2' is in your PYTHONPATH. Also, to ensure that the right Django templates are used, put 'django.template.loaders.filesystem.load_template_source' first in your TEMPLATE_LOADERS setting.

Re: Do fields in html templates have to be displayed in {% for loops?

2009-03-12 Thread Rajesh D
On Mar 12, 12:53 pm, NoviceSortOf wrote: > In my html template i have something like > > {% for field in form %} >     {{ field.label_tag }} >     {{ field }} > {% endfor %} > > Which loops and displays the field name and field value in the form. > > On smaller forms, I would prefer to do

Re: auth_user foreign key question

2009-03-13 Thread Rajesh D
Yes. > > After that I'm not so much as looking for how to do the above just > rather or not it is easily doable in django. The answer is a resounding "Yes". Obviously, you will have to write additional code to enforce whatever security/permi

Re: Using Static Files

2009-03-18 Thread Rajesh D
ly. > > MEDIA_URL = '/static_media/' > > (...) > > myproject/urls.py: > > from django.conf import settings > (...) > (r'^static_media/(?P.*)$', 'django.views.static.serve', > {'document_root

Re: Absolute URL

2009-03-20 Thread Rajesh D
rl = super(AbsoluteURLNode, self).render(context) # prepend your protocol and hostname to # the relative url here return url def absolute_url(parser, token): # copy the entire django.template.defaultags.url method # here and change the last line to

Re: Absolute URL

2009-03-23 Thread Rajesh D
On Mar 23, 10:20 am, Bro wrote: > Hi, > > django.template.defaultags exist ? Sorry about that. I should've typed: django.template.defaulttags --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Gallery album restricted to certain users

2009-06-19 Thread Rajesh D
> > > > On Jun 17, 7:41 am, pagetribe wrote: > > > > Hi, > > > > I have been creating a gallery, which has albums. I would like to > > > restrict the albums, say album1 to a set of users, say userA and userB > > > and album2 to userC. So userA & userB cannot view album2 and userC > > > cannot v

Re: production sites powered by django

2009-06-19 Thread Rajesh D
On Jun 19, 4:10 pm, notcourage wrote: > http://www.djangosites.org/ > is missing info like load, scaling techniques used, utilities written > (e.g., custom tags, custom form fields, custom model fields, wish > list. I don't see how one adds a site. Create an account there and login to see the

Re: active django battery projects

2009-06-19 Thread Rajesh D
On Jun 19, 4:14 pm, notcourage wrote: > I for one would be interested in replies showcasing django battery > projects underway. As a new django user, I'm stumbling on some active, > useful projects (django piston, south) and wondering if there are > projects addressing my wish list (django mode

Re: Escaping forward slashes in URLs

2009-06-25 Thread Rajesh D
On Jun 25, 12:52 pm, Andrew Fong wrote: > Question: When is it necessary to escape a forward slash? I'm dealing > with these two situations in my templates -- assume the next context > variable is a URL of some sort. > > > > http://en.wikipedia.org/wiki/URL_encoding#Percent-encoding_reserved_c

Re: Using Signals as hooks

2009-06-25 Thread Rajesh D
On Jun 25, 12:54 am, Wiiboy wrote: > I'm a bit of a noob at Web Devlopment (as you already know if you've > read any of my posts on here). > > I've read that using hooks in key places in a website can help ease > future development.  Can/Should Django's signals be used for that > purpose? > > I

Re: Writing a reusable app

2009-06-25 Thread Rajesh D
On Jun 25, 9:51 am, nabucosound wrote: > Hi all: > > I am refactoring a django app to make it reusable and share it open > sourced to the world. There is a lot code which I think it is optional > and maybe not everybody will want to use, like some model fields, url > patterns of view functions.

Re: Hard linking an image

2009-06-25 Thread Rajesh D
On Jun 25, 9:43 am, koranthala wrote: > Hi, >     I have a chart which I generate on the fly. >     Basically, I have hard linked an image. The image src contains GET > parameters, which is used to generate the chart image via matplotlib. > The resultant image is returned back as 'Content-Type'

Re: Handling a reusable form in multiple views

2009-06-25 Thread Rajesh D
On Jun 25, 4:43 pm, delino wrote: > Hi, > > I have a simple scenario using Django 0.96 and am looking for a > cleaner solution than what I currently have: > > I want to include a simple submission form (a few simple fields) on > most pages of my site. I have the form action set to '.' so that >

Re: Hard linking an image

2009-06-26 Thread Rajesh D
On Jun 26, 1:16 am, koranthala wrote: > On Jun 26, 2:21 am, Kevin Teague wrote: > > > Presumably you already have all of the data required to generate a > > chart on the server? If so, then store the chart data in a model, and > > just reference it by id. e.g. > > > > > > (or w/ a pretty URL:

Re: Using Signals as hooks

2009-06-26 Thread Rajesh D
On Jun 25, 10:49 pm, Wiiboy wrote: > Question: how often should I have a cron job work to send emails?   Depends on the volume of emails and the frequency with which new articles are submitted to your site. Just try a frequency of say every 10 minutes and adjust it up or down when you have rea

Re: I couldn't re-write save() of mymodels in admin.py instead of models.py ?

2009-06-26 Thread Rajesh D
On Jun 26, 7:33 am, Shuge Lee wrote: > models.pyhttp://gpaste.com/p/3747b > > admin.pyhttp://gpaste.com/p/3d432 If you need to have custom code when a model is saved through the admin, you should override the save_model method in your Admin class. See this doc: http://docs.djangoproject.com/e

Re: switching menu items on and off - dynamic urls?

2009-06-26 Thread Rajesh D
On Jun 26, 7:17 am, Kenneth Gonsalves wrote: > hi, > > I have a conference management application. It has a list of menu items on the > lefthand side. These menus are created by a templatetag from a list of menus > in views.py. At various stages of the conference, menu items have to be > enable

Re: admin like list view

2009-06-26 Thread Rajesh D
On Jun 26, 11:35 am, pihentagy wrote: > Hi! > > I am developing a django app, which will be installed at multiple > places with different configuration. > > It has some models, and list views. > > I store in a config dict the fields/methods to be displayed, and I'd > like to offer sorting (auto

Re: Uploaded File Array

2009-06-29 Thread Rajesh D
On Jun 29, 11:05 am, BarakatX2 wrote: > I have a form that allows a dynamic number of files to be uploaded. On > the Django side, if I print the request.FILES it is described as: > > png)>, , > ]}> > > But when I try to access the files like this: > > for f in files['rqFiles']: > > Then f is a

Re: How to write to the history

2009-07-01 Thread Rajesh D
On Jul 1, 12:10 pm, mettwoch wrote: > Hi group, > > What would be a good way to log changes made to models from outside > the admin interface? Look at the log_* methods in the Admin implementation: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py#L377 You cou

Re: file extensions for templates

2009-07-01 Thread Rajesh D
On Jul 1, 8:30 am, David De La Harpe Golden wrote: > Hi, > > As far as I can see, django shouldn't care in the slightest about > template file name extensions, but being a django newbie, I could have > missed something (e.g. autosetting of a mime type somewhere based on > extension), so just to

Re: How to filter out posts from friends?

2009-07-01 Thread Rajesh D
On Jul 1, 9:50 am, Mathieu Leplatre wrote: > On 1 juil, 14:44, coan wrote: > > > > > > > I have a friendship model for users and want to retrieve all the posts > > my friends made. > > > class Friendship(models.Model): > >  from_friend = models.ForeignKey( User, related_name='friend_set' ) > >

Re: Using a dynamically created ImageField filename prior to save?

2009-07-01 Thread Rajesh D
> > > This is an issue which, I believe, is related to Ticket #10788 > > (http://code.djangoproject.com/ticket/10788). > > > The following code snippet used to work with Django 1.0.2, but with > > the latest svn version the slug is not being set to the filename > > produced by get_path because, as

Re: How to filter out posts from friends?

2009-07-01 Thread Rajesh D
On Jul 1, 4:35 pm, Daniel Roseman wrote: > On Jul 1, 8:59 pm, Rajesh D wrote: > > > > > > > On Jul 1, 9:50 am, Mathieu Leplatre wrote: > > > On 1 juil, 14:44, coan wrote: > > > > > I have a friendship model for users and want t

Re: Keep session data between user switches

2009-07-02 Thread Rajesh D
On Jul 2, 12:18 pm, mettwoch wrote: > Hi, > > I write a POS application and several users share the same terminal. > They use a barcode scanner to point to their badge to login (works > already). I'd like to keep the session data for every user so that > when user A leaves the terminal and user

Re: Reusable Contact Form include error?

2009-07-02 Thread Rajesh D
On Jul 2, 12:35 pm, 1angrycats wrote: > Hi everyone, long time lurker, first time botherer. > > I hope someone here can help me out (& possibly a few other Django > n00bs in the future too). > > I've dug around as best I can but can't find a - probably simple - > solution to an issue I'm ha

Re: Django-rest-interface - querying data

2009-07-02 Thread Rajesh D
On Jul 2, 11:03 am, Matt wrote: > Hi all, > > I've started to use the django-rest-interface to build an API for a > service that I'm working on. Principally all that's required is for a > client to be able to create and update objects remotely via POST and > PUT, but as this is the first REST i

Re: Reusable Contact Form include error?

2009-07-03 Thread Rajesh D
On Jul 3, 8:57 am, 1angrycats wrote: > Great suggestion Rajesh. > > I've shifted everything into a custom context processor and > everythign's runnign well, with the view showing and emailing from any > page, however there's a final step I'm looking to resolve: returning > the HttpResponseR

Re: Efficiency of getting attribute values in templates

2009-07-03 Thread Rajesh D
On Jul 3, 9:17 am, Nikola Pavlović wrote: > Hello people, > > I'm writing my first Django application and would like to know what is > considered more efficient: getting values of models' attributes in views > or directly in templates? > > More precicely, say we have a Person model with name an

Re: Efficiency of getting attribute values in templates

2009-07-04 Thread Rajesh D
On Jul 4, 6:30 pm, TechnicalBard wrote: > Is there a way to pass an object to the template and have the template > handle all of the attributes without hardcoding them into the > template? Depends on what you mean by "handle". The template won't by itself know the markup with which you want to

Re: Efficiency of getting attribute values in templates

2009-07-05 Thread Rajesh D
On Jul 4, 9:28 pm, TechnicalBard wrote: > But the admin app does - it defines the labels from the attribute > names and just puts them all in a table or list. > > How does one do that? Actually, you tell it which fields you want to display through the list_display attribute on your Admin class

Re: Removing old Django - also django-admin.py?

2009-07-08 Thread Rajesh D
On Jul 8, 3:18 pm, Dave E wrote: > I've just removed my old Django 1.0 dir to install 1.1 (as per the > instructions on the Django > site):http://docs.djangoproject.com/en/dev/topics/install/#removing-old-ver... > > But this leaves django-admin.py under (on Mac OS 10.4.11): > /Library/Framewor

Re: Make three columns without violating DRY

2009-07-09 Thread Rajesh D
On Jul 9, 4:29 pm, Wiiboy wrote: > Hi, > On the homepage of my website, I have three columns of articles from > users. I can't quite figure out how to make those three columns > without violating DRY.  Now, I have a dictionary of lists, with each > list being the list of articles for one column

Re: NameError: name 'Job' is not defined

2009-07-10 Thread Rajesh D
On Jul 10, 8:39 am, bruno wrote: > Hi, > > I'm new in django and I have problem with importing models > > I have two class : Job and Event > > The Job class defines a method run_job() wich do something and log the > result by creating a new Event so I need to import the Event class > from file

Re: duplicate primary key problem

2009-07-10 Thread Rajesh D
On Jul 10, 11:06 am, adelaide_mike wrote: > I suspect this is a question more for a PostgreSQL list, but please > bear with me. > > In Django 1.0.2 working with PostgreSQL 8.3 I have a model with an > implied pkey.  PostgreSQL syas this: > > CREATE TABLE wha_property > ( >   id serial NOT NULL,

Re: Django 1.0.2 ordering fireign keys

2009-07-23 Thread Rajesh D
> Lets say I have two models Street and House, related by a foreign key > thus: > > class House(models.Model): >     house_number =  models.CharField(max_length=16) >     street = models.ForeignKey(Street) > > In the admin area, the Change House page displays a list widget by > which to select the

Re: How I run background processes

2009-07-23 Thread Rajesh D
On Jul 21, 9:10 am, Philippe Josse wrote: > Hi there, > > I would like to have your feedback on the way I am running daemon scripts > for my Django/ Python app. I know this is definitely not the "one best way", > but this is a solution I came up with that seemed simple to implement. (I am > a r

Re: Customizing a manytomany admin box

2009-07-23 Thread Rajesh D
On Jul 22, 11:17 pm, knicholes wrote: > Hey, > > I used the admin to display a manytomany field (that had over 60,000 > entries) and used raw_id_field = ('hugeDatabaseField').  This took > care of the problem, but I wanted to be able to sort my manytomany > field, so I added an intermediary cla

Re: Django / Postrges problem

2009-03-25 Thread Rajesh D
processes could swap to a crawl. Take another look at the cron job to see if it's demanding too much from PGSQL or from the server's other resources. Also, you should set PGSQL in debug mode and study your logs and look for some initial clues there. -Rajesh D --~--~-~--~

Re: Including username in FileField upload_to path

2009-03-26 Thread Rajesh D
ForeignKey appear _before_ the file field? Make sure it does. If that fails, can you describe what you mean by "No luck" above i.e. provide more details of your custom upload_to callable? -Rajesh D --~--~-~--~~~---~--~~ You received this message because yo

Re: show choice field title not value on template

2009-03-27 Thread Rajesh D
alue on template?  I scanned admin > templates . seems something like dict(choices).get(). just cannot figure > it out.  Anyone can help me? Thanks   {{ model_instance.get_sendchannel_display }} http://docs.djangoproject.com/en/dev//ref/models

Re: project name in url?

2009-03-30 Thread Rajesh D
http://groups.google.com/group/satchmo-users?lnk=srg -Rajesh D --~--~-~--~~~---~--~~ 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 un

Re: Inheriting attributes from a model

2009-04-01 Thread Rajesh D
tem, instead of a > foreign key. Yes, that's the right way to approach this problem. > Is there a clean way to do, or do I have to copy all the attributes > here manually? You could serialize your product instance into a TextField in QuoteItem: from django.

Re: Flatpages variables

2009-04-01 Thread Rajesh D
On Apr 1, 2:30 am, Wiiboy wrote: > Hi, > I've got a site where users must be logged in to view any pages. > Logged in users may write articles for the newsletter, and upload > them.  I then convert the article to HTML (manually), and make it > available for other users.  I'd like make them avai

Re: Inheriting attributes from a model

2009-04-01 Thread Rajesh D
goproject.com/en/dev/topics/serialization/ -Rajesh D --~--~-~--~~~---~--~~ 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 f

Re: receiving emails

2009-04-03 Thread Rajesh D
Use Python's built-in support for the IMAP protocol: http://docs.python.org/library/imaplib.html You will also need to configure your mail server to receive incoming emails. -Rajesh D --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Problem with syncr and picasa - not displaying large images, mostly

2009-04-03 Thread Rajesh D
sites (probably to prevent bandwidth abuse). If you control the account at ggpht.com, see if there's a setting that allows linking of photos from external sites/blogs, etc. -Rajesh D --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: how to define this model

2009-06-12 Thread Rajesh D
7;t have foreign keys to tables that don't exist in the database. Abstract models are meant to be extended from their classes (i.e. class A (Fields)) Given your Fields abstract class above, here's one way to define A and B: class A(Fields): pass class B(Fields):

Re: Modifying Django's User Model

2009-06-12 Thread Rajesh D
ere's a starting point: http://www.djangosnippets.org/snippets/74/ -Rajesh D --~--~-~--~~~---~--~~ 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 T

Re: Wired integers displayed instead of Friends List in facebook connect

2009-06-12 Thread Rajesh D
On Jun 12, 12:51 am, gganesh wrote: > hi, > My app connects to Facebook and as user logins in with facebook > connect ,i intent to display users friends list .I the process of > doing so i have written a code as pasted below > > script> > >