Obtaining schema info from models

2008-07-21 Thread s
-export, with better insight. Thanks IA, /S PS. Yup, I have a padded spot handy for the head-meeting-wall d'oh moment. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-06-30 Thread s
Great On Jun 30, 2012 6:10 PM, "Cal Leeming [Simplicity Media Ltd]" < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi all, > > As some of you know, I did a live webcast last year (July 2011) on our LLG > project, which explained how we overcome some of the problems associated > with large data p

Re: question(s) about django-registration, default user profiles and django-profiles

2008-11-11 Thread Alex S.
Thanks! regards Alex On 11 Nov., 16:16, Steve Holden <[EMAIL PROTECTED]> wrote: > Alex S. wrote: > > hi there, > > > i want to use django-profiles to save some additional data for each > > user. so i created the needed profile model and set it in my settings >

question(s) about django-registration, default user profiles and django-profiles

2008-11-11 Thread Alex S.
hi there, i want to use django-profiles to save some additional data for each user. so i created the needed profile model and set it in my settings file. after some looking over the standard user model i found fields for first- and lastname. i need that data in my profiles and really would not li

Re: user-registration

2008-11-12 Thread Alex S.
cumentation for the django-registration application written by James Bennett at it's website http://www.bitbucket.org/ubernostrum/django-registration/wiki/Home. Alex S. On 12 Nov., 11:33, Maximus007 <[EMAIL PROTECTED]> wrote: > Hi guys, > I am not able to change  any of

Re: General question: Django-Profiles, auth.User and "merging" both data

2008-11-12 Thread Alex S.
Thanks for your answers! @ urukay: So you would use two profile forms (for the two models - so I could use ModelForm) when you have one view that calls a template displaying both? There is no way known to me to pass two form classes to James Bennett's django-profiles. So you would just copy his c

General question: Django-Profiles, auth.User and "merging" both data

2008-11-12 Thread Alex S.
or the User profile and one for the custom additional profile and after that one template that display both forms). That point made it's way into my dreams last night so I really have to solve it to feel better :-). If there is any needed information missing to answer that please just ask.

Re: General question: Django-Profiles, auth.User and "merging" both data

2008-11-12 Thread Alex S.
Hi urukay, I get your point with "to many fields in one template are not user- friendly" and agree totally. I will split up my data for users in a profile and a settings template where profile should contain: - firstname - lastname - email - birthdate - gender and settings should contain all the

Re: General question: Django-Profiles, auth.User and "merging" both data

2008-11-12 Thread Alex S.
After the next night of coding, reading through documentation and searching through the userlist and google I'm now at the following point: I'm using two forms, one for the auth.User data (model=User) and one for the additional profile data (model=CustomProfile). Both are extending ModelForm and I

Re: General question: Django-Profiles, auth.User and "merging" both data

2008-11-13 Thread Alex S.
Very good hint, urukay! I was a bit scared to use forms.Form because I didn't know how to do it. But it was straight forward and works like a charm! I'm getting my data saved working with two differend models. Just awesome :-). One last thing there (and after that I will clean up my code and write

Re: General question: Django-Profiles, auth.User and "merging" both data

2008-11-13 Thread Alex S.
I don't know if this is the best way to pre-populate a form, but I changed my view so it takes now a data dictionnary. It works :-) data = { 'first_name':user_obj.first_name, 'last_name':user_obj.last_name, 'gender':profile_obj.gender, 'birthdate':p

Re: Best IDE for Django and python?

2008-11-25 Thread Ramdas S
Agreed! I see the same kind of arrogance in some of the posts and even more these days on IRC. I completely agree that some of us do ask questions, and sometimes without properly checking the available docs, archives of discussion and other known sources.It gets irritating as you see teh same que

Re: Multiple sites - same code, different templates

2008-12-12 Thread Ramdas S
some reason. I've set > MaxRequestsPerChild to 1. > > > ... >SetEnv MAP_SITE_VERSION v1 > ... > > > Is there another way? I could pick up the version in the view from the > URL however this would require significant changes to the code. > > Perhaps there'

Re: Custom ACL

2008-12-14 Thread Ramdas S
uses, etc.). > > I'd also like to attach it to the user, so that I could lookup in a > way something like User.acl.has_permission(post_id, "can_edit). How > can I attach my ACL to the User model "dynamically", without actually > touching Django

ModelForms customization conundrum

