Re: twitter timeline

2012-03-22 Thread Amit
Hi Randa, I have used tweepy. Its easy to use. doc link: http://packages.python.org/tweepy/html/ On Mar 21, 7:00 pm, Randa Hisham wrote: > hey > iam going to make an app that read the timeline of a user from twitter what > django package do you recommend? > > -- > Randa Hesham > Software Develop

Re: Tweepy Status Error

2012-03-26 Thread Amit
In the example given in doc of tweepy, the process_status is a user defined method. You have to define this method. Its just a reference given. Define a method process_status and do whatever you want to do with status. On Mar 26, 3:57 am, coded kid wrote: > Hi guys, I been trying to iterate ove

Re: Auth app in separate database

2012-03-28 Thread Amit
While running syncdb command django uses default database to create tables. You can do one thing, first create default database using syncdb then copy auth related tables to another database. Then define router for auth. You can get more ref form django documentatiion. Regards, Amit On Mar 29, 4

Re: DateTimeField(auto_now_add=True) and admin page

2011-12-10 Thread Amit
Hi, You can display entry_date on admin by using readonly attribute of admin. Set readonly = (entry_date,) this will do your task, but You cannot modify this on admin. Thanks Amit On Dec 9, 7:46 pm, DC wrote: > Hi, > > I have the following lines in my model: >  

Re: how to render data coming from server to template using ajax!

2013-02-10 Thread Amit
Hi, Javascript does not understand django template syntax. In your case you can return a template rendered with django, and replace the html. Thannks, On Sunday, February 10, 2013 3:12:47 PM UTC+5:30, doniyor wrote: > > hey guys, i am stuck in this problem. i posted the problem on > stackoverf

Use development server database with production server

2011-02-05 Thread Amit
production server, since I don’t have avail corresponding database in PostGreSQL. Amit. -- 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 g

Django URL Detail

2011-02-07 Thread Amit
/questions/4921331/django-url-detail Please get me rid of this. Thanks in advance! Amit. -- 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 g

autodiscover() fails too silently...

2008-07-21 Thread Amit Ramon
), it will not be loaded and will not be seen in the admin interface, without any significant notice. To me this seems like an undesired side-effect, perhaps even a bug. Any ideas? --- Amit --~--~-~--~~~---~--~~ You received this message because you are subscrib

mobile cookie related issue, is it a bug in django?

2008-09-19 Thread Amit Upadhyay
ing sessionid. Has anyone else faced this or similar issue? If not can someone tell me how do I go about debugging this? Am using pre1.0 trunk r3331. - -- Amit Upadhyay Vakow! www.vakow.com +91-9820-295-512 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux)

Re: Command Prompt

2008-09-25 Thread Amit Ramon
not on windows, so I don't know the exact location.) Hope this helps, Amit --~--~-~--~~~---~--~~ 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@googl

ANN: django google contacts importer

2009-03-13 Thread Amit Upadhyay
Hi, I just wrote a helper app to import contacts from Google. http://github.com/amitu/dgci/tree/master Anybody willing to help me write a similar dyci for Yahoo!? :-) -- Amit Upadhyay Vakow! www.vakow.com +91-9820-295-512 --~--~-~--~~~---~--~~ You received

ManyToOne from User

2009-03-20 Thread Amit Prahesh
since I'm using the one provided by Django. Somy question is: how do I accomplish that? I thought of using a Group (the Django model) and then having a one to one relationship in my container; but I think there's a much simpler and el

hi

2009-03-21 Thread Amit Upadhyay
Hey, Checkout www.RemindMeSam.com . -- Amit Upadhyay Via - www.remindmesam.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Help regarding how to deliver a particular project

2009-06-26 Thread Amit Sethi
I hope i am not breaking any code here and i don't get mails saying its not the place to discuss this . I am trying to create a small xml-rpc like service which uses some other multiple REST/JSON based web services . I am using django because I like simple organized architecture it gives for deve

Re: How to get this value

2009-07-13 Thread Amit Sethi
I am not sure what you are trying to do. And the code seems almost unreadable . You could try posting the code to : http://pastebin.com/ Also what might be helpful: What is the problem statement what is this code trying to solve ? What value you want and where ? And what error does django giv

Re: Hi people

