Addree Book Contact Importer in django/python

2009-11-17 Thread Raashid Malik
Hello, I need to import contacts of given email id/pwd from gmail,yahoo,hotmail for django app. Please suggest? - Thanks, Raashid Malik -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: connection.queries show no queries

2009-11-17 Thread Jani Tiainen
On Tue, 2009-11-17 at 16:15 -0800, Continuation wrote: > I'm running a django project (actually a Pinax project) on the > development server. > > At my settings.py I made sure DEBUG = True > > Then I hit a few pages that for sure resulted in hitting the database. > > Then I did "python

Re: How to use subqueries in django

2009-11-17 Thread Radhikavk
in one query they have giver or conditions but i need i wil have one common query like list=rooms.objects.all() # this is common query i m using and if the condition given like room status,type etc then i need to append those where conditions to the common query if room_type append

Re: Django javascript includes

2009-11-17 Thread Ovnicraft
2009/11/17 Thierry > Other frameworks (Symfony) offer simple hooks for managing js > includes. > In Django its simply a line of template code. > > This is annoying for managing JS dependencies. > > Did anyone write a nice little framework for managing js? > You

Login Error

2009-11-17 Thread Denis Bahati
Hi All, I have created a login screen for users of the site which is like User Profile and uses the username and password from django users. When i try to login to my view i get the error below. Environment: Request Method: POST Request URL: http://127.0.0.1/commTrack/commtrack/account/login/

Set model form initial value?

2009-11-17 Thread Nick Arnett
I can't see to figure out how to do something fairly simple - set the initial value of a model form field at runtime. The form is a simple set of radio buttons that lets the user choose which project to work on. I'm storing the selection in a session variable and that's working fine. What I

Re: Pass variable as view name to {% url %}

2009-11-17 Thread ringemup
Thanks for the links. On Nov 17, 7:56 pm, Karen Tracey wrote: > On Tue, Nov 17, 2009 at 7:33 PM, ringemup wrote: > > > It's really problematic to generate all the URLs (there are a lot of > > them) in the view and then retrieve the correct ones in the

Re: Pass variable as view name to {% url %}

2009-11-17 Thread Karen Tracey
On Tue, Nov 17, 2009 at 7:33 PM, ringemup wrote: > > It's really problematic to generate all the URLs (there are a lot of > them) in the view and then retrieve the correct ones in the correct > places in the template. It seems odd to me that {% url %} shouldn't > be able to

Re: connection.queries show no queries

2009-11-17 Thread Karen Tracey
On Tue, Nov 17, 2009 at 7:15 PM, Continuation wrote: > I'm running a django project (actually a Pinax project) on the > development server. > > At my settings.py I made sure DEBUG = True > > Then I hit a few pages that for sure resulted in hitting the database. > > Then I

Re: Pass variable as view name to {% url %}

2009-11-17 Thread ringemup
It's really problematic to generate all the URLs (there are a lot of them) in the view and then retrieve the correct ones in the correct places in the template. It seems odd to me that {% url %} shouldn't be able to take a variable view name. On Nov 17, 7:24 pm, Karen Tracey

Re: Pass variable as view name to {% url %}

2009-11-17 Thread Karen Tracey
On Tue, Nov 17, 2009 at 7:05 PM, ringemup wrote: > Is there any way to make the following work? Right now it's throwing > a template syntax error, apparently treating "the_pattern" as a string > literal instead of a variable name and looking for a view named > "the_pattern".

connection.queries show no queries

2009-11-17 Thread Continuation
I'm running a django project (actually a Pinax project) on the development server. At my settings.py I made sure DEBUG = True Then I hit a few pages that for sure resulted in hitting the database. Then I did "python manage.py shell" to bring up the interactive console. Next I tried to look at

Pass variable as view name to {% url %}

2009-11-17 Thread ringemup
Is there any way to make the following work? Right now it's throwing a template syntax error, apparently treating "the_pattern" as a string literal instead of a variable name and looking for a view named "the_pattern". [urls.py] urlpatterns = patterns('', (r'^(?P\s{1,8})/$',

Re: Can I change the title of an admin page?