2008-12-16 Thread sagi s
Maybe I'm missing something here but I've been struggling with some basic forms customization issues. I'm using ver. 1.0 I have created a simple model (Metric) and a form to go with it, deriving from django.forms.ModelForm with the model set it the Meta as per the examples. Out-of-the-box the f

Re: ModelForms customization conundrum

2008-12-17 Thread sagi s
t is just for illustration of how I would hope to access the value) Cheers, Sagi On Dec 17, 3:40 pm, sagi s wrote: > On Dec 16, 4:49 pm, "James Bennett" wrote: > > > On Tue, Dec 16, 2008 at 7:19 AM, sagi s wrote: > > > So I'm looking at the data availab

Re: ModelForms customization conundrum

2008-12-17 Thread sagi s
On Dec 16, 4:49 pm, "James Bennett" wrote: > On Tue, Dec 16, 2008 at 7:19 AM, sagi s wrote: > > So I'm looking at the data available in the template to try to get my > > hands dirty and restore all this manually but can't find how all this > > magic

Using the test client to verify form fields content

2008-12-17 Thread sagi s
I'd like to use the test client to verify that when there's an error in a form field, the input field in the response is populated with the original input. So I'd like to do something like: iteration = 'bad data' response = self.client.post('/metrics/add/', { 'iteration' : iterat

doc/user manual management

2008-12-22 Thread Ramdas S
dates code base. We would like the data/docs to be in the database Thanks -- Ramdas S +91 9342 583 065 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Customizing ModelForm fields appearance

2008-12-23 Thread sagi s
I really like the concept of generating a form from a model using ModelForm but would like to customize the apprearance slightly (e.g. size of the TextInput etc.). Any suggestion as to how to do this? I looked at the forms module code but got lost in the maze of the meta programming... Thanks

Re: I would like some feedback about address model snippet...

2008-12-24 Thread Ramdas S
ress system > background. > > Thanks for your feedback. > > Regards, > Stephane > > > -- Ramdas S +91 9342 583 065 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How do I get django to display the results of html tags?

2008-12-29 Thread Ramdas S
ith the tags (name em>). I am expecting the page to read the em tags and convert the > name to italics, not display the tags with the unitalisized name. How > do I get django pages to display the results of html tags? > > Thanks, > > An

Re: How do I get django to display the results of html tags?

2008-12-29 Thread Ramdas S
t; {{ publication| > escape }} > > How do I create the syntax for {{ tag|szafe }} ? > > I'm just learning how to create the html templates with Django, so > please be patient. > > Thanks, > > Ana > > On Dec 29, 11:07 am, "Ramdas S" wrote: > &g

Re: Sending id to new template - beginners confusion

2008-12-30 Thread Ramdas S
/dpaste.com/103798/ > > Thank you, > > Anna > > > -- Ramdas S +91 9342 583 065 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Sending id to new template - beginners confusion

2008-12-30 Thread Ramdas S
lates. I'm having a very hard time finding practical examples of > this stage of Django. The admin and database piece was very well > documented and I had that part up and running in a few days. > > Thanks, > > Ana > > On Dec 30, 10:27 am, "Ramdas S" wrote: >

Extra attributes in model fields

