Getting old projects to run on 1.2 with Ubuntu

2010-07-25 Thread Nikhil Somaru
Hi I'm using Ubuntu Lucid 10.04. I had previously installed Django 1.1.1 via the repos. I downloaded the django 1.2 tarball. Ran "sudo setup.py install" after extracting, and it seems the installation went fine. However, when I run the dev server with my old project, it still shows as django versi

Re: Demonstrate Development Server

2010-07-25 Thread Nikhil Somaru
That should work, I don't think it's a django problem On Sun, Jul 25, 2010 at 12:00 AM, kostia wrote: > How to open my web site on development server to others? > I use python manage.py runserver 0.0.0.0:8000 > > But something stops others to visit my site. I use Linux Fedora, maybe > I should s

Re: New tutorial added to Django by Example

2010-08-02 Thread Nikhil Somaru
How to set up a virtual python/django installation On Tue, Aug 3, 2010 at 9:44 AM, Rainy wrote: > I've added a new tutorial: Calendar App to > my Django by Example site. As always, feedback is appreciated. > > What would be a good tutorial to do next? > >http://LightBird.net/dbe/ > > -ak >

Re: New tutorial added to Django by Example

2010-08-05 Thread Nikhil Somaru
Ah, thanks On Tue, Aug 3, 2010 at 8:40 PM, Rainy wrote: > > > On Aug 3, 2:25 am, Nikhil Somaru wrote: > > How to set up a virtual python/django installation > > > > There is already a tutorial for this here: > > > http://codytaylor.org/2010/07/django-on-d

Re: Getting old projects to run on 1.2 with Ubuntu

2010-08-05 Thread Nikhil Somaru
t; On Sun, 25 Jul 2010 07:17:48 +0200, Nikhil Somaru > wrote: > > Hi >> >> I'm using Ubuntu Lucid 10.04. I had previously installed Django 1.1.1 via >> the repos. I downloaded the django 1.2 tarball. Ran "sudo setup.py >> install" >> after e

Re: cannot import name `feed`

2012-04-13 Thread Nikhil Somaru
You have upgraded to Django 1.4. I had the same problem when going from Django 1.3.1 to 1.4. Suggestion: pip install django==1.3.1 On Mar 6, 7:22 am, Alec Taylor wrote: > I keep getting an ImportError saying "cannot import name `feed`". > (pinax-admin basic_project) > > I am running latest Pin

Re: cannot import name `feed`

2012-04-13 Thread Nikhil Somaru
You have upgraded to Django 1.4. I had the same problem when going from Django 1.3.1 to 1.4. Suggestion: pip install django==1.3.1 On Mar 6, 7:22 am, Alec Taylor wrote: > I keep getting an ImportError saying "cannot import name `feed`". > (pinax-admin basic_project) > > I am running latest Pin

[Question] Filter Queryset in a Template

2012-04-14 Thread Nikhil Somaru
usly, you can't pass arguments to filter in a template. How can one achieve this? -- Yours, Nikhil Somaru -- 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 unsu

Re: [Question] Filter Queryset in a Template

2012-04-16 Thread Nikhil Somaru
; do the filtering part in views.py . templates is meant only for visual > purpose > > On Sat, Apr 14, 2012 at 2:21 PM, Nikhil Somaru wrote: > >> Greetings, >> >> >> I would like to do something like queryset filtering in a template. Is >> the only

Re: [Question] Filter Queryset in a Template

2012-04-17 Thread Nikhil Somaru
Thanks for the replies guys. I realised I was over thinking the matter. I'm just going to do the necessary work in the view for now, get it *working*, and then worry about optimising later. On 16 April 2012 19:16, Javier Guerra Giraldez wrote: > On Mon, Apr 16, 2012 at 6:00 AM, Nikhi

[Admin] Form Fields Rendering Completely Incorrectly

2011-09-30 Thread Nikhil Somaru
hose which have the parameter choices passed to them (they should be a drop-down box). The class being applied to them is vLargeTextField. This is a brand-new Django project, there is no custom css/html and the devserver is returning 200 (OK) for all requests. Your help is appreciated. -- You

Re: [Admin] Form Fields Rendering Completely Incorrectly

