Re: get_next_by title?

2010-04-22 Thread ChrisR
Thanks Daniel! I didn't realize that "FOO_gt=..." would go to the next. I guess I was thinking that'd only work with dates, ints, things that have to do with numbers. (I'm new to this stuff). Provided what you gave me, I came up with the follow: def get_prev_by_title(self):

Re: list_editable ForeignKeyRawIdWidget problem

2010-04-22 Thread Karen Tracey
On Thu, Apr 22, 2010 at 2:50 PM, frans wrote: > I have a list_editable foreignkey field. In the admin site change > list it is displayed with a nice search icon. but the link is bad! > > Since your fix involves changing the ForeignKeyRawIdWidget, I guess you have a ForeignKey that is in both lis

M2M Manager -- how to get primary key of join table?

2010-04-22 Thread Info Cascade
Hi -- I have two models with a m2m relationship, and I need to get the value of the primary key of the join table. To use the example from the book: > from django.db import models > > class Publication(models.Model): > title = models.CharField(max_length=30) > > def __unicode__(self): >

Any way to do select_related() moving backward?

2010-04-22 Thread Continuation
Is there any way to do something similar to select_related() when following a foreign key relationship backward? For example, b = Blog.objects.get(id=1) e = b.entry_set.all() Any way to retrieve both b and e in one single DB query? -- You received this message because you are subscribed to the

import request ? - django debugsqlshell

2010-04-22 Thread Daxal
Hi, I am trying to run a little debug code before I put it on my testserver. I am passing in "request" variable in the django code for the debugsqlshell but it doesn't seem to work. >>> sresults=run_search_component(request, 'contacts') Traceback (most recent call last): File "", line 1, in Na

Re: Email Field

2010-04-22 Thread CrabbyPete
Thanks. That helps. At least I know someone else is facing the same thing. On Apr 21, 2:20 pm, Tom Evans wrote: > On Wed, Apr 21, 2010 at 6:22 PM, CrabbyPete wrote: > > Yes, but my problem is its defined in contrib.auth.User with no > > length, which I assume defaults to 60. Facebook proxy emai

Re: multiple django instances, one database?

2010-04-22 Thread Tim Arnold
On Apr 22, 2:25 pm, Tom Evans wrote: > On Thu, Apr 22, 2010 at 7:00 PM, Tim Arnold wrote: > > On Apr 22, 1:22 pm, Andy McKay wrote: > >> On 2010-04-22, at 9:52 AM, Tim Arnold wrote: > > >> > hi, > >> > Until now I've been working on a single Freebsd server, hosting a > >> > couple of Django ap

Re: unable to create en-gb for localisation

2010-04-22 Thread Aaron Lee
Thanks, for some reason en_GB works (but not en-gb) and I don't see a en_GB stub under django/conf/locale. So it seems it works in a mysterious way -Aaron On Thu, Apr 22, 2010 at 12:24 PM, Ramiro Morales wrote: > On Thu, Apr 22, 2010 at 3:48 PM, Aaron Lee wrote: > > Hi, > > > > I am trying to

Re: unable to create en-gb for localisation

2010-04-22 Thread Daniel Roseman
On Apr 22, 7:48 pm, Aaron Lee wrote: > Hi, > > I am trying to create a UK version of my site and ran into some problems. > I am manually setting my LANGUAGE_CODE to 'en-gb' and use > django-admin.py makemessages -l en-gb and then run compilemessages > > For some reason it's not picking up the loca

Re: unable to create en-gb for localisation

2010-04-22 Thread Ramiro Morales
On Thu, Apr 22, 2010 at 3:48 PM, Aaron Lee wrote: > Hi, > > I am trying to create a UK version of my site and ran into some problems. > I am manually setting my LANGUAGE_CODE to 'en-gb' and use > django-admin.py makemessages -l en-gb and then run compilemessages > > For some reason it's not pickin

Re: Working for a startup.

2010-04-22 Thread didier rano
I am working these days on both environment. Half with C# .NET environment (Professional time), and half with Python/Django (Not yet professional time !) I love Python. Really, it is not a pleasure for me to work with C#. Now, I would like to hire some developers to continue my Django projects. T

list_editable ForeignKeyRawIdWidget problem

2010-04-22 Thread frans
I have a list_editable foreignkey field. In the admin site change list it is displayed with a nice search icon. but the link is bad! it might be something on my end I dont know I updated to trunk and removed all the pyc files, syncdb'd but it didnt help. I did some digging and found I could

unable to create en-gb for localisation

2010-04-22 Thread Aaron Lee
Hi, I am trying to create a UK version of my site and ran into some problems. I am manually setting my LANGUAGE_CODE to 'en-gb' and use django-admin.py makemessages -l en-gb and then run compilemessages For some reason it's not picking up the localised string, I am pretty sure my setup is correct

Re: multiple django instances, one database?

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 7:00 PM, Tim Arnold wrote: > On Apr 22, 1:22 pm, Andy McKay wrote: >> On 2010-04-22, at 9:52 AM, Tim Arnold wrote: >> >> > hi, >> > Until now I've been working on a single Freebsd server, hosting a >> > couple of Django apps. Now we've bought another machine to provide >>

Re: Working for a startup.

2010-04-22 Thread JHeasly
There's also this: http://kurtgrandis.com/blog/2010/02/24/python-django-vs-c-asp- net-productivity-showdown/">Python + Django vs. C# + ASP.NET: Productivity Showdown >From the above: "People are often asking me how and why my department shifted from an ASP.NET environment to Django. I’ve finally

Re: multiple django instances, one database?

2010-04-22 Thread Tim Arnold
On Apr 22, 1:22 pm, Andy McKay wrote: > On 2010-04-22, at 9:52 AM, Tim Arnold wrote: > > > hi, > > Until now I've been working on a single Freebsd server, hosting a > > couple of Django apps. Now we've bought another machine to provide > > load balancing and I'm wondering how to accomplish that. >

Re: How to set the sucess message after inserting values to db in django admin site

2010-04-22 Thread Paulo Roberto Macedo Chaves
If you are using a generic view for create/update object without a logged user, the messages will not be displayed. On Thu, Apr 22, 2010 at 3:09 AM, Radhikavk wrote: > > How to set the sucess message after inserting values to db in django admin > site > like message department added sucessfully

Re: I have a problem with the pagination with haystack and apache solr

2010-04-22 Thread Ariel
I don't know how to know that because I don't know the name of the fields in the index. How could I know it ??? Regards Ariel On Wed, Apr 21, 2010 at 4:40 AM, Ray McBride wrote: > How many results are returned when you search using the solr admin > interface? > > Are you using the code that I po

Re: multiple django instances, one database?

2010-04-22 Thread Andy McKay
On 2010-04-22, at 9:52 AM, Tim Arnold wrote: > hi, > Until now I've been working on a single Freebsd server, hosting a > couple of Django apps. Now we've bought another machine to provide > load balancing and I'm wondering how to accomplish that. > I guess the django code can be shared on the sam

Re: add permission to new model instances

2010-04-22 Thread Shawn Milochik
What you're describing is more of a row-level permissions system. The permissions system that ships with contrib.auth is table-level, not row-level. There has been some talk on this list about ways to go about it, but I don't think there's an out-of-the-box solution for it yet. Off of the top

multiple django instances, one database?

2010-04-22 Thread Tim Arnold
hi, Until now I've been working on a single Freebsd server, hosting a couple of Django apps. Now we've bought another machine to provide load balancing and I'm wondering how to accomplish that. I guess the django code can be shared on the same drive, but the django instances running separately of c

Re: Working for a startup.

2010-04-22 Thread Jonathan Chen
Just to add my two cents. I think the fight between FOSS vs Proprietary is kind of a faulty argument because there is pros and cons for both sides. Anybody who says FOSS is the best or this Proprietary software is the best really doesn't understand the difference between FOSS and Proprietary softwa

Re: add permission to new model instances

2010-04-22 Thread Adonis
Thank you for your answer Shawn. I have been reading through Signal documentation and related examples...It is quite useful and it helps keep your code tidy. My problem continues because i cannot find a way to use a signal to add a permission to the meta class of the Layer model every time a user

Re: Working for a startup.

2010-04-22 Thread Javier Guerra Giraldez
I want to state some points that should be obvious: - All three techonogies mentioned so far (Django, .NET and Rails) can work on flawlessly on big, important projects when used correctly, or can fail on medium/small deployments when used incorrectly. - .NET is a lower-level layer than Django or

Re: URL dispatch with name argument throws syntax error

2010-04-22 Thread vjimw
Thanks! That was it! I had completely overlooked that and the url() function was even in another URLs file in our project. On Apr 22, 10:45 am, kmtracey wrote: > On Thu, Apr 22, 2010 at 11:34 AM, vjimw wrote: > > Adding the name argument seems pretty straight forward, but I must be > > doing som

Re: Working for a startup.

2010-04-22 Thread Andy McKay
On 2010-04-21, at 10:40 PM, Joe Goldthwaite wrote: > The guy mentioned that they originally started with a > different company using Ruby on Rails. He said that after the other company > got bogged down and wasn't making progress, he switched to the new company > that we're considering. He said

Re: URL dispatch with name argument throws syntax error

2010-04-22 Thread kmtracey
On Thu, Apr 22, 2010 at 11:34 AM, vjimw wrote: > Adding the name argument seems pretty straight forward, but I must be > doing something wrong. I am writing tests and have the URLs named > seems like the easiest way to look them up. > > My URL dispatch file was working before I added any of the n

Re: Retrieving an ID from a posted form

2010-04-22 Thread Nick
works like a charm, thanks Ian. On Apr 22, 10:02 am, Ian Lewis wrote: > Nick, > > Because you won't get an id for your newly created object before you > save it you'll need to send the email after you save the form. I'm > assuming that ArtistFormFinal is a ModelForm but you can get the id > using

URL dispatch with name argument throws syntax error

2010-04-22 Thread vjimw
Adding the name argument seems pretty straight forward, but I must be doing something wrong. I am writing tests and have the URLs named seems like the easiest way to look them up. My URL dispatch file was working before I added any of the name='this- name' arguments. Here is my file: from django

Re: Display first name and last name for user in dropdown lists in the Admin

2010-04-22 Thread brad
This thread has prompted me to blog about my solution to this problem. Here's how I've done this: 1) I created a UserModelChoiceField(ModelChoiceField) class whose label_from_instance method returns a string containing the User's full name (and username in parenthesis) 2) Create a ModelForm for t