2008-12-31 Thread sagi s
I'd like to store extra attributes in the model fields so I can control the subsequent field-specific behavior from there. Let's say I have a model that stores metrics I then need to chart. In the view, I prefer not to have some logic that says: metrics = Metric.object.all() create_chart([metri

StringList Field Type

2009-01-05 Thread Tiago S.
Hi, I'm porting a app from GAE, which uses the StringList[1] property to store choices(simple strings) in the Poll model. I've read the django tutorial and there they make use of two models with a relationship between Choices and Polls. With my app, I don't see the need of an extra model, as a s

Re: Access Control Lists implementation for Django?

2009-01-05 Thread Ramdas S
mited for the app we are > working on. > Actually, a per object access control is needed. > > Thank you in advance for any suggestions. > > -- > Mir Nazim > Cell: +91 9469071855 > Blog: http://saunzal.org > Company:http://www.ikra

Re: StringList Field Type

2009-01-05 Thread Tiago S.
Hi Bruno, > > Then how do you store the number of votes per choice ? > My app is really a quiz with 5 answers per Question and multiples Question per Quiz. I used the Poll analogy to make easier to explain what I really need, as the django tutorial is about a Poll app. > > Overkill, nope. But ho

Re: StringList Field Type

2009-01-06 Thread Tiago S.
hich I guess is the case), just add a property: >   �...@property >    def answers(self): >        return [getattr(self, "answer%s" % i for i in xrange(1, 6)] > > NB : if you want read/write access, this is a bit more involved but > still do

Re: Extra attributes in model fields

2009-01-06 Thread sagi s
Any suggestion on how to decorate a model with extra attributes? On Jan 1, 9:39 am, sagi s wrote: > I'd like to store extra attributes in the model fields so I can > control the subsequent field-specific behavior from there. > > Let's say I have a model that stores metric

Re: Your IDE of choice

2009-01-06 Thread sagi s
Pydev works pretty well, including visual debugging of the test server + test suite On Jan 6, 1:48 pm, HB wrote: > Hey, > What is your favorite IDE for coding Django projects? > Any ideas about PyDev and ActiveState Komodo IDE? > Thanks. --~--~-~--~~~---~--~~ You

Customizing form fields display

2009-01-07 Thread sagi s
Can anyone suggest a way to customize model field display? For example if I have a model called Course with fields n_girls and n_students, if for a particular record n_girls = 4 and n_students = 10, I want to display for n_girls: "40% (4)" instead of just "4". Obviously I can do this in the tem

Re: first newbie question

2009-01-09 Thread Umapathy S
I usually do def __unicode__(self): return "%d" % self.question_number On Fri, Jan 9, 2009 at 2:42 PM, Eric Abrahamsen wrote: > > > On Jan 9, 2009, at 10:19 PM, _Sebastian_ wrote: > > > > > Hi all, > > > > I've been following the tutorial > http://docs.djangoproject.com/en/dev/intro/tut

Dreamhost now supports Django

2008-07-17 Thread Ramdas S
Hi, Just recd notice that Dreamhost is officially supporting Django. Anyone has tried it out lately. I've had extremely bad expeirence with Fast CGI a year back. Please give feedback -- Ramdas S +91 9342 583 065 My Personal Blog: http://ramdas.diqtec

Re: Dreamhost now supports Django

2008-07-17 Thread Ramdas S
Ok this is the mail I recd just now Hey! This is just a note to let you know that the suggestion: "Add support for Django (a python web-development framework)." from the category "New Features" has been marked as completed. So you now have another 4 credi

Re: Great work with newforms-admin

2008-07-19 Thread Ramdas S
: http://badrunner.net > Internet/LAN Gaming Centre: http://www.vertical-sync.com > > > > -- Ramdas S +91 9342 583 065 My Personal Blog: http://ramdas.diqtech.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Great work with newforms-admin

2008-07-19 Thread Ramdas S
e that might be helpful: > http://code.djangoproject.com/wiki/NewformsHOWTO > > --James > > On Sat, Jul 19, 2008 at 1:04 PM, Ramdas S <[EMAIL PROTECTED]> wrote: > >> Tom, >> >> Can you just share the wiki page link please. I need some place to start >>

Re: Table Row count: Limiting factor

2008-07-21 Thread Ramdas S
ows from it. Would that take > more time than extracting the same number(500) of rows from a small > table of say 1 Lakh rows? Each row field is indexed in both the cases. > Please correct me if I am wrong. > > > -- Ramdas S +91 9342 583 065 My Pers

Re: Version 1.0. documentation

2008-08-29 Thread Ramdas S
; there any documentation (as in a good book) coming out? > > Best regards, > Luka > > > > -- Ramdas S +91 9342 583 065 My Personal Blog: http://ramdas.diqtech.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: S3 tutorial for File Storage Refactor?

2008-09-01 Thread Ramdas S
David, I think this is still not fixed. I am getting the same errors R On Aug 25, 2:02 pm, David Larlet <[EMAIL PROTECTED]> wrote: > Le 20 août 08 à 17:56, shadfc a écrit : > > > > > > > With the code from the django-storages you referenced installed > > somewhere on PYTHONPATH, its as easy as

Graphs

2008-10-14 Thread Ramdas S
Sorry, I tried making them myself. NBut it looks horrible. I think you must make them as pie charts. Please ask the designer to do so Ramdas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: How to receive Emails in my django app

2009-01-16 Thread Ramdas S
t. ie " To receive email from > users in Django application" > > > > -- Ramdas S +91 9342 583 065 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: How to receive Emails in my django app

2009-01-18 Thread Tiago S.
Hi, Take a look on this opensource app. It's a helpdesk system and it receives email and process then afterward. http://code.google.com/p/jutda-helpdesk/ Regards, On Jan 16, 4:11 pm, zweb wrote: > i can send emails easily using django. > > I want to set up an email address, where users can se

Re: Recommendation on understanding CSS

2009-01-21 Thread Erik S.
On Jan 21, 3:52 am, Gath wrote: > Guys, > > Its seems the best way to do templates in Django is via plain html and > css, but am having a problem in understanding css easily, can someone > recommend some nice material/site on css i can read, i mean step by > step till complex stuff. > > Paul As

Re: Facebook-like functionality for an Intranet

2009-01-22 Thread Ramdas S
ral account & profile based applications? Any general advice or > experience is welcome. > > > -- Ramdas S +91 9342 583 065 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Seperate Email Server - Django

2009-01-27 Thread Ramdas S
; servers. I am totally a newbie in the smtp arena. Can I achieve the > email communication between the users without "mailing server" > configurations? > Can this be achievable? > > > -- Ramdas S +91 9342 583 065 --~--~-~--~~~---~--~~

How to clear form from wrong data

2009-01-30 Thread Konstantin S
Hello! I believe this is a VERY basic question, that already covered somewhere in the excellent django docs, but I couldn't find an answer and therefor asking for some help. In my view I have this request handler: http://dpaste.com/114650/. The problem is that after wrong data input (i.e. no data

__icontains in case of non ascii symbols

2009-02-01 Thread Konstantin S
Hello again :) Am I right that __icontains relays on DB backend entirely to perform case insensitive search ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

commit=False and m2m relations in forms

2009-02-01 Thread Konstantin S
Hello! I couldn't add m2m relations in my form if I use delayed commit, i.e. form.save(commit = False) and form.save() later on. See code at http://dpaste.com/hold/115253/. Is there some common pattern to workaround such issues ? --~--~-~--~~~---~--~~ You received

Re: including non-editable fields in forms?

2009-02-09 Thread Ramdas S
y we'll eventually add support for > read-only items in the admin and we'll have to invent something like > that for those, I suspect. > > On the other hand, I've always just inserted it directly into the form > template when I've had this kind of situation. >

Re: including non-editable fields in forms?

2009-02-09 Thread Ramdas S
I am looking at a solution oustide django-admin. I am in using forms and classic views Ramdas On Tue, Feb 10, 2009 at 11:28 AM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Tue, 2009-02-10 at 11:05 +0530, Ramdas S wrote: > > I think in many practical case

m2m field and forms

2009-02-10 Thread Konstantin S
Hello I have a form created from forms.ModelForm and in my model one of the fields is m2m field. Now when form is displayed for that m2m filed I'd like to have something that looks like checkbox where user can select several alternatives. I know that I can use widgets here and there are some that

Re: m2m field and forms

2009-02-10 Thread Konstantin S
On Feb 10, 5:51 pm, Sergey Koval wrote: > On Tue, Feb 10, 2009 at 1:21 PM, Konstantin S wrote: > > > Hello > > > I have a form created from forms.ModelForm and in my model one of the > > fields is m2m field. Now when form is displayed for that m2m filed I'd >

load huge dataset through fixtures

2009-02-16 Thread Konstantin S
Hello! I am trying to load really huge dataset (contains millions of records) into database through fixtures and it seems that django loads entire data into memory before commiting it into db so python process dies out of memory. Am I right that the only possible solution in my case is not to use

open sourced Django apps from Washington Times

2009-02-20 Thread Ramdas S
Saw this link. Seems interesting http://opensource.washingtontimes.com/blog/post/coordt/2009/02/washington-times-releases-open-source-projects/ -- Ramdas S +91 9342 583 065 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

how to use django ORM in standalone script ?

2009-02-23 Thread Konstantin S
Hello! I need to postprocess some data in my models and the most natural way of doing this would be to run periodically standalone script. But on the other hand I want to use framework ORM just because it would much more handy than raw sql. What should I import to plug in django in standalone scr

Join unrelated models

2009-03-24 Thread Konstantin S
Hello! I have two unrelated models that have one common field. class Media(models.Model): title = models.CharField(max_length=500) ... class Link(models.Model): title = models.CharField(max_length=500) ... Now I want to select those objects from the Media model that do not exis

Re: Join unrelated models

2009-03-24 Thread Konstantin S
On Mar 24, 11:13 pm, Alex Gaynor wrote: > On Tue, Mar 24, 2009 at 4:05 PM, Konstantin S wrote: > > > Hello! > > > I have two unrelated models that have one common field. > > > class Media(models.Model): > >    title = models.CharField(max_length=500) >

Using custom form class for the django.contrib.auth password_change view

2009-07-04 Thread Alex S.
Hi folks, as the title says I want to use my own form class for the password change process supplied by django.contrib.auth. Do you know of any way to do this without rewriting the code of this view (and specifying another argument for the form class to be used)? There are time where I want to do

Re: Using custom form class for the django.contrib.auth password_change view

2009-07-05 Thread Alex S.
problems with this reading the source files. Alex On 4 Jul., 21:57, "Alex S." wrote: > Hi folks, > > as the title says I want to use my own form class for the password > change process supplied by django.contrib.auth. Do you know of any way > to do this without rewriting the c

Django Server performance

2009-07-07 Thread Ramdas S
ences. Thanks -- Ramdas S --~--~-~--~~~---~--~~ 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 t

home page caching

2009-07-13 Thread Ramdas S
I have a web site where around 15 SQL semi complex queries run on the home page. Traffic is increasing and the page loads are getting slower. What is the best way to cache just the home page. I have already done standard memcached on the server. Please suggest the best caching options, where we ca

Re: home page caching

2009-07-13 Thread Ramdas S
; > Has you homepage user related data? In another portal I have a login > widget that shows a login form if the user isn't authenticated or a > grettings message with user information if it is logged in. Once I > made the homepage static, to have the user dependant widget, I call

Re: home page caching

2009-07-14 Thread Ramdas S
rough urllib and write it to a > static file, then I served the file through nginx. Anyway, I will > create a snippet for this ;) > > Best regards, > > -- > Michel Sabchuk > http://turbosys.com.br/ > > > Aww, that's a cool idea -- Ramdas S +91 9342 583 065