2011-09-30 Thread Nikhil Somaru
arField instead of TextField > > -- > eng. Ilian Iliev > Web Software Developer > > Mobile: +359 88 66 08 400 > Website: http://ilian.i-n-i.org > > > On Fri, Sep 30, 2011 at 2:01 PM, Nikhil Somaru wrote: > >> Hi All, >> >> Django Version: 1.3 >

Re: nested template tags

2011-05-26 Thread Nikhil Somaru
glegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Yours, Nikhil Somaru -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Form validation

2011-05-26 Thread Nikhil Somaru
e }} below. {% endif %} {% csrf_token %} {{ form.as_table }} # # Could anyone explain: 1) why the form is not validating 2) How

Re: Form validation

2011-05-26 Thread Nikhil Somaru
y 26, 2011 at 5:16 PM, Daniel Roseman wrote: > On Thursday, May 26, 2011 11:18:39 AM UTC+1, Nikhil Somaru wrote: > >> Hi all, >> >> I am testing the form validation. When I try and submit an empty form, I >> get: >> >> ValueError at /contact/ >> >

Re: Installing Django on Ubuntu

2011-05-28 Thread Nikhil Somaru
Any advice would be very much appreciated! >> >> Thanks! >> > > -- > 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,

Re: Similar site for Django

2011-05-29 Thread Nikhil Somaru
Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/dja

[formsets] Initial Values to an inline_formset() instance

2011-06-17 Thread Nikhil Somaru
data): subform.initial = data # render_to_response The problem is, this limits me to a total number of forms as defined in the extra field passed to inline_formset(). Any improvements or totally new solutions are welcome! My Python/Django knowledge is beginner-intermediate (leaning towards

Re: [formsets] Initial Values to an inline_formset() instance

2011-06-17 Thread Nikhil Somaru
probably uses more memory than it should, but it works. Are there any other, more elegant solutions? On Fri, Jun 17, 2011 at 3:38 PM, Nikhil Somaru wrote: > Hi, > > PURPOSE: Mimic the admin "inline" functionality (with > ForeignKeyrelationships) in one of my own forms wi

[Forms] Avoiding Repetition

2011-06-17 Thread Nikhil Somaru
widgets = { 'quantity_requested': TextInput(attrs={'readonly':'readonly'}), 'quantity_approved': TextInput(attrs={'readonly':'readonly'}), 'quantity_received': TextInput(attrs={'readonl

Re: Form login and get information.

2011-06-20 Thread Nikhil Somaru
ooglegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Yours, Nikhil Somaru -- You received this message because you are subscribed to t

Re: [Forms] Avoiding Repetition

2011-06-21 Thread Nikhil Somaru
Thanks derek. On Sat, Jun 18, 2011 at 8:03 AM, Nikhil Somaru wrote: > Hi, > > Is there a way to reduce the repetition in the following form classes: > > class ItemsStep2(ModelForm): #approval > class Meta: > model = OrderItem > fields = (&#x

Re: [Forms] Avoiding Repetition

2011-06-22 Thread Nikhil Somaru
on my phone, so I apologize in advice if I missed > something crucial, but what's stopping you from subclassing and > overriding just the relevant parts? > > Sincerely, > Andre Terra > > On 6/17/11, Nikhil Somaru wrote: > > Hi, > > > > Is ther

Re: manytomany query problem

2011-06-23 Thread Nikhil Somaru
. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Yours, Nikhil Somaru -- You received this message because you are subscribed to th

Re: django page loads forever

2011-06-23 Thread Nikhil Somaru
jango users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to django-users+unsubscribe@** > googlegroups.com . > For more options, visit this group at http://groups.google.com/** > group/django-users?hl=en<

Re: manytomany query problem

2011-06-23 Thread Nikhil Somaru
t to return all A, but filter my > "B1"s (as you put it) for each A. I will post my models if need be, > but they are on another computer and its not convenient right now. In > the meantime, do you have any ideas for this query? > > On Jun 23, 11:50 am, Nikhil Somaru wro

Re: manytomany query problem

2011-06-24 Thread Nikhil Somaru
n is this: > a1 to (b1,), a2 to None, a3 to (b1,). > > I always want to return all of my model "A" objects, but I want to > filter the model "B" objects within each based on who the current > user's "friend connections are". How do I do this in c