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

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

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 <law...@au-kbc.org> 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

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

Embedd VIM in Django Application

2009-09-07 Thread Amit M Joshi
How can i embedd vim in my django application? Is there any template available for this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

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

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: >

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

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

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

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': '/home/amit/analytics/sitemedia

serving static files

2009-04-13 Thread amit sethi
', {'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 --~--~-~--~~~---~--~~ You received this message

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

ManyToOne from User

2009-03-20 Thread Amit Prahesh
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 elegant way. Best regards, Amit

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

Re: Command Prompt

2008-09-25 Thread Amit Ramon
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@googlegroups.com To unsubscrib

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

2008-09-19 Thread Amit Upadhyay
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) Comment: http://getfiregpg.org iD8DBQFI050eaRcPJ4NxgJIRAkuPAJ9IR0ee/YOan6T0B0r8

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 subscribed

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: 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-24 Thread Amit Upadhyay
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 becau

memchached issue on ubuntu

2008-06-24 Thread Amit Upadhyay
ect_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.vakow.com +91-9820-295

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

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: 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

IntegerField - SQL type changed?

2008-05-15 Thread Amit Ramon
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 group, send email

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 that w

Re: UnicodeDecodeError

2008-04-30 Thread Amit Ramon
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 this message because you are subscribed to

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 doesn't

Re: UnicodeDecodeError in request.get_full_path()

2008-04-28 Thread Amit Ramon
an 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: Sort QuerySet

2008-04-28 Thread Amit Ramon
e 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 python lists to some generic views instead of query sets. E.g., object_list can

UnicodeDecodeError in request.get_full_path()

2008-04-27 Thread Amit Ramon
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 other ideas? Thanks, Amit P.s. Also, as for the code in wsgi.py, shouldn't the format string above be preceded by 'u'? I.e., shouldn't it r

Re: Problem with static content + Apache / FastCGI

2008-04-08 Thread Amit Ramon
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 again if this is not clear enough. --- Amit --~--~---

Re: Transactions with custom sql

2008-04-07 Thread Amit Ramon
l 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 the full explanatio

Re: Multiple sites on shared host

2008-03-31 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. > > I hav

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

2008-03-30 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: 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: 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]: &

MySql autocommit and Django

2008-03-06 Thread Amit Ramon
it 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 --~--~-~--~~~---~--~~ You received this mess

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 new to djan

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]> [2008-02

Re: shared state between requests and FastCGI

2008-02-14 Thread Amit Ramon
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 behind this:

shared state between requests and FastCGI

2008-02-14 Thread Amit Ramon
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 enough. I would appreciate any ideas. Thanks,

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 > > for a fil

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

2007-09-22 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: 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 }} {% endfor %} Hope this helps, --- Amit

gettext_noop usage?

2007-09-19 Thread Amit Ramon
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 post to th

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 insta

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 any ideas. Tha

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
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 Groups "Django

Re: reverse pagination

2007-07-23 Thread Amit Upadhyay
ts, 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 subscribed to the G

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

using middleware vs. context_processors: best practice?

2007-07-14 Thread Amit Ramon
me 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 you are subscribed to

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: > Hi A

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'm facing is how

how to set language explicitly in multi-lingual site

2007-07-10 Thread Amit Ramon
his 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 idea, Amit --~--~-~--~~~--

Re: problems with a shared host setup

2007-06-14 Thread Amit Ramon
()).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 everything I think I'm supposed to > as per the setup d

Re: image bundle for django

2007-06-13 Thread Amit Upadhyay
; 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 anything that > django.utils.data

Re: Generic views: how to use them properly?

2007-06-02 Thread Amit Ramon
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 sample app. I > really lik

Re: Multiple Profiles