Hi people

2009-07-22 Thread sudharsan s
Hi i am new to django . i have interest towrds programing..so i need some help how to start with django i went through the official documentation of django and i also installed it.. after that i don know how to proceed --~--~-~--~~~---~--~~ You received this messa

Django 1.1 returns 500 instead of 404 in non-debug mode

2009-07-30 Thread prabhu S
Hi All, I am not noticing a weird issue in django 1.1. When DEBUG is true in settings and if I try a non-existent url, django shows me a friendly 404 page. Now I create 404.html and 500.html and place this in templates directory. Then If I turn off debug and try a non-existent url, I expect to se

Re: Long Poll in Django

2009-07-30 Thread prabhu S
long poll, push ajax, comet wow too many names for this!!! It will be interesting to study http://code.google.com/p/pygowave-server/ and find out how they implement this. Regards, Prabhu On Jul 30, 10:52 am, aleph wrote: > Hi! > > Is it possible to use Django with longpoll technique? What I mea

Re: Django 1.1 returns 500 instead of 404 in non-debug mode

2009-07-30 Thread prabhu S
uld appreciate if you can take a look at settings.py and let me know if something is obvious. Thanks & Regards, Prabhu On Jul 30, 2:25 pm, Karen Tracey wrote: > On Thu, Jul 30, 2009 at 8:40 AM, prabhu S wrote: > > > Hi All, > > > I am not noticing a weird issue in django 1.