Re: Retrieving an ID from a posted form

2010-04-22 Thread Ian Lewis
Nick, Because you won't get an id for your newly created object before you save it you'll need to send the email after you save the form. I'm assuming that ArtistFormFinal is a ModelForm but you can get the id using something like the following: myobj = form.save() send_mail(subject, "Your id is

Re: danjgo authentification

2010-04-22 Thread Benedict Verheyen
On 22/04/2010 15:46, Shawn Milochik wrote: Everything you need is here: http://docs.djangoproject.com/en/1.1/topics/auth/#authentication-in-web-requests This will tell you exactly, in detail, how to create your own login page to tie into the built-in authentication.

Re: Increase django page timeout

2010-04-22 Thread Javier Guerra Giraldez
On Thu, Apr 22, 2010 at 9:26 AM, Florin wrote: > Maybe a solution would be to put more filters so the data won't be > that large and so it would eventually generate the pdf. no, the solution is to put all the heavy work _out_ of the request/response cycle. just add the parameters (not the data)

Retrieving an ID from a posted form

2010-04-22 Thread Nick
I am working on a form process with multiple levels of submission. The first is a front facing form with a general set of questions that are to be followed up by someone after the form is submitted (the form submits and entry to the DB). To cut down on the amount of hunting that those who will be