2007-05-11 Thread Amit Upadhyay
? 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 situation (

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

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: DSN useful for database settings?

2006-05-10 Thread Amit Upadhyay
antage 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 +91-9867-3

Re: Erro on access svn repository

2006-05-05 Thread Amit Upadhyay
tu.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.rootshell.be/~upadhyay +91-9867-3

Re: Feed rss and xml

2006-04-10 Thread Amit Upadhyay
still there, and every feed aggregator, atleast the ones I or my clients have tried, consumes this without any problem. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Help with performance?

2006-04-06 Thread Amit Upadhyay
e from django.models.mymodel import *, and this alone takes some time to happen. May be m-r is a little better in initialization. Design your scripts keeping this in your mind, create the whole script in python, and not invoking python as a helper process used in some loop maybe better. -- Amit Upadhy

Re: Module imports in models

2006-03-14 Thread Amit Upadhyay
file,quality=100)         class META:    admin = meta.Admin()    def get_thumb_url(self):    import os.path    tnd = "/thumbnails/"    tnp = "tn_"    fs = self.get_thumbnail_url ()    return os.path.dirname(fs) + tnd + tnp + os.path.basename(fs)### End Broke

Re: specifying a model with a field computed from other fields

2006-03-09 Thread Amit Upadhyay
define for your model, will be called just before the model is saved in the database. You can put your logic there. -- Amit Upadhyay Blog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subs

Re: why is my view for a submitted form not getting a POST?

2006-03-09 Thread Amit Upadhyay
ual page where the form would be deployed. Django facilitates these things as best practices, you are completely free to follow whatever your requirements tell you. Its usually recommended to serve the form in the GET request and handle it in POST request on the same url. -- Amit UpadhyayBlog: http://w

Re: Attn. Dreamhost users

2006-03-08 Thread Amit Upadhyay
l wait for 2 minutes or so and then give me 500 server internal error, in the process it would create tens of core files. This problem has fixed automatically on both occasions in 5-10 minutes. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-3

Re: Attn. Dreamhost users

2006-03-08 Thread Amit Upadhyay
On 3/8/06, PythonistL <[EMAIL PROTECTED]> wrote: But how can I kill ALL of them?One by one something like:kill processNumber?pkill is your friend. I use "pkill -9 python2.4" on abovenet for most code changes. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay

Re: Can't import view

2006-03-06 Thread Amit Upadhyay
On 3/6/06, tomass <[EMAIL PROTECTED]> wrote: (r'^jobmonitor/$', include('greenleaftech.jobmonitor.views.index')),try: (r'^jobmonitor/$', 'greenleaftech.jobmonitor.views.index'),include is used to include a different urls file for further resolution. -- Amit UpadhyayBlog: http://www.rootsh

Re: view on site

2006-03-02 Thread Amit Upadhyay
n site) and when i clicked on it it gave meerror says page not found what should i do to make this button work -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: order_with_respect_to

2006-02-24 Thread Amit Upadhyay
those lines, or attach your template. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: order_with_respect_to

2006-02-24 Thread Amit Upadhyay
about template error. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: order_with_respect_to

2006-02-24 Thread Amit Upadhyay
Hi Patrick,good point.i´d still appreciate some help with my initial question though. Can you please post the exact error that you are getting? -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay +91-9867-359-701 --~--~-~--~~~---~--~~ You received this message

Re: order_with_respect_to

2006-02-24 Thread Amit Upadhyay
moving this line, and recreating tables. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: problems with POST

2006-02-23 Thread Amit Upadhyay
On 2/24/06, Vladimir <[EMAIL PROTECTED]> wrote: action=""> method="POST">Hi,This is a very common newbie mistake, make that action="">.-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~-

Re: SetEnv issue

2006-02-22 Thread Amit Upadhyay
Hi Kenneth,Are you using VirtualHosts? I had problem with them on some machine, and I moved to someother without virtual hosts and it worked. On 2/23/06, Kenneth Kalmer <[EMAIL PROTECTED]> wrote: GuysI've scoured google, this list and the docs for two days now and Isimply can't get django to work

Re: only show something(form) if javascript-enabled

2006-02-20 Thread Amit Upadhyay
block", ofcourse this won't happen unless _javascript_ is enabled. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: two object returned for exact pk lookup