Re: Django 1.1 returns 500 instead of 404 in non-debug mode

2009-07-30 Thread prabhu S
ail.com > > "I [may] disapprove of what you say, but I will defend to the death your > right to say it." -- Voltaire > > > > > > prabhu S wrote: > > Hi Karen, > > > Thanks for replying. I have put my 404.html in the same place as that > >

Thoughts on many-to-many relationship

2009-07-31 Thread prabhu S
Hi All, When I try to create a Group (django.contrib.auth.models.Group) dynamically, I get the below error. 'Group' instance needs to have a primary key value before a many-to- many relationship can be used. This is because I am trying to add permissions to the group object and trying to save e

Re: Django newbie deployment question

2009-08-01 Thread prabhu S
roblem description The app runs fine using django internal server > however when I use apache + mod_python I get the below error > > File "/usr/local/lib/python2.6/dist-packages/django/conf/init.py", > line 75, in init raise ImportError, "Could not import setti

Re: modelform validation errors

2009-08-01 Thread prabhu S
The method create_profile returns profile after saving. But this object will not contain primary keys etc generated in the db. To work around this common issue with django profile.save() # Get the data again from db. profile = Profile.objects.get(user=username) return profile Let me know if this

Re: Log in problem

2009-08-01 Thread prabhu S
I think this should fix. Additionally if you are using render_to_response for some reason, it passes Context instead of RequestContext. To solve this do render_to_response('view', {}, context_instance=RequestContext(request)) On Aug 1, 9:10 pm, OIM wrote: > You should use: > > {% block user_inf

Re: Python Conditional help

2009-08-01 Thread prabhu S
change student_id_validate to student_id_check Invalid variable dude. On Aug 2, 12:46 am, cprsystems wrote: > I'm trying to redirect users of an html page to another page depending > on the user id entered. I'm using if else statements and declaring ids > within views.py named htmlp2. I keep ge

Re: Python Conditional help

2009-08-01 Thread prabhu S
Also declare dan_id and stu_id as string. Unless request.GET can magically return you number, which I am not sure. Looks we are doing compilers job here :) On Aug 2, 1:17 am, Alex Gaynor wrote: > On Sat, Aug 1, 2009 at 6:59 PM, prabhu S wrote: > > > change student_id