Re: Display first name and last name for user in dropdown lists in the Admin

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 3:13 PM, derek wrote: > Thanks Tom > > I had thought I understood these concepts, but cannot see how to apply > them to the User specifically.  That is why specific examples of code > always help (apart from the ones in the manual). > > What would the code for "Register a d

Re: Working for a startup.

2010-04-22 Thread Kenneth Loafman
Joe Goldthwaite wrote: > I’ve been working for a startup for a month or so. The main guy is > enthusiastic about technology. He probably runs more applications on > his computer than anyone I know. He also switched from a Windows > background to a Mac notebook a year ago. He doesn’t know a lot

Re: Increase django page timeout

2010-04-22 Thread Florin
It's some statistical data collected about the users of my application. (Anyway good joke :) Even with better hardware it's the same. I installed the app on one of company's ubuntu servers but it also gives "Read Timeout" error... Maybe a solution would be to put more filters so the data won't be t

Looking to hire Django developers in Pleasantville NY

2010-04-22 Thread Steve Bywater
Hopefully it's ok to post job openings here... The team that brought you HudsonValleyHelpWanted.com and 300+ other job boards around the US and Canada and Cupid.com (and then sold it all... yes those were options you wished you were in on) has started a new project: 10LocalCoupons.com! We're look

Re: Increase django page timeout