2006-02-20 Thread Amit Upadhyay
on has been running without those scary mails since last 6-8 hours. Adrian, what is the stutus on that bug, can you please apply it to trunk? -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message becau

Re: Template Does Not exist Error

2006-02-20 Thread Amit Upadhyay
e directory.Use {% extends "subfolder/parent" %} if they are in a subfolder of templates directory. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: urllib2.open failing in Django?

2006-02-20 Thread Amit Upadhyay
r http, and parsing html in my django application, and its working like a charm. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Manipulator and views problem, where to save object ?

2006-02-20 Thread Amit Upadhyay
nt say anything. otherwise when its called i get an error :isFoo() takes exactly 3 arguments (2 given) Exception Location:/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/formfields.pyin get_validation_errors, line 70Remove 'self' from function definition. -- Amit Upadhy

Re: Manipulator and views problem, where to save object ?

2006-02-20 Thread Amit Upadhyay
or. What you want is: if len(field_data["content"]) > 10: Best wishes,-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay +91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Manipulator and views problem, where to save object ?

2006-02-20 Thread Amit Upadhyay
s pas depasser100kb"Typo? -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Manipulator and views problem, where to save object ?

2006-02-20 Thread Amit Upadhyay
a save() and it should do whatever you want your form precessing logic is.-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: django problem at dreamhost

2006-02-19 Thread Amit Upadhyay
I have used command line svn since before they started the new feature. I have a few domains hosted at dreamhost (on different machines).  Onemachine has had problems (squirm) while another machine has been fine.How do you get a new machine? Will I have to create a new account? -- Amit UpadhyayBlog

Re: django problem at dreamhost

2006-02-19 Thread Amit Upadhyay
m is I am serving some _javascript_ that is embedded in the head of tens of blogs and firefox(atleast) will not render anything till before it has either got a 404 for _javascript_s in head or have timed out. Two minute delay will kill my service if it stops my clients blog from loading. -

django problem at dreamhost

2006-02-19 Thread Amit Upadhyay
folder. Has anyone seen something like this happening with their django application hosted on dreamhost? -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: forward references

2006-02-18 Thread Amit Upadhyay
from django.models.myapp import articlesOn 2/18/06, Rock <[EMAIL PROTECTED]> wrote: -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Web Services

2006-02-18 Thread Amit Upadhyay
Hi,Check out http://nerdierthanthou.nfshost.com/2005/09/soaped-django.html and http://nerdierthanthou.nfshost.com/2005/09/xmlrpc-support-for-django.html before you go on implementing something.On 2/18/06, mateja < [EMAIL PROTECTED]> wrote:Chaos,I too am interested in adding XML-RPC

Re: two object returned for exact pk lookup

2006-02-15 Thread Amit Upadhyay
tabase is MySQL [MySQL 5.0.18-standard-log]. -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: two object returned for exact pk lookup

2006-02-15 Thread Amit Upadhyay
than that, I would like the fix the real problem. Any clues? I am running django as fastcgi over dreamhost, in case if it helps.On 2/15/06, Amit Upadhyay <[EMAIL PROTECTED] > wrote:Hi,Today I got this in mail:  File "/home/amitu/django_projects /amitucom/apps/blogger/js_views.py",

two object returned for exact pk lookup

2006-02-15 Thread Amit Upadhyay
.nfshost.com/ Can anyone tell me the possible reason for the same? I am completely baffled.Thanks,-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay +91-9867-359-701

Re: How to find the label for a value

2006-02-13 Thread Amit Upadhyay
lready does it. If you have specified choices for any member my_member of model MyModel, django will add a get_my_member_display() function to MyModel objects. -- Amit Upadhyay Blog: http://www.rootshell.be/~upadhyay+91-9867-359-701

Re: How to find the label for a value

2006-02-13 Thread Amit Upadhyay
/Cookbook/Python/Recipe/414283 -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701

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

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

Re: Dynamic choices

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

<    1   2   3   >