Re: cab snippet add gives error

2009-08-03 Thread prabhu S
Appears like a data type mismatch. Are you entering some string value in a integer field or something of that sort? On Aug 3, 12:45 pm, andreas schmid wrote: > hi, > > im trying to build the cab code sharing app with the practical django > projects book, at the moment i have a problem adding sni

Re: Receiving email, similar to Rails

2009-08-03 Thread prabhu S
Not sure whether this is possible out of the box yet. But here is some starter. http://code.google.com/p/jutda-helpdesk/source/browse/trunk/management/commands/get_email.py jutda-helpdesk project as a whole should be a good reference. On Aug 3, 4:14 pm, Brandon Taylor wrote: > Hi everyone, > >

Re: how to, complex filters in admin

2009-08-03 Thread prabhu S
Right. If you are looking for more complex queries take a look at Q http://docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with-q-objects On Aug 3, 6:40 pm, selcukcihan wrote: > I need to get the filtering criteria from the request, is that right? > > On Aug 3, 2:24 pm, Peter B

Re: Django on Hostmonster shared hosting

2009-08-03 Thread prabhu S
; > >   File "/home2/timatlee/djtrunk/django/core/handlers/wsgi.py", line > > > 230, in __call__ > > >     self.load_middleware() > > >   File "/home2/timatlee/djtrunk/django/core/handlers/base.py", line > > > 33, in load_middle

Re: Using email instead of username in extended "User" model?

2009-08-03 Thread prabhu S
Going a step backward, why cant you make username same as email. Have a custom login_required decorator that uses email and password to authenticate, override registeration pages and not show username field? It seems to work for me. On Aug 2, 4:38 pm, Dana wrote: > Hello All, > > I am looking t

Re: Recursive request and page layout

2009-08-09 Thread prabhu S
It will be awesome if you can make and open source such a tag. Shouldn't be hard since templates can be evaluated independent of http. If you want something simpler, use iframe and point it to the correct url. Regards, Prabhu On Aug 8, 12:11 pm, SardarNL wrote: > I've checked the custom tags an

Re: weirdist situation I have faced in 4 years of (ab)using django

2009-08-09 Thread prabhu S
Hi KG, Nice to meet you! How are you confirming if the data is from Meeting? Are you looking at the final rendered html? What does a print after the statement p = Event.objects.get(pk=id) tell you? Also check if you have just one view for the particular url mapping. Regards, Prabhu On Aug 9,

Re: Standalone script with django's ORM and multiprocessing

2009-08-11 Thread prabhu S
Solution appears like a hack to me. Why do you close the connection in every process? Can you not just close once in parent? Execute commits alone in each process. On Aug 11, 10:50 am, Spajderix wrote: > Malcolm Tredinnick pisze: > > > > > On Tue, 2009-08-11 at 11:06 +0200, Spajderix wrote: > >

Re: Permissions issue with image uploads

2009-08-23 Thread Ramdas S
o confirm my idea I chmod'd the permissions to > 777 - and the whole thing suddenly works perfectly, but that's > obviously not a permanent solution. > > I tried chown'ing the file over to www-data which is my Apache > process, but that didn't work either. Who

Custom Product/Custom TextFields not showing up in product order