2010-04-22 Thread ge...@aquarianhouse.com
are you collect the data from the telephone book? :) kidding, the only right way is to render it in the background. i dont't think you can render it faster, only with better hardware. On Apr 22, 4:10 pm, Florin wrote: > It takes about 10 sec to generate the data, but when calling > pisaDocument

Re: How to raise integrity error in save method of model

2010-04-22 Thread ge...@aquarianhouse.com
In this case it's the wrong place, you have to put the logic into the form class MyForm(models.ModelForm): model = mdlcountry def country_name(self): #verify here and give an error On Apr 22, 3:51 pm, Tom Evans wrote: > On Thu, Apr 22, 2010 at 2:45 PM, Radhikavk wrote: > > > i hav

Re: Display first name and last name for user in dropdown lists in the Admin

2010-04-22 Thread derek
On Apr 22, 3:03 pm, Tom Evans wrote: > On Thu, Apr 22, 2010 at 1:52 PM, derek wrote: > > This thread: > >http://groups.google.com/group/django-users/browse_thread/thread/b303... > > ends with the comment that "whatever string (actually unicode) > > representation you want as constructed from the

Re: Increase django page timeout

2010-04-22 Thread Florin
It takes about 10 sec to generate the data, but when calling pisaDocument with the generated data it hangs and after a while it gives timeout. On Apr 22, 4:59 pm, "ge...@aquarianhouse.com" wrote: > we say the whole thing takes 60 sec., how many sec. does it take to > collect and how many to ren

Re: Working for a startup.

2010-04-22 Thread Nick Arnett
On Thu, Apr 22, 2010 at 6:45 AM, thanos wrote: > > > > Finally just recently SEC announced that they might require regulatory > files to be submitted in Python and not in legal English. > Their rational is that Python is less ambigious and the English and > more clean, readable and structured tha

Re: Increase django page timeout

2010-04-22 Thread ge...@aquarianhouse.com
we say the whole thing takes 60 sec., how many sec. does it take to collect and how many to render? On Apr 22, 3:54 pm, Florin wrote: > The data is collected quickly. I generate a html with pagination to > preview the results. > If I trace the steps, I can see that the process hangs after the dat

Re: Working for a startup.

2010-04-22 Thread Brendan Smith
whoa... that's some really interesting stuff right there... thanks for that insight Thanos On Thu, Apr 22, 2010 at 9:45 AM, thanos wrote: > Until 1998 NYSE only allowed applications developed in C++ on their > trading floor. Both the client and server side technology was HP Unix. > They switch

Re: Increase django page timeout

2010-04-22 Thread Florin
The data is collected quickly. I generate a html with pagination to preview the results. If I trace the steps, I can see that the process hangs after the data is collected, at the line that calls the pisa.pisaDocument method to generate the pdf and write the generated bits in a buffer, which should