2009-11-17 Thread Karen Tracey
On Tue, Nov 17, 2009 at 1:48 PM, Zeynel wrote: > This worked, thanks. > > But I had to change base.html as well (in ~/webapps/django/sw1/ > templates/admin). Because previously I had hardcoded the {{ title }} > in line 65 in base.html > > {% block content_title %}{% if title

Re: Template tag to check if object in queryset

2009-11-17 Thread dadapapa
Thanks for the pointers. This is exactly what I want and have to do then ... fingers crossed for inclusion into django1.2! On Nov 17, 5:15 pm, Tom Evans wrote: > On Tue, Nov 17, 2009 at 4:07 PM, dadapapa wrote: > > Dear list, > > > I have two

Initial values for formwizard form

2009-11-17 Thread geraldcor
Hello all, I began making a form that used request.user.get_profile to get default values for company name, phone, email etc. I have since decided to move to a formwizard to split things up. I have no idea how to override methods for the formwizard class to be able to include those initial values

Re: How to lay out large, *modular* website in Django.

2009-11-17 Thread john2095
Yes. Django is python and python can handle a modular layout. But it's not PHP/Zend. You will have to entirely rewire your brain by learning Python. There is a respectable curve to climb if you're coming from PHP. But to give you some comparison I have about 8 months experience with django (and

same model field times in query result. How?

2009-11-17 Thread tom
Hi, i want to have the same model-field 2x in the query result. The model.py is: class Measurand(models.Model): """ A Model for measurement data """ entry = models.ForeignKey(Entry) avg_value = models.FloatField(help_text='the average measurement value', db_index=True,

Aggregation and annotation with spatial queries.

2009-11-17 Thread Dave Mahoney
Hi, I want to be able to use spatial functions to annotate a queryset, then aggregate based on those annotation, for example: >>> r = Resultant.objects.values('ownership') >>> r1 = r.area() AttributeError: 'GeoValuesQuerySet' object has no attribute 'area' or >>> r = Resultant.objects.area()

bulk product import to satchmo

2009-11-17 Thread Bobby Roberts
I've posted this on the satchmo group but i'm not getting any love so I wanted to post it here to see if anyone has done what i'm trying to do. My client has about 3500 products in an excel spreadsheet and i'm trying to at least import as much product data as possible so that he doesn't have to

Re: How to lay out large, *modular* website in Django.

2009-11-17 Thread esatterwh...@wi.rr.com
I think all you would need to do is organize the permissions and assign users to groups with the permissions need to access the various views / data. You could also easily make decorators for the view function. something like @employee_login_required that checks if the user is loged in and if the

Re: Using Sass with Django makes CSS so much easier to maintain

2009-11-17 Thread Justin Lilly
Not SASS, but in the same vein is http://sandbox.pocoo.org/clevercss/ which has the benefit of being in python. -justin -- 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

Re: Unicode heisenbug whilst running a management command

2009-11-17 Thread Tom Evans
On Tue, Nov 17, 2009 at 7:35 PM, Karen Tracey wrote: > On Tue, Nov 17, 2009 at 1:12 PM, Tom Evans wrote: > >> This appears to be some sort of issue between the mysqldb and django's >> templating system. >> >> This code generates the

Re: HttpResponseRedirect doesn't redirect in this case

2009-11-17 Thread Gabriel .
you should "return HttpResponseRedirect" Regards. On Tue, Nov 17, 2009 at 5:04 PM, adrian wrote: > > The LOGIN_REDIRECT_URL setting points to this view, where I want to > redirect again according to the group the user is in: > > @login_required > def after_login(request): >

HttpResponseRedirect doesn't redirect in this case

2009-11-17 Thread adrian
The LOGIN_REDIRECT_URL setting points to this view, where I want to redirect again according to the group the user is in: @login_required def after_login(request): print "after_login" groups = request.user.groups.all() if groups: # use first one name =

Re: Using Sass with Django makes CSS so much easier to maintain

2009-11-17 Thread Mykola Lys
Great article Jason! Really cool tools! Thanks a lot! On Nov 16, 6:25 pm, Jason wrote: > I had been eyeing Sass for a while, hoping to get to use it on a > project. When we chose Django instead of Rails for FeedMagnet, I was > bummed that we wouldn't have access to the

Re: How to lay out large, *modular* website in Django.

2009-11-17 Thread lzantal
I think you just answered your own question.:) Each subsystem would be an app. If you want to keep the auth separate from each other then you need to subclass auth or create different groups because every django project has only one auth system. You could assign different priv level to the

Re: Unicode heisenbug whilst running a management command

2009-11-17 Thread Karen Tracey
On Tue, Nov 17, 2009 at 1:12 PM, Tom Evans wrote: > This appears to be some sort of issue between the mysqldb and django's > templating system. > > This code generates the UnicodeEncodeError as shown above, when the model > is saved: > > > from django.template

Re: Multiple level aggregate

2009-11-17 Thread despy
Thanks Tony. I'm ideally looking for a way to do this through models rather than SQL On Nov 16, 11:28 pm, Tony Czeh wrote: > On 11/16/09 1:12 PM, despy wrote: > > > > > > > Hi, > > > I'm trying to get my head around a complex aggregate query and I could > > do with some

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Angel Cruz
Looks like you finally got the download! You can just use Tortoise from this point onward. You don't need to get cygwin unless you are doing some shell scripting to interact with subversion or you just like doing things via the command line. On Tue, Nov 17, 2009 at 10:33 AM, Mikey3D

Re: I want to cancel the subscription for django-users group

2009-11-17 Thread Paul Menzel
Am Dienstag, den 17.11.2009, 10:17 +0100 schrieb "Gosálvez Prados, Diana": > Quiero darme de baja la suscripción al grupo google django-users > > I want to cancel the subscription for django-users group > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: Can I change the title of an admin page?

2009-11-17 Thread Zeynel
This worked, thanks. But I had to change base.html as well (in ~/webapps/django/sw1/ templates/admin). Because previously I had hardcoded the {{ title }} in line 65 in base.html {% block content_title %}{% if title %}{{ title }}{% endif %} {% endblock %} I would like to ask, if you can help me

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Mikey3D
Tony, I right-clicked on desktop wallpaper and see SVN Checkout >URL of repository >http://code.djangoproject.com/svn/django/trunk/ >OK It download 10,83M Bytes Django of 13 files in 2 minutes and 19 seconds. Angel, I installed 64-bit Subversion from http://tortoisesvn.net/downloads Is that

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Brian Neal
On Nov 17, 12:05 pm, Angel Cruz wrote: > So it seems TortoiseSVN does not include svn.exe? No, it doesn't. > > You need to install Subversion packaging then > No, he doesn't have to. He's got TortoiseSVN, which is a GUI for svn. He can checkout Django by creating a new

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Mikey3D
Tony, I right-clicked on desktop wallpaper and see SVN Checkout >URL of repository >http://code.djangoproject.com/svn/django/trunk/ >OK It download 10,83M Bytes Django of 13 files in 2 minutes and 19 seconds. Angel, I installed 64-bit Subversion from http://tortoisesvn.net/downloads Is that

Drupal migration

2009-11-17 Thread Adam Knight
Has anyone migrated a Drupal 6 site before? I have all the nodes, comments, and URLs coming across but now that I start on the taxonomy bits I'm running into some problems with how they did their tables versus what would have been sane (lack of a primary key column and, instead, a joint unique

Re: Can I change the title of an admin page?

2009-11-17 Thread Ilya Polosuhin
The folder for admin template is path/to/your/project/templates/admin So in your case you should put your own template to ~/webapps/django/sw1/templates/admin/ On Tue, Nov 17, 2009 at 7:45 PM, lzantal wrote: > Don't copy the original change_list.html file over there. > Create

Re: Unicode heisenbug whilst running a management command

2009-11-17 Thread Tom Evans
On Tue, Nov 17, 2009 at 3:14 PM, Tom Evans wrote: > Hi all > > I'm encountering a difficult to solve unicode problem whilst saving data to > the database. Worst of all, any attempt to reduce it to a simple test case, > or reproduce it in the console fail(!). This is on

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Angel Cruz
So it seems TortoiseSVN does not include svn.exe? You need to install Subversion packaging then: http://subversion.tigris.org/getting.html#windows (I have use VisualSVN in the past, but it seems like they don't have a 64-bit version yet) Or you can use cygwin (which comes with svn.exe) for your

olwidget and default map extent

2009-11-17 Thread Alessandro Pasotti
Hi, When my infomap has a set of points, the map is correctly zoomed to the extent of the points but this doesn't seem to happen when I have a multilinestring, is this the expected behaviour or did I miss something? -- Alessandro Pasotti w3: www.itopen.it -- You received this message

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Tony Czeh
TortoiseSVN is a graphical SVN client. If you right-click you should see an option for Tortoise that, when expanded, contains a check out option. From there, just follow the wizard. Mikey3D wrote: > I just got new computer Win7 64-bit and I downloaded: > > 64 Bit

Re: Can I change the title of an admin page?

2009-11-17 Thread lzantal
Don't copy the original change_list.html file over there. Create a new empty change_list.html file and put the code in there I posted previusly. So your new file will have only 2 lines of code inside. What it does is it extends the original template and thanks to django blocks you overwrite the

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Mikey3D
Windows 98 On Nov 17, 12:41 pm, Mikey3D wrote: > I can't find it. I have Windows 7 64-bit and what you have said is > completely difference all together. > > Last year, my 11 years old computer can do: run >command. I haven't > setup what you were talking about. Am I

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Mikey3D
I can't find it. I have Windows 7 64-bit and what you have said is completely difference all together. Last year, my 11 years old computer can do: run >command. I haven't setup what you were talking about. Am I missing something? Mikey3D On Nov 17, 12:17 pm, Angel Cruz

Re: MySQL error subquery returns more than 1 row

2009-11-17 Thread Nick Arnett
On Tue, Nov 17, 2009 at 9:03 AM, Ilya Polosuhin wrote: > I don't fully understood your question. Of course I have more than one row > at test_mymodel2 > SQL query was formed by django-ORM. I just call > print (MyModel.objects.filter(key_to_mymodel2 = >

Re: How to use subqueries in django

2009-11-17 Thread Adam Knight
On Nov 17, 2009, at 7:49 AM, Radhikavk wrote: > > hi, > > how to use search criteria using OR and AND in queries > user can search room by no,room_type, block etc i need the combination > > > Please can you refer the tutorial

Re: Help with manage.py syncdb

2009-11-17 Thread Adam Knight
What everyone else said. But, also, Snow Leopard made Python complicated. It ships with 2.4, 2.5, and 2.6. There's an easy_install for each version. If you easy_install the MySQLdb module without specifying which easy_install you're using, it will use whatever the default version of Python

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Angel Cruz
Your svn.exe is where you installed it. If you can find it, do a search on the c: drive. On Tue, Nov 17, 2009 at 9:16 AM, Angel Cruz wrote: > http://www.computerhope.com/issues/ch000549.htm > > > > On Tue, Nov 17, 2009 at 9:11 AM, Mikey3D wrote:

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Angel Cruz
http://www.computerhope.com/issues/ch000549.htm On Tue, Nov 17, 2009 at 9:11 AM, Mikey3D wrote: > I can't find svn.exe. > > Can you tell me howto? Steps... > > Thanks, Mikey3D > > On Nov 17, 12:00 pm, Angel Cruz wrote: > > Add to the PATH variable

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: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Mikey3D
I can't find svn.exe. Can you tell me howto? Steps... Thanks, Mikey3D On Nov 17, 12:00 pm, Angel Cruz wrote: > Add to the PATH variable the location of your svn.exe > > On Tue, Nov 17, 2009 at 8:58 AM, Mikey3D wrote: > > I just got new computer

Re: MySQL error subquery returns more than 1 row

2009-11-17 Thread Ilya Polosuhin
I don't fully understood your question. Of course I have more than one row at test_mymodel2 SQL query was formed by django-ORM. I just call print (MyModel.objects.filter(key_to_mymodel2 = MyModel2.objects.all()))._as_sql()) and write here output. And I also googled for this MySQL error and found

Re: Use Subversion to Download the Latest Django Version

2009-11-17 Thread Angel Cruz
Add to the PATH variable the location of your svn.exe On Tue, Nov 17, 2009 at 8:58 AM, Mikey3D wrote: > I just got new computer Win7 64-bit and I downloaded: > > 64 Bit TortoiseSVN-1.6.6.17493-x64-svn-1.6.6.msi > > After finished download >Restart >Start >Run >cmd > >

Use Subversion to Download the Latest Django Version

2009-11-17 Thread Mikey3D
I just got new computer Win7 64-bit and I downloaded: 64 Bit TortoiseSVN-1.6.6.17493-x64-svn-1.6.6.msi After finished download >Restart >Start >Run >cmd -- C:\Users\Mike>svn co http://code.djangoproject.com/svn/django/trunk/ 'svn' is not recognized as an internal or

Re: Making the case for Django (vs. Drupal)

2009-11-17 Thread Angel Cruz
If a piece of software (or any engineering product) is designed properly and flexible enough to easily fix with attacks, then actually, product and attacker form a symbiotic relationship where the attacker actually helps the product head to impermeability. This is true of most things that get

Re: MySQL error subquery returns more than 1 row

2009-11-17 Thread Nick Arnett
On Tue, Nov 17, 2009 at 7:17 AM, Ilya wrote: > I just developed some code like: > MyModel.objects.filter(key_to_mymodel2 = MyModel2.objects.all())) > This query produce SQL: > SELECT * FROM `test_mymodel` WHERE key_to_mymodel2_id =(select `id` > from `test_mymodel2`) >

Re: Help with manage.py syncdb

2009-11-17 Thread Lora
Do you have MySQLdb installed? See comments at the top: http://code.djangoproject.com/browser/django/trunk/django/db/backends/mysql/base.py jd_python wrote: > Hello there, > > I am a newbie learning Python/Django... > > Am using the following tutorial located at: > > http://bit.ly/eIdT > >

Re: Template tag to check if object in queryset

2009-11-17 Thread Tom Evans
On Tue, Nov 17, 2009 at 4:07 PM, dadapapa wrote: > Dear list, > > I have two models that are in the following relationship: > > class Member(django.contrib.auth.models.User) : ># some app specific stuff here >pass > > class Event(django.db.models.Model) :

Template tag to check if object in queryset

2009-11-17 Thread dadapapa
Dear list, I have two models that are in the following relationship: class Member(django.contrib.auth.models.User) : # some app specific stuff here pass class Event(django.db.models.Model) : attendees = models.ManyToManyRelation(Member) # some other fields In

Re: Unicode heisenbug whilst running a management command

2009-11-17 Thread Tom Evans
On Tue, Nov 17, 2009 at 3:34 PM, dfolland wrote: > I've dealt with this by manipulating the data with Python codecs. > > import codecs > > new_value= codecs.decode(current_value, 'utf-8', 'ignore') > > the default option is 'strict' which will raise a ValueError that >

Re: Unicode heisenbug whilst running a management command

2009-11-17 Thread dfolland
I've dealt with this by manipulating the data with Python codecs. import codecs new_value= codecs.decode(current_value, 'utf-8', 'ignore') the default option is 'strict' which will raise a ValueError that you've experienced, 'ignore' will drop the offending character, and 'replace' allows you

Re: MySQL error subquery returns more than 1 row

2009-11-17 Thread Ilya
M, thanks. But should I create ticket on django trac about this issue? On 17 ноя, 17:29, Tom Evans wrote: > On Tue, Nov 17, 2009 at 3:17 PM, Ilya wrote: > > I just developed some code like: > >  MyModel.objects.filter(key_to_mymodel2 =

Re: MySQL error subquery returns more than 1 row

2009-11-17 Thread Tom Evans
On Tue, Nov 17, 2009 at 3:17 PM, Ilya wrote: > I just developed some code like: > MyModel.objects.filter(key_to_mymodel2 = MyModel2.objects.all())) > This query produce SQL: > SELECT * FROM `test_mymodel` WHERE key_to_mymodel2_id =(select `id` > from `test_mymodel2`) >

issues with the ORM used outside of django

2009-11-17 Thread Jonas Obrist
Hi fellow djangonauts A while back I isolated the django ORM to run completely without all the rest of django, to be able to use it in EventScripts (a plugin for the source game server (counter strike and others) allowing to develop plugins in python). It worked well for me and my tests were

MySQL error subquery returns more than 1 row

2009-11-17 Thread Ilya
I just developed some code like: MyModel.objects.filter(key_to_mymodel2 = MyModel2.objects.all())) This query produce SQL: SELECT * FROM `test_mymodel` WHERE key_to_mymodel2_id =(select `id` from `test_mymodel2`) It works fine on SQLLite, but in MySQL it produce error: OperationalError: (1242,

Unicode heisenbug whilst running a management command

2009-11-17 Thread Tom Evans
Hi all I'm encountering a difficult to solve unicode problem whilst saving data to the database. Worst of all, any attempt to reduce it to a simple test case, or reproduce it in the console fail(!). This is on django 1.0. The process encountering the error is a simple daemon, run from a

Re: Can I change the title of an admin page?

2009-11-17 Thread Zeynel
Ok, thanks. I read the "overriding admin templates" section. I want to learn Django's template system and all these files are confusing to me, but eventually I'll get it. As instructed I created the directory system ~/webapps/django/sw1/templates/admin/wkw1/lawyer Then, I copied

Re: Can I change the title of an admin page?

2009-11-17 Thread Karen Tracey
On Tue, Nov 17, 2009 at 8:46 AM, Zeynel wrote: > I am sorry, I am new to django and I don't understand what I need to > do here. You should read this section in the docs: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates Karen -- You

Re: How to use subqueries in django

2009-11-17 Thread Radhikavk
hi, how to use search criteria using OR and AND in queries user can search room by no,room_type, block etc i need the combination Please can you refer the tutorial -- View this message in context: http://old.nabble.com/How-to-use-subqueries-in-django-tp26387486p26390239.html Sent from the

Re: Can I change the title of an admin page?

2009-11-17 Thread Zeynel
I am sorry, I am new to django and I don't understand what I need to do here. Do I create a new template file eg, mytemplate.html, in the directory templates/wkw1/lawyer/mytemplates.html and copy and paste in it {% extends "admin/change_list.html" %} {% block content_title %}Your Title Here{%

Re: How to use subqueries in django

2009-11-17 Thread Radhikavk
Karen Tracey-2 wrote: > > On Tue, Nov 17, 2009 at 6:43 AM, Radhikavk wrote: > >> >> I tried this i dis not get solution >> >> i m getting a list from rooms table >> >> room_list=rooms.objects.all() >> >> This will give me the room type id when i print

Re: How to lookup tables which has ForeignKey relationship

2009-11-17 Thread Rishabh Manocha
On Tue, Nov 17, 2009 at 7:40 PM, guptha wrote: > hi group, > > class Parent(models.Model): >user = models.ForeignKey(User,unique=True) >school=models.ForeignKey(School) >def __unicode__(self): > return self.user.username > > class Student(models.Model): >

Re: How to use subqueries in django

2009-11-17 Thread Radhikavk
ok i got it Thanks -- View this message in context: http://old.nabble.com/How-to-use-subqueries-in-django-tp26387486p26389937.html Sent from the django-users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: How to use subqueries in django

2009-11-17 Thread Karen Tracey
On Tue, Nov 17, 2009 at 6:43 AM, Radhikavk wrote: > > I tried this i dis not get solution > > i m getting a list from rooms table > > room_list=rooms.objects.all() > > This will give me the room type id when i print room_list.room_type_id but > for this id i need a name

Re: order_by related models

2009-11-17 Thread dave.l
Hi Karen, Thank you! I was just being blind -- I'd looked at that paragraph and the double underscore just went in one eye and out the other and didn't register as being different to the old format... doh. -- You received this message because you are subscribed to the Google Groups "Django

Re: RapidSMS on windows

2009-11-17 Thread Karen Tracey
On Tue, Nov 17, 2009 at 3:08 AM, Denis Bahati wrote: > Hi All, > > Does RapidSMS work on windows? Please if it does can anyone show me the > detail on how to go through. > > I expect you'd have better luck getting answers on a RapidSMS forum. Karen -- You received this

Re: DB table hook/callback

2009-11-17 Thread Ishwor Gurung
Andy, Hi. 2009/11/17 Andy McKay : > On 09-11-16 9:01 PM, Ishwor Gurung wrote: >> "Django includes a “signal dispatcher” which helps allow decoupled >> applications get notified when actions occur elsewhere in the >> framework." The word "framework" is I think the key here.

Re: How to use subqueries in django

2009-11-17 Thread Radhikavk
I tried this i dis not get solution i m getting a list from rooms table room_list=rooms.objects.all() This will give me the room type id when i print room_list.room_type_id but for this id i need a name which is in room_types table how to get this Thanks -- View this message in context:

How to lookup tables which has ForeignKey relationship

2009-11-17 Thread guptha
hi group, class Parent(models.Model): user = models.ForeignKey(User,unique=True) school=models.ForeignKey(School) def __unicode__(self): return self.user.username class Student(models.Model): user = models.ForeignKey(User,unique=True) school=models.ForeignKey(School)

Re: How to use subqueries in django

2009-11-17 Thread Daniel Roseman
On Nov 17, 10:26 am, Radhikavk wrote: > Hi , > > I have 2 tables room_types and room > > the table structure > > class room_types(models.Model): >     room_type_id = models.AutoField(primary_key=True,null=False,blank=False) >     room_type_name = >

How to lay out large, *modular* website in Django.

2009-11-17 Thread zimnyx
Guys, I'm trying to lay out Django code for large "website", which consists of four subsytems: - employees' website - statistics website used also by employees - public website (with users accounts) - monitoring webservices This four components have different: - auth types, - different user

How to use subqueries in django

2009-11-17 Thread Radhikavk
Hi , I have 2 tables room_types and room the table structure class room_types(models.Model): room_type_id = models.AutoField(primary_key=True,null=False,blank=False) room_type_name = models.CharField(max_length=100,unique=True,null=False,blank=False) room_type_desc =

Re: Django javascript includes

2009-11-17 Thread Kenneth Gonsalves
On Tuesday 17 Nov 2009 3:45:01 pm Thierry wrote: > In Django its simply a line of template code. > what line of code is this? -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ -- You received this message because you are subscribed to the Google

Django javascript includes

2009-11-17 Thread Thierry
Other frameworks (Symfony) offer simple hooks for managing js includes. In Django its simply a line of template code. This is annoying for managing JS dependencies. Did anyone write a nice little framework for managing js? -- You received this message because you are subscribed to the Google

Re: Can I stop the FormWizard sequence?

2009-11-17 Thread Lacrima
I think you should override FormWizard.process_step() method, where you can make with the list of forms whatever you want. On Nov 17, 12:13 am, konatufe wrote: > Hi Guys! > > Can I stop the forms sequence in a Form Wizard? > Doing something like execute an extra

Re: problems accessing markdown comments

2009-11-17 Thread Daniel Roseman
On Nov 17, 9:28 am, neridaj wrote: > I can't figure out why my comment vars aren't available in my > template. I'm using django.contrib.markup and when I try to preview > the comments nothing is displayed, however, the comment var is > available in {{ comment|linebreaks }} but

problems accessing markdown comments

2009-11-17 Thread neridaj
I can't figure out why my comment vars aren't available in my template. I'm using django.contrib.markup and when I try to preview the comments nothing is displayed, however, the comment var is available in {{ comment|linebreaks }} but not in {{ comment.submit_date|date:"F j, Y" }}, {{

I want to cancel the subscription for django-users group

2009-11-17 Thread Gosálvez Prados, Diana
Quiero darme de baja la suscripción al grupo google django-users I want to cancel the subscription for django-users group -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

RapidSMS on windows

2009-11-17 Thread Denis Bahati
Hi All, Does RapidSMS work on windows? Please if it does can anyone show me the detail on how to go through. -- 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

Re: first project taking it too production server

2009-11-17 Thread Kenneth Gonsalves
On Tuesday 17 Nov 2009 1:09:58 pm Amit Sethi wrote: > yes I do have ssh access and the server does have python on it. > then all you need to do is to set up a separate site for your django project (apache, mod_python, mod_wsgi - whatever your host offers). That will not clash with your drupal