2009-08-30 Thread Michael S
Hi, I am fairly new with Satchmo and try to make a product that can be personalized with a name. So I created a product in the admin gui, created a custom product and custom textfield as well. And enabled custom product in site settings. Now the field shows up in the product view and also when v

request.user in forms.py

2009-03-26 Thread Konstantin S
Hello! I know this a very stupid question but nevertheless how can I get request.user object in forms.py file ? I am trying to do something like: class ItemGetForm(forms.Form): box = forms.ModelMultipleChoiceField( queryset=Box.objects.filter(owner=request.user), widget=form

Curious Error

2009-03-28 Thread Ramdas S
Can someone advise? I have the same code working in several web sites. But since moving to 10177, I am getting this error. It sometimes works in Dev server, in Apache its been a problem http://dpaste.com/20529/ -- Ramdas S +91 9342 583 065

pagination

2009-03-30 Thread Konstantin S
Hello! I noticed that there are two paginations 'engines' available for django. The first one is in django distribution itself (http://docs.djangoproject.com/en/1.0/topics/pagination/), and the second one I found at code.google.com. (Url is http://code.google.com/p/django-pagination/). Which one

customization of the form

2009-04-21 Thread Konstantin S
Hello! In my model I have dynamically generated checkbox fields that look like this: boxes = forms.ModelMultipleChoiceField(queryset=Box.objects.all(), widget=forms.CheckboxSelectMultiple) The problem is that in the web-interface I've got a long flat list of checkboxes and it doesn't look very

Re: customization of the form

2009-04-22 Thread Konstantin S
On Apr 22, 9:29 am, zayatzz wrote: > I wish i could see the html output of your program. But you have to > use either divs or ul&li elemnts to wrap that list and make it look > nice in template. > > But i think the problem is that your widget output is just a list of > checkboxes, that you cant i

Re: customization of the form

2009-04-22 Thread Konstantin S
On Apr 22, 11:33 am, Konstantin S wrote: > I can't iterate through individual and mark them in some way or > split this single into two lists. Just to be clear: I can't do it because it's generated as a single not iterable entity. --~--~-~--~~

Re: customization of the form

2009-04-22 Thread Konstantin S
On Apr 22, 1:51 pm, Tom Evans wrote: > On Tue, 2009-04-21 at 21:20 +0400, Konstantin S wrote: > > Hello! > > > In my model I have dynamically generated checkbox fields that look like > > this: > > > boxes = forms.ModelMultipleChoiceField(query

Re: customization of the form

2009-04-22 Thread Konstantin S
On Apr 22, 3:31 pm, zayatzz wrote: > This css should do it: > > ul {list-style-image:none;list-style-position:outside;list-style- > type:none; float:left} > ul li {width:50%;display:block;float:left} > > What this does, is that it gives every list element 50% of available > width (if you want 3 c

Offtopic: MySQL or PostgreSQL for a limited VPS ?

2009-04-24 Thread Konstantin S
Hello! I am planning to deploy django based site on a limited VPS and want to know which database is more suitable for this ? If I've had a 'normal' hardware I'd vote for the PostgreSQL but maybe in case of limited resources MySQL would be a better choice. What do you think ? --~--~-~--~

Re: Javascript Framework``

2009-05-13 Thread Ramdas S
t; 1. Dojo with dijit themes > 2. Scriptaculous > 3... any other... > > Thanks in Advance > ~Guri > > > > -- Ramdas S +91 9342 583 065 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

setting.py and deployment

2009-05-15 Thread Konstantin S
Hello First of all sorry if this question was asked and answered many time before. I want to know what are the best practices you use for deployment django sites in production. I mean how do you separate setting.py into development and production part and how do use choose which one to use witho

Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Konstantin S
Hello! I have a very strange problem and really don't know where to start in hunting it down. My app uses django-registration, all works fine but if I been logged in restart django dev. server I immediately get TemplateSyntaxError: Caught an exception while rendering: Reverse for 'myapp.add_medi

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Konstantin S
On 20 май, 14:02, Konstantin S wrote: > Hello! > > I have a very strange problem and really don't know where to start in > hunting it down. My app uses django-registration, all works fine but > if I been logged in restart django dev. server I immediately get > TemplateSyn

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Konstantin S
On 20 май, 17:41, Karen Tracey wrote: > There's got to be some difference between your server > environment and the shell environment you are using that is causing that. > All works fine until I restart django dev. http server. If at that moment I was logged in into my site then next hit after r

  1   2   3   4   5   6   7   8   9   10   >