2009-07-22 Thread Amit Sethi
Take up a small project like the tutorial... On Wed, Jul 22, 2009 at 1:00 PM, Vasil Vangelovski wrote: > > A good place to start is the tutorial: > > http://docs.djangoproject.com/en/dev/intro/tutorial01/ > > If you are new to python you can also check dive into python: > > http://diveintopython.

Re: Following part 2 of the tutorial, I get the following error when trying to view /admin/:

2009-07-24 Thread Amit Sethi
On Fri, Jul 24, 2009 at 6:04 PM, ashish wrote: Well as your error message says , Template does not exist my first guess would be that you did not Activate the admin site .. if that is not so , you should have a look at the section , Customize the look and feel of admin ... it is talking about the

serving static files

2009-04-13 Thread amit sethi
ws.static.serve', {'document_root': '/home/amit/analytics/media', 'show_indexes': True }), now i get the error serve() takes at least 2 non-keyword arguments (1 given) i am new to web development please help -- A-M-I-T S|S --~--~-~--~~-

Re: serving static files

2009-04-13 Thread amit sethi
hi thanks , well got the point about url-conf the url pattern you have given does not raise the error but i have still not been able to get my css working my urls.py has an entry (r'^sitemedia/?P.*$', 'django.views.static.serve', {'document_root': &

Searching disparate databases

2009-06-08 Thread Amit Sethi
Hi all , I am trying to develop a web app that searches products on some local stores and give the price.Now I can obviously have a format for stores to feed my database but rather than that .What I want is that the local stores be able to dump their database/feeds on my Server . It woul

first project taking it too production server

2009-11-16 Thread Amit Sethi
Hi , I just developed my first small app using django , I wish to deploy it . I have a apache server with drupal running on it . Can anybody guide me about the procedure i should use to deploy the project without disturbing the drupal installation in any way... -- A-M-I-T S|S -- You received th

Re: first project taking it too production server

2009-11-16 Thread Amit Sethi
yes I do have ssh access and the server does have python on it. On Tue, Nov 17, 2009 at 7:02 AM, Kenneth Gonsalves wrote: > On Monday 16 Nov 2009 7:41:47 pm Amit Sethi wrote: >> Hi , I just developed my first small app using django , I wish to >> deploy it . I have a apache ser

Re: first project taking it too production server

2009-11-17 Thread Amit Sethi
Hi , I was able to run it for the time being using mod_proxy but is this is good way . What are the possible problems because of it. -- 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.c

how to serve multiple files using mod_wsgi

2009-11-19 Thread Amit Sethi
Hi , I have been trying to make a project work with mod_wsgi under apache . The project is not exactly in django . It has a development server of its own for adapting I was using this as a reference .The mod_wsgi manual says that you have to send the response in following manner def application(en

how to import a library in only in django project

2009-11-25 Thread Amit Sethi
Hi , I want to use a library in a django project but I don't want to put it in python path. Where am I supposed to put the sys.append so that it will available to the whole django project. -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Groups "Django users"

modwsgi on suburl

2009-11-25 Thread Amit Sethi
Hi , can somebody tell me how i should configure mod_wsgi on a suburl I want to set a django project on domain.com/test/ so my urls.py at present looks like : urlpatterns = patterns('', (r'^(.*)', 'sttp.views.serve'),) and the wgi scrip alias is WSGIScr

Help with apache mod rewrite engine

2009-12-08 Thread Amit Sethi
Hi all , I need some help understanding the mod rewrite module of apache . What I wished to do want that i had a comments folder by the name of /comments/ . Now i run a django project on /sees and i want all the call to /comments/ be redirected to /sees/comments and than be handled by the wsgi file

Model super class with overriding save method

2010-05-30 Thread Amit Prahesh
f collisions on clusters, is there a better way to accomplish this? Ideas? Thanks a lot, Amit. -- 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 gro

Using django only for request handling work

2009-12-27 Thread Amit Sethi
Hi ,I have a project that is in general written to work with wsgi server except i wish to alter some of the environ variables provided to the app. So I have a function: def __call__(self, environ, start_response): In this I want to change some part of environ So my application looks someth

Possibility of recursive rendering

2010-01-10 Thread Amit Sethi
Hi I wish to know if it is possible to use recursive rendering ? . What I mean by that is that their is a template which renders no of comments on a paragraph . SInce their are many paragraphs what i wish to send is a list of render_to_response calls for each paragraph. i.e send response messages

Text Search using Python

2010-01-14 Thread Amit Sethi
Hi , I have a project with a few static html pages , I wish to search these static html using a django search app . Most of the tutorials I saw are focused on searching django models but none I could see concentrates on indexing static html pages . Can some one guide be to a library /tutorial etc

field specific error message

2010-03-12 Thread Amit Sethi
How do you do field specific messages ... like for a Telephone Number , if all characters are not digit send message (no invalid ) . I have tried raising forms.ValidationError like specified here (http://www.djangosnippets.org/snippets/337/) I have also tried changing forms.Form._errors ... it i

image bundle for django

2007-06-11 Thread Amit Upadhyay
/. Check this for a little more details: http://amitu.com/blog/2007/june/django-image-bundle -- Amit Upadhyay Vakow! www.vakow.com +91-9820-295-512 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: image bundle for django

2007-06-13 Thread Amit Upadhyay
ndle to determine > offsets in the final. Server side resizing was compulsory as otherwise the background technique would not work. AFAIK. Browser will just show the part of image, and does not shrink the background to fit. I see you're using mx.Misc.OrderedMapping. Does that do anythi

Re: problems with a shared host setup

2007-06-14 Thread Amit Ramon
] = 'kennel.settings' WSGIServer(WSGIHandler()).run() # end of code All the best, Amit ביום חמישי 14 יוני 2007, 07:28, נכתב על ידי [EMAIL PROTECTED]: > > I've been trying to get django up and running on a shared account, and > i'm having troubles - I have done e

how to set language explicitly in multi-lingual site

2007-07-10 Thread Amit Ramon
ated. Unfortunately, I couldn't get this to work so far. It seems django has an algorithm for selecting the language, based on user's browser settings or cookies, and I cannot force it to use the language I want. I hope I managed to make myself clear, and thanks in advance for any id

Re: how to set language explicitly in multi-lingual site

2007-07-10 Thread Amit Ramon
Thanks, Malcolm. It works like a magic :) Just a small correction: it's utils, not util: django.utils.translation.activate() I think I'll now see how to I can write a middleware, so I won't have to call this in each and every view. All the best, Amit > > The problem I&#

Re: how to set language explicitly in multi-lingual site

2007-07-11 Thread Amit Ramon
ׁHi, As Malcolm pointed out, you'll have to use something like the third party multilingual framework for translating the database stuff. You can find it at http://code.google.com/p/django-multilingual/ Good luck, Amit ביום רביעי 11 יולי 2007, 12:06, נכתב על ידי Matt Davies: >

using middleware vs. context_processors: best practice?

2007-07-14 Thread Amit Ramon
there some caching? I'm not too familiar with what's going on behind the scenes, and I would appreciate if someone would shed some light on this issue. Sorry for the long story... Thanks, Amit --~--~-~--~~~---~--~~ You received this message because yo

reverse pagination

2007-07-22 Thread Amit Upadhyay
. http://code.djangoproject.com/ticket/4956 http://www.amitu.com/blog/2007/july/reverse-pagination/ Feedbacks appreciated! -- Amit Upadhyay http://www.amitu.com/blog/ +91-9820-295-512 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: reverse pagination

2007-07-23 Thread Amit Upadhyay
er of objects, you do not want to show the oldest post on the main page of your blog. What I am suggesting only changes the page numbering. -- Amit Upadhyay Vakow! www.vakow.com +91-9820-295-512 --~--~-~--~~~---~--~~ You received this message because you are subs

Re: extending user model, a different approach

2007-07-26 Thread Amit Upadhyay
On 7/26/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 7/25/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > > I realized a new way to extend user models, it is simpler than official > > get_profile approach of django[1] as there is only one model to work > wit

extending user model, a different approach

2007-07-25 Thread Amit Upadhyay
e.djangoproject.com/wiki/ExtendedUserModel 3. http://www.amitu.com/blog/2007/july/django-extending-user-model/ -- Amit Upadhyay http://www.amitu.com/blog/ +91-9820-295-512 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Initial value for a choices field in admin?

2007-08-21 Thread Amit Ramon
is to be able to define an initial value for this field, and have it already selected in the select list when I just enter the "add object" page. I've tried using the default keyword argument in various ways but to no avail. Googling also didn't help. I would appreciate

Re: Initial value for a choices field in admin?

2007-08-21 Thread Amit Ramon
Thanks Jake. It works like a charm. I thought I tried this before, so I obviously made some mistake. Thanks, Amit > > hi amit, > > Amit Ramon wrote: > > units = models.CharField(maxlength=2, choices=UNITS) > > > > When I try to create a new instance o

shared state between requests and FastCGI

2008-02-14 Thread Amit Ramon
ntained by python for the random number generator. This also raises some questions: again, to make this work well there need to be a single server process, the random number generator (or its state) need to be global. I hope this is not too long, and clear eno

Re: shared state between requests and FastCGI

2008-02-14 Thread Amit Ramon
math here. I'd happily read any comments. Thank for all the replies, Amit * Marty Alchin <[EMAIL PROTECTED]> [2008-02-14 11:48 -0500]: > > On Thu, Feb 14, 2008 at 11:31 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > > > Look at idea be

Re: how to make cron works

2008-02-14 Thread Amit Ramon
As Malcolm pointed before, the problem is most likely with the value of your PYTHONPATH environment variable. Since you're using a shell script, simply set this variable in this script itself, before invoking the python script. --- Amit * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [20

Re: Django on a shared host

2008-03-03 Thread Amit Ramon
I'm aware I'm a bit late :-), but here is a link to detailed instructions for setting up django on a shared host (site5 in this case): http://forums.site5.com/showthread.php?t=10236 --- Amit * Snoop1990 <[EMAIL PROTECTED]> [2008-02-27 08:07 -0800]: > > Hey, > I am n

MySql autocommit and Django

2008-03-06 Thread Amit Ramon
se I'll have to disable autocommit myself). I would appreciate if anyobe here could approve or disprove this behaviour, or give any explanation: does Django disable autocommit when the above code is executed? or does it always disable it? Thanks, Amit --~--~-~--~~

Re: Howto execute custom SQL from the command line

2008-03-26 Thread Amit Ramon
You can do that easily enough without django... one way is to do: mysql -u -p < file.sql the other is to go into mysql and there do: \. file.sql You can open a mysql shell with: manage.py dbshell --- Amit * Tourneur Henry-Nicolas <[EMAIL PROTECTED]> [2008-03-25 17:32 +0100]: &

Re: Howto execute custom SQL from the command line

2008-03-27 Thread Amit Ramon
* Tourneur Henry-Nicolas <[EMAIL PROTECTED]> [2008-03-27 08:27 +0100]: > > On Wednesday 26 March 2008 17:25:18 Amit Ramon wrote: > > You can do that easily enough without django... > > one way is to do: > > mysql -u -p < file.sql > > > &g

Re: distinct UPDATE / INSERT before save() without select to DB

2008-03-29 Thread Amit Ramon
w.djangoproject.com/documentation/db-api/#how-django-knows-to-update-vs-insert It seems that if the object's primary key is not set, it'll be an insert; if it is set, according to the docs, you'll have to chack against the database. --- Amit > > > --~--~-~--~---

Re: Multiple sites on shared host

2008-03-30 Thread Amit Ramon
different setting files. --- Amit * Brandon Taylor <[EMAIL PROTECTED]> [2008-03-30 13:56 -0700]: > > Hi everyone, > > I'm on shared hosting and can't modify any Apache settings. So, I'm > assuming I need to specify which settings file to use in .htaccess. >

Re: Transactions with custom sql

2008-04-07 Thread Amit Ramon
ind of a mysql shell, it is possible that the results of a transaction are not imediately seen. There was a thread here dealing with this about 3 weeks ago, you may look for "Django application does not see db changes made by external sources". As for the mysql behaviour, you can read

Re: Problem with static content + Apache / FastCGI

2008-04-08 Thread Amit Ramon
have to do is define the right locations for your static files, and then tell appache to handle them directly, i.e. not by your django application. You do this in the appache configuration file for your site, or in your site's .htaccess file. I just pointed in the general direction, ask a

UnicodeDecodeError in request.get_full_path()

2008-04-27 Thread Amit Ramon
a browser identified as: 'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)' Other that that, I'm completely in the dark. Could it be that a browser causes the server to use a different (than its default) encoding? Any othe

Re: Sort QuerySet

2008-04-28 Thread Amit Ramon
lect in extra has parameters (i.e. extra(select={...}, params=[...]), so be aware of that (you don't have to use params). If you can do it that way, it may be better than using a python list. The performance of doing it in the database might be better, and besides, you cannot always pass pytho

Re: UnicodeDecodeError in request.get_full_path()

2008-04-28 Thread Amit Ramon
ascii string rightfully (so the P.s. of my original post is stupid, too), so it screams on utf-8. It happens in all environments, depending on the browser. I fixed my code to convert the string using urllib.quote_plus and everything is working fine. Thanks, Amit * Amit Ramon <[EMAIL PROTEC

Re: sql_queries does not include all the sql statements

2008-04-29 Thread Amit Ramon
his > > Entry.objects.all()[0] > > and then the sql is in the sql_queries. why? > I didn't understand the problem completely, but the syntax of your first example is incorrect. You probably meant ...[0:1] - this is the syntax for slicing. If this do

Re: UnicodeDecodeError

2008-04-30 Thread Amit Ramon
why the LEFT function would return just one byte - I would expect it to be aware to the utf-8 encoding and return the complete utf-8 sequence (2 bytes in this case). But try to check in this direction. Hope this helps, Amit --~--~-~--~~~---~--~~ You received thi

Re: UnicodeDecodeError

2008-04-30 Thread Amit Ramon
* Szymon <[EMAIL PROTECTED]> [2008-04-30 07:34 -0700]: > > On 30 Kwi, 15:40, Amit Ramon <[EMAIL PROTECTED]> wrote: > > Hope this helps, > > Yup. I've replaced that extra function with simple {{ foo.bar.0 }} in > templates and now everything works, so t

IntegerField - SQL type changed?

2008-05-15 Thread Amit Ramon
eld, and now it generates int(11)? I looked at the list of incompatible changes but could not find a clue. Thanks, Amit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: IntegerField - SQL type changed?

2008-05-15 Thread Amit Ramon
* Marty Alchin <[EMAIL PROTECTED]> [2008-05-15 07:15 -0400]: > > On Thu, May 15, 2008 at 6:45 AM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Thu, May 15, 2008 at 5:34 AM, Amit Ramon <[EMAIL PROTECTED]> wrote: > >> Was there any change in django

Re: IntegerField - SQL type changed?

2008-05-15 Thread Amit Ramon
* Marty Alchin <[EMAIL PROTECTED]> [2008-05-15 10:45 -0400]: > > On Thu, May 15, 2008 at 10:25 AM, Amit Ramon <[EMAIL PROTECTED]> wrote: > > Now, if I subclass an existing field and I want to define the database type > > myself, how do I do that? Is there a place

Re: blankiing an ImageField

2008-06-01 Thread Amit Ramon
* Carl Karsten <[EMAIL PROTECTED]> [2008-05-25 17:25 -0500]: > > In the admin UI, is there any way to blank out a foo = model.ImageField(...) > ? > > Carl K foo = model.ImageFields(..., editable=False) Is that what

memchached issue on ubuntu

2008-06-24 Thread Amit Upadhyay
TED] mcm_server_connect_next_avail():2322 In [3]: cache.get("k") [EMAIL PROTECTED] mcm_server_connect_next_avail():2322 In [4]: Am using cmemcache library: http://leavingcorporate.com/2008/05/04/installing-cmemcache-on-ubuntu/ Anyone familiar with whats going on? TIA. -- Amit Upadhyay Vakow! www.va

Re: memchached issue on ubuntu

2008-06-24 Thread Amit Upadhyay
I do, I started it thus: > Start memcached: $ memcached -v Its running on a diff console on same machine [my laptop]. Any other thing I should double check? -- Amit Upadhyay Vakow! www.vakow.com +91-9820-295-512 --~--~-~--~~~---~--~~ You received this message

Re: memchached issue on ubuntu

2008-06-24 Thread Amit Upadhyay
On Tue, Jun 24, 2008 at 9:29 PM, Michael Wieher <[EMAIL PROTECTED]> wrote: > > now I would just run the same test you ran earlier, try to set data in > the cache, now that the cache itself exists The memcached server was already running. I tried the test again anyways, same re

Re: memchached issue on ubuntu

2008-06-25 Thread Amit Upadhyay
that when this string gets parsed in the cache > backend, it's probably getting nothing for an IP. This was it. Thanks a million. I need more coffee when working late in the night :-) -- Amit Upadhyay Vakow! www.vakow.com +91-9820-295-512 --~--~-~--~~~---~

Re: Multiple Profiles

2007-05-09 Thread Amit Upadhyay
On 5/8/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 5/8/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > > I would recommend you take a look at lost-theories.com source code. One > anti > > pattern that django docs seems to recommend is use > > django.con

Re: Multiple Profiles

2007-05-11 Thread Amit Upadhyay
fined? Agree with you. I was suggesting this solution as a part of multiple type of user scenario, where profile itself would be different. For us, we have endusers, and businesses, and we require different kind of profiles for both of them. .get_profile() does not handle this s

Re: Generic views: how to use them properly?

2007-06-02 Thread Amit Ramon
wn view. If you have questions about how to do it, just ask. Cheers, Amit ביום שישי 01 יוני 2007, 23:11, נכתב על ידי Sacher Khoudari: > > Hello! > > I'm new to Django, and are currently playing around a bit. I've > finished the tutorial, and have just started a small

gettext_noop usage?

2007-09-19 Thread Amit Ramon
tion of it for the novice user? What is the use case here? How a string is translated from a variable? When? Thanks in advance, Amit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: choices in template

2007-09-21 Thread Amit Ramon
Assuming your choices type is defined as: LANGUAGES = ( ('he', 'Hebrew'), ('en', 'English'), ) You have to pass it through the context, and then you can access the list as follows: {% for lang in LANGUAGES %} {{ lang.0 }} {{ lang.1 }} {

Re: Trying to get unicode data into database from XML file

2007-09-21 Thread Amit Ramon
What database is it? What are the database and database tables/columns locales? You should give some more details so we can help. As a general idea, check my questions above, and make suer the locale is unicode/utf-8. --- Amit ביום שישי 21 ספטמבר 2007, 19:07, נכתב על ידי drackett: > >

Re: media directory for testing

2007-11-11 Thread Amit Ramon
_NAME"] Cheers, Amit ביום ראשון 11 נובמבר 2007, 02:43, נכתב על ידי Malcolm Tredinnick: > > On Sat, 2007-11-10 at 16:52 -0500, Faheem Mitha wrote: > > > > Hi. > > > > I'm having the following problem while testing. I'm writing a unit test > >

Re: Erro on access svn repository

2006-05-05 Thread Amit Upadhyay
code from http://www.amitu.com/django_mr.tar.gz, updated few minutes back. [I update this file every 12 hours from latest svn for my personal use, feel free to use this link.] www.djangoprojects.com admins, can we have nightly svn builds please? -- Amit UpadhyayBlog: http://www.rootshel

Re: DSN useful for database settings?

2006-05-10 Thread Amit Upadhyay
e main advantage of using python for settings file is that we can do programmatic stuff in it, what could be better example than a settings.py example which demonstrates this. All I am saying is dont just throw out a decently done work.-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay

how to iterate over a subset of model.all

2006-05-14 Thread Amit Upadhyay
Lets say I have a Author and Article models, related via many to many. On the profile view of authors I want to show the articles they contributed to, but not all of them. The number is purely a decision of the designer, how does one do a limit/offset in template? -- Amit UpadhyayBlog: http

Re: how to iterate over a subset of model.all

2006-05-15 Thread Amit Upadhyay
On 5/14/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: On Sun, 2006-05-14 at 15:13 +0530, Amit Upadhyay wrote:> Lets say I have a Author and Article models, related via many to many.> On the profile view of authors I want to show the articles they> contributed to, but not a

Re: Managing static media urls

2006-01-14 Thread Amit Upadhyay
y looking apache default comes up. I can change apache's 404 page to someother, but it seems it has to be static html file, not explored it much, but then its not really too bad. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: Bulk delete?

2006-01-14 Thread Amit Upadhyay
ached, for each field put a checkbox before that filed, and just try to imitate what iTunes does there. [May be put a little bit of ajax and have a togglable div displaying the current vaules of objects selected]. Please tell me if I am not being clear enough. -- Amit UpadhyayBlog: http://www.rootshe

Re: Bulk delete?

2006-01-14 Thread Amit Upadhyay
On 1/14/06, Amit Upadhyay <[EMAIL PROTECTED]> wrote: As of having check boxes to select multiple item in admin views, I would much rather prefer "edit selected", where you can bulk edit items, delete being just one of the operations. Its like iTunes edit multiple song screenshot at

Re: Do I use @login_required to extend authentication?

2006-01-17 Thread Amit Upadhyay
lso read: http://nerdierthanthou.nfshost.com/2006/01/django-tips.html-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: help with keeping a counter in a template

2006-01-20 Thread Amit Upadhyay
On 1/21/06, coowwa <[EMAIL PROTECTED]> wrote: datelists = dailytodos.get_list(order_by=["-date"])My question: if I want to limit the number of todo items that displayson this page to say 20You are looking for http://www.djangoproject.com/documentation/db_api/#limiting-sele

Re: How do I get POST variables in my template

2006-01-26 Thread Amit Upadhyay
use a  "assert False" somewhere in the view and django will produce an error page containing all post and get variables along with other info. I would say this is django way of inspecting headers and post/get data. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: I need some directions to auth system and stuff

2006-01-26 Thread Amit Upadhyay
django/views/auth/login.py and edit the following line:LOGIN_URL = '/accounts/login/'to make it read:LOGIN_URL = '/my_login_page/' where my_login_page is the page where you want you login page to be, if your login form is in all the pages, you may still have a page devoted to login, explaining why one should login to your system. HTH, PS: Should be wikified I guess.-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: FileField :: mx file size

2006-01-29 Thread Amit Upadhyay
arrasing incidents in the past; the 170 Mbyte powerpoint, the CD!! that was uploaded, etc. etc.)http://api.rubyonrails.com/classes/ActionController/UploadProgress.html -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: FileField :: mx file size

2006-01-30 Thread Amit Upadhyay
On 1/30/06, Maniac <[EMAIL PROTECTED]> wrote: Amit Upadhyay wrote:> It would be good to have a general django wide setting specifying the> maximum length allowed for POST data, if underlying server allowed it.Django just doesn't control these things. Read my answer in this very

Re: FileField :: mx file size

2006-01-30 Thread Amit Upadhyay
igital camera files and giving the server a hard time.  sounds like a very valid concern, can we do something about it. It would be good to have a general django wide setting specifying the maximum length allowed for POST data, if underlying server allowed it.  -- Amit UpadhyayBlog: http://www.rootsh

Re: possible to validate a subset of a model's fields?

2006-01-30 Thread Amit Upadhyay
ulators, one for each page. Validate page level manipulator and save the content in request.session, and when you are done on the last page, pick out all the saved temproary states and insert it in the database. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: possible to validate a subset of a model's fields?

2006-01-31 Thread Amit Upadhyay
On 1/31/06, Oliver Rutherfurd <[EMAIL PROTECTED]> wrote: Hi Amit,> I would recommend creating your own FormManipulators, one for each page.> Validate page level manipulator and save the content in request.session, and> when you are done on the last page, pick out all the saved t

Re: how to reference another function inside mode class

2006-02-03 Thread Amit Upadhyay
nction where you intend to call it. You can also use module constants, refer http://www.djangoproject.com/documentation/model_api/-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: Removing the Magic Branch release schedule

2006-02-03 Thread Amit Upadhyay
on, my application works with trunk, and will be broken with 0.92, is there any plan to branch the trunk before merging the magic removal, and supporting it for sometime while existing applications can test/migrate? -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: Multiple checkboxes

2006-02-03 Thread Amit Upadhyay
P:... Text Text...So I was able to know what item's where selected very easy. Just make aloop through the array post var, and check what id's have a "1" value.I suppose there's an easy way to do something like that in django, but don't know how.Need some help.Thanks in advance.-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay +91-9867-359-701

Fwd: Multiple checkboxes

2006-02-03 Thread Amit Upadhyay
please ignore my prev mail, tab space combo in gmail!-- Forwarded message --From: Amit Upadhyay < [EMAIL PROTECTED]>Date: Feb 4, 2006 9:56 AMSubject: Re: Multiple checkboxesTo: django-users@googlegroups.comOn 2/4/06, Javier Nievas <[EMAIL PROTECTED]> wrote: I have a l

Re: Dynamic choices

2006-02-08 Thread Amit Upadhyay
we are looking for. in the view where you are using it. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: login via url

2006-02-08 Thread Amit Upadhyay
you hit it. Create a view that server this url containing GUID/UUID as parameter, and if it matches with one in database, delete that object and log user in.I have done something similer for invitations, as soon as i get a request containing previously generated GUID, i create a user and log

Re: Is context variable 'user' automatic in templates?

2006-02-12 Thread Amit Upadhyay
uctor.Or if you are using render_to_response/string shortcuts, use something like: render_to_response('template', context_instance=DjangoContext(request))-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

  1   2   3   >