Re: How to raise integrity error in save method of model

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 2:45 PM, Radhikavk wrote: > > i have defined the country field unique in database but when i try to insert > duplicate entry it throws an error , to handle that error i m asking In your view: try: instance.save() except IntegrityError, e: return HttpResponse("I'm sorr

Re: danjgo authentification

2010-04-22 Thread Shawn Milochik
Everything you need is here: http://docs.djangoproject.com/en/1.1/topics/auth/#authentication-in-web-requests This will tell you exactly, in detail, how to create your own login page to tie into the built-in authentication. Also, (sorry, couldn't resist), it's spelled "authentication." Shawn

Re: Working for a startup.

2010-04-22 Thread thanos
Until 1998 NYSE only allowed applications developed in C++ on their trading floor. Both the client and server side technology was HP Unix. They switched in around 2004 to Linux. They use a custom built database and messaging system. In 1998 we launched a new trading system based on Python. It did n

Re: How to raise integrity error in save method of model

2010-04-22 Thread Radhikavk
i have defined the country field unique in database but when i try to insert duplicate entry it throws an error , to handle that error i m asking -- View this message in context: http://old.nabble.com/How-to-raise-integrity-error-in-save-method-of-model-tp28328713p28329111.html Sent from the dja

Re: fastcgi path problems

2010-04-22 Thread Francis Gulotta
Just to update this problem a little more, I've opened a question on serverfault with some additional information which I'll include here. http://serverfault.com/questions/134863/nginx-fastcgi-problems-with-django My manage.py fastcgi command. > python manage.py runfcgi method=threaded host=127.

Re: Good examples or references

2010-04-22 Thread Shawn Milochik
Is there any reason you specifically want references external to the official Django documentation? I think you will find that the official documentation is by far the best. Also, there are a bunch of re-usable apps shipped with Django that have working examples of the functionality you'll need.

Re: How to raise integrity error in save method of model

2010-04-22 Thread Radhikavk
def save(self, *args, **kw): if not mdlcountry.objects.filter(country_name=self.country_name).exists(): super(mdlroomtypes, self).save(*args, **kw) else: #do something or do nothing pass Here in else part how will i set error message that should display to the us

Re: coltrane sample at "practical django projects" book has a templates error

2010-04-22 Thread Alexandre González
I was searching for the error in google and I solve it, I don't know if I solve it at good way, but... It works :p from django.conf.urls.defaults import * from coltrane.models import Category urlpatterns = patterns('', (r'^$', 'django.views.generic.list_detail.object_list', { 'queryset': Cate

Re: How to raise integrity error in save method of model

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 2:22 PM, ge...@aquarianhouse.com wrote: > def save(self, *args, **kw): >    if not > mdlcountry.objects.filter(country_name=self.country_name).exists(): >        super(mdlroomtypes, self).save(*args, **kw) >    else: >        #do something or do nothing >        pass > Er,

Re: Increase django page timeout

2010-04-22 Thread ge...@aquarianhouse.com
The question is: where is the bottleneck, to collect the data or to generate the pdf??? On Apr 22, 2:54 pm, Florin wrote: > Thanks for the tips. > > Is there any alternative to pisa that can process large amount of data > to generate PDF files? > > On Apr 22, 3:14 pm, Javier Guerra Giraldez wrot

Re: How to raise integrity error in save method of model

2010-04-22 Thread ge...@aquarianhouse.com
def save(self, *args, **kw): if not mdlcountry.objects.filter(country_name=self.country_name).exists(): super(mdlroomtypes, self).save(*args, **kw) else: #do something or do nothing pass On Apr 22, 3:14 pm, Radhikavk wrote: > Model > > class mdlcountry(models.Model

Re: coltrane sample at "practical django projects" book has a templates error

2010-04-22 Thread Rodrigo
could you post your urls.py ? On Apr 21, 6:51 pm, xota wrote: > Or I do something bad, I was searching in google and some pepople have > same/similar error without replies, can you help me, this is my error: > > Caught an exception while rendering: Reverse for > 'coltrane_category_list' with argu

How to raise integrity error in save method of model

2010-04-22 Thread Radhikavk
Model class mdlcountry(models.Model): class Meta: verbose_name_plural = "Countries" country_id = models.AutoField(primary_key=True,null=False,blank=False) country_name = models.CharField(max_length=100,unique=True,null=False,blank=False,verbose_name='Country Name')

Re: Display first name and last name for user in dropdown lists in the Admin

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 1:52 PM, derek wrote: > This thread: > http://groups.google.com/group/django-users/browse_thread/thread/b303c1ce3e724407/d99ee36e031d7393 > ends with the comment that "whatever string (actually unicode) > representation you want as constructed from the object attributes whe

Re: Increase django page timeout

2010-04-22 Thread Florin
Thanks for the tips. Is there any alternative to pisa that can process large amount of data to generate PDF files? On Apr 22, 3:14 pm, Javier Guerra Giraldez wrote: > On Thu, Apr 22, 2010 at 6:25 AM, ge...@aquarianhouse.com > > wrote: > > I your case i would put this task in queue or kind of a

Display first name and last name for user in dropdown lists in the Admin

2010-04-22 Thread derek
This thread: http://groups.google.com/group/django-users/browse_thread/thread/b303c1ce3e724407/d99ee36e031d7393 ends with the comment that "whatever string (actually unicode) representation you want as constructed from the object attributes when you bring an object via foreign key." This is certai

Re: Increase django page timeout

2010-04-22 Thread Javier Guerra Giraldez
On Thu, Apr 22, 2010 at 6:25 AM, ge...@aquarianhouse.com wrote: > I your case i would put this task in queue or kind of a back process. +1 Queues are the way to go. in this case, i guess a "Ghetho Queue" would be enough (just a DB table of 'pending tasks', a cron script that processes them and

Re: Increase django page timeout

2010-04-22 Thread Florin
The desired functionality is for the user to choose a filter and based on the results (Progress.objects.filter(...) to generate a pdf which will be downloaded. With a few hundreds results it works just fine, but when there are thousands of results it gives timeout. Thanks! On Apr 22, 2:25 pm, "g

Re: Working for a startup.

2010-04-22 Thread Dotan Cohen
On 22 April 2010 09:48, Wander Nauta wrote: > I believe the article you were looking for is this one: > > http://linux.slashdot.org/story/09/10/06/1742203/London-Stock-Exchange-Rejects-NET-For-Open-Source > > It's about the London Stock Exchange, who ditched .NET for something > Linux-based. > Th

Re: Increase django page timeout

2010-04-22 Thread Florin
My app is hosted on apache using mod_python. On Apr 22, 2:30 pm, Tom Evans wrote: > On Thu, Apr 22, 2010 at 12:19 PM, Florin wrote: > > Hi! > > > I use pisa to generate large pdf files, but it gives opage timeout > > when generating. > > It waits a long time at the following line: > > pdf = pi

Re: Good examples or references

2010-04-22 Thread Alexey Kostyuk
On Wed, 2010-04-21 at 23:31 -0700, andy saksena wrote: > Hi all, > I'm a newbie in Django and was wondering if there are any good > examples/referneces of Django driven websites. Also if there is a link > to make a website using django tutorial apart from the django- > documentation It will be real

Re: Increase django page timeout

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 12:19 PM, Florin wrote: > Hi! > > I use pisa to generate large pdf files, but it gives opage timeout > when generating. > It waits a long time at the following line: > pdf = pisa.pisaDocument(StringIO(html.encode("UTF-8")), dest=buffer, > link_callback=fetch_resources) > >

Re: Increase django page timeout

2010-04-22 Thread ge...@aquarianhouse.com
I think that would be a wrong approach. I your case i would put this task in queue or kind of a back process. For sure not on demand. On Apr 22, 1:19 pm, Florin wrote: > Hi! > > I use pisa to generate large pdf files, but it gives opage timeout > when generating. > It waits a long time at the f

Increase django page timeout

2010-04-22 Thread Florin
Hi! I use pisa to generate large pdf files, but it gives opage timeout when generating. It waits a long time at the following line: pdf = pisa.pisaDocument(StringIO(html.encode("UTF-8")), dest=buffer, link_callback=fetch_resources) As a workaround - is it possible to increase the page timeout to

Re: Working for a startup.

2010-04-22 Thread Wander Nauta
I believe the article you were looking for is this one: http://linux.slashdot.org/story/09/10/06/1742203/London-Stock-Exchange-Rejects-NET-For-Open-Source It's about the London Stock Exchange, who ditched .NET for something Linux-based. Wander On Apr 22, 7:40 am, "Joe Goldthwaite" wrote: > I'v

Good examples or references

2010-04-22 Thread andy saksena
Hi all, I'm a newbie in Django and was wondering if there are any good examples/referneces of Django driven websites. Also if there is a link to make a website using django tutorial apart from the django- documentation It will be really good to know. thanks -- You received this message because y

danjgo authentification

2010-04-22 Thread djangotom
Hello, Being brand new to Django I'm trying to write an authentification page. I used the example from the Django book and tried it myself. Unfortunatly Iit does not work. -- My urls.py from django.conf.urls.defa

Re: django signal and instace..... HELP!!

2010-04-22 Thread Allen Machary
The MeasuredValue gets saved after the sample is saved, Is there another way to still use the sample instance (or force it to save ), Cause the function ( to send msg ) to should be sent only when the sample is created.. Any help will be appriciated. thnx greatlemer -- You received this mes

Dynamic Model and ModelAdmin based on tables in db

2010-04-22 Thread Massimiliano della Rovere
An external process creates tables whose names follow the pattern "collector_XYZ"; all the tables will have the very same structure. For each table I need to create a matching django.db.models.Model and django.admin.models.ModelAdmin, dynamically, because over time new tables will be created and I

SCORM(Sharable Content Object Reference Model) Compliant for Django?

2010-04-22 Thread Zeal
Hi, All, Does anyone has the experience on SCORM(Sharable Content Object Reference Model) support with Django? I want to let my django application having SCORM support for learning management app. However, after researching on internet, there is no any post for such topic. I know that 'moodle' is

Re: django bitwise operator

2010-04-22 Thread Daniel Roseman
On Apr 22, 6:10 am, CCC wrote: > In django's modelManager > I use oracle do bitwise operator,like: > > select * from MultiRoom m where bitand(m.groupidx,tem ) <> 0 > > and Now I want to change it to  use django's orm ? > anyone know how to write? > Thanks Use 'extra' : MultiRoom.objects.extr

Re: django bitwise operator

2010-04-22 Thread Tom Evans
On Thu, Apr 22, 2010 at 6:10 AM, CCC wrote: > In django's modelManager > I use oracle do bitwise operator,like: > > select * from MultiRoom m where bitand(m.groupidx,tem ) <> 0 > > and Now I want to change it to  use django's orm ? > anyone know how to write? > Thanks > http://docs.djangoproject.

Re: Working for a startup.

2010-04-22 Thread Sam Lai
On 22 April 2010 15:40, Joe Goldthwaite wrote: > I’d like examples of large systems written in Django or other open source > frameworks.  I’d also like stories about companies who tried .net switched > over to open source.  It seems like there was a big Microsoft project on > some stock exchange p

Re: How to set the sucess message after inserting values to db in django admin site

2010-04-22 Thread Daniel Roseman
On Apr 22, 7:09 am, Radhikavk wrote: > And i tried to enable the messaging module in django but in django.contrib > messages folder is missing > my django version is 1.1 > > Thaks > Radhika If you're using 1.1, you really should use the 1.1 documentation. http://docs.djangoproject.com/en/1.1/top

Re: Working for a startup.

2010-04-22 Thread Jesaja Everling
On the Django homepage, there are a few big sites mentioned that use Django. lawrence.com washingtonpost.com EveryBlock LJWorld.com Tabblo Toronto Life A lot more can probably be found on djangosites.org. I also would tell him that Google endorses Django, for example by shipping it with App Engin