Re: basic-profile install error

2009-04-22 Thread Denhuang
The project setting files are here /home/username/webapps/sms/sms/ settings.py On Apr 21, 10:13 pm, zayatzz wrote: > Shouldnt there be another sms in your pythonpath since there are 2 in > file path? > > Which folder holds your project settings? > /home/username/webapps/sms > or > /home/username

Re: customization of the form

2009-04-22 Thread Konstantin S
On Apr 22, 9:29 am, zayatzz wrote: > I wish i could see the html output of your program. But you have to > use either divs or ul&li elemnts to wrap that list and make it look > nice in template. > > But i think the problem is that your widget output is just a list of > checkboxes, that you cant i

date_list in date_based.archive_index and date_based.archive_year but why not in archive_list and archve_month?

2009-04-22 Thread Bartek SQ9MEV
Hi Why there are not extra_centext date_list in date_based views except archive_index and archive_year? I've found this: http://code.djangoproject.com/ticket/3274 but this patch isn't applied in Django-1.0.2-final.tar.gz? What is the best way to have date_list in archive_list and archive_month

Re: installing a development environment on a 1and1.com shared hosting.

2009-04-22 Thread Didine
Hello Graham, Thanks for your answer. It seems that the problem occurred on a 1and1 VPS server. I just have a shared hosting plan with an ssh access, but I don't think that installing apache modules will be allowed. Anyway, I'll try to get in touch with their support team to see if they can help.

Re: customization of the form

2009-04-22 Thread Konstantin S
On Apr 22, 11:33 am, Konstantin S wrote: > I can't iterate through individual and mark them in some way or > split this single into two lists. Just to be clear: I can't do it because it's generated as a single not iterable entity. --~--~-~--~~~---~--~~ You recei

How to get request.user inside a model method?

2009-04-22 Thread Bastien
The last thread about that is quite old, I was wondering if there is any new way to do that? I wrote a method in a model that requires the current user and I use this method in a template so I guess I can't pass any argument, can I? thanks, Bastien --~--~-~--~~~---~--

Re: Does 1and1 Hosting provide Django prerequisites? [was: installing a development environment on a 1and1.com shared hosting.]

2009-04-22 Thread Didine
Hello, I'm not assuming anything ! I just ask a question for those who already tried to install it. I already had an answer. -- Didine Wayde. On Wed, Apr 22, 2009 at 12:45 AM, Phil Mocek < pmocek-list-django-us...@mocek.org> wrote: > > On Tue, Apr 21, 2009 at 11:16:06PM +0200, Didine wrote: >

Re: Converting from local DST to UTC

2009-04-22 Thread vicky
On Apr 15, 10:04 pm, Jamie wrote: > On Apr 14, 9:34 pm, Brian Neal wrote: > > > This is how I am doing it (I'm also integrating with Google Calendar): > > > tz = pytz.timezone(tz_name)  # create timezone > > local = tz.localize(d)  # make naive datetime localized > > zulu = local.astimezone(F

Re: Does 1and1 Hosting provide Django prerequisites? [was: installing a development environment on a 1and1.com shared hosting.]

2009-04-22 Thread tom
There is a good page about django hosting in the docs: http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts On Apr 22, 2:17 am, CLIFFORD ILKAY wrote: > On 21/04/09 06:52 PM, online service wrote: > > > I have problem to install mod_python to 1and1 dedicated server (Apache > > Portable Ru

Re: customization of the form

2009-04-22 Thread Tom Evans
On Tue, 2009-04-21 at 21:20 +0400, Konstantin S wrote: > Hello! > > In my model I have dynamically generated checkbox fields that look like this: > > boxes = forms.ModelMultipleChoiceField(queryset=Box.objects.all(), > widget=forms.CheckboxSelectMultiple) > > The problem is that in the web-inte

Add events to user calendar software

2009-04-22 Thread vicky
Hi, I am new in django. I need to update events from my website to outlook, Google, yahoo calendars. I have implemented some code from vObject which download ".ics" file which is OK for outlook. I don't know how to update event in Google and yahoo calendar. Please help me. --~--~

Add events to user calendar software

2009-04-22 Thread vicky
Hi, I am new in django. I need to update events from my website to outlook, Google, yahoo calendars. I have implemented some code from vObject which download ".ics" file which is OK for outlook. I don't know how to update event in Google and yahoo calendar. I need functionality like shown in http

Re: Getting Key Error at /search/

2009-04-22 Thread srini
Hi, Matías Costa well in the document it says either we can use sorl or whoosh, i did not heard about pysorl anywhere in the document so, if pysorl is the one which is needed, can you please tell me how to install that pysorl search engine into my haystack-search. On Apr 21, 6:40 pm, Matías C

Re: basic-profile install error

2009-04-22 Thread Zain Memon
Does the file /home/username/webapps/sms/sms/basic/__init__.py exist? If not, create it. That file is required for Python to treat the directory as containing packages. Zain On Wed, Apr 22, 2009 at 12:23 AM, Denhuang wrote: > > The project setting files are here /home/username/webapps/sms/sms/ >

Re: Getting Key Error at /search/

2009-04-22 Thread Matías Costa
On Wed, Apr 22, 2009 at 12:12 PM, srini wrote: > > Hi, > Matías Costa > > well in the document it says either we can use sorl or whoosh, > > i did not heard about pysorl anywhere in the document > > so, if pysorl is the one which is needed, can you please tell me > > how to install that pysorl se

Re: Getting Key Error at /search/

2009-04-22 Thread Matías Costa
2009/4/22 Matías Costa > On Wed, Apr 22, 2009 at 12:12 PM, srini wrote: > >> >> Hi, >> Matías Costa >> >> well in the document it says either we can use sorl or whoosh, >> >> i did not heard about pysorl anywhere in the document >> >> so, if pysorl is the one which is needed, can you please tell

Cookie based Messages

2009-04-22 Thread Thomas Guettler
Hi, I was running a session based middleware based on patches on #4604, but discovered that the session column is a hot spot in the database. Some users work quick and/or double click where they should not. I got deadlocks from postgres where several processes tried to save the session for a si

Copied project to another computer, doesn't work!

2009-04-22 Thread 83nini
Hi, I'm working on the django tutorial, and i'm at the phase of creating an admin site, it worked very nicely yesterday, but today the boss gave me a new computer so i had to move everything from the old computer to the new one. everything is working perfectly except for the admin site! when i tr

Re: customization of the form

2009-04-22 Thread zayatzz
This css should do it: ul {list-style-image:none;list-style-position:outside;list-style- type:none; float:left} ul li {width:50%;display:block;float:left} What this does, is that it gives every list element 50% of available width (if you want 3 columns then put it to 30%), display block is actua

Re: customization of the form

2009-04-22 Thread Konstantin S
On Apr 22, 1:51 pm, Tom Evans wrote: > On Tue, 2009-04-21 at 21:20 +0400, Konstantin S wrote: > > Hello! > > > In my model I have dynamically generated checkbox fields that look like > > this: > > > boxes = forms.ModelMultipleChoiceField(queryset=Box.objects.all(), > > widget=forms.CheckboxSelec

how to make the first row in the table (table header) bold

2009-04-22 Thread Nalini
{% autopaginate rows 5%} {% for row in rows %} {% for value in row %} val=this.rowindex {% if (val == 0) %} {{ value }} {% else %} >{{ value }} {% endif %} {% endfor %}

Re: how to make the first row in the table (table header) bold

2009-04-22 Thread zayatzz
http://www.webdesignfromscratch.com/tabular-list.php http://www.smashingmagazine.com/2006/12/29/css-based-tables-modern-solutions/ Alan. On Apr 22, 2:43 pm, Nalini wrote: >  {% autopaginate rows 5%} > >   {% for row in rows %} >   >         {% for value in row %} >             val=this.rowinde

how to make the first row in the table (table header) bold

2009-04-22 Thread Nalini
> {% autopaginate rows 5%} > > {% for row in rows %} > > {% for value in row %} > val=this.rowindex > {% if (val == 0) %} >{{ value }} > > {% else %} > > >{{ value }} > {% end

Re: customization of the form

2009-04-22 Thread Konstantin S
On Apr 22, 3:31 pm, zayatzz wrote: > This css should do it: > > ul {list-style-image:none;list-style-position:outside;list-style- > type:none; float:left} > ul li {width:50%;display:block;float:left} > > What this does, is that it gives every list element 50% of available > width (if you want 3 c

Re: Copied project to another computer, doesn't work!

2009-04-22 Thread 83nini
I made it work, problem was that i had forgotten to syncronize the database again stupid ha! but it can slip anybody's mind On 22 Apr, 13:25, 83nini <83n...@gmail.com> wrote: > Hi, > > I'm working on the django tutorial, and i'm at the phase of creating > an admin site, it worked very nicely yest

Re: how to make the first row in the table (table header) bold

2009-04-22 Thread zayatzz
You can remove this if at all and use css based formatting if you want to. but otherwise : {% ifequal athlete.name coach.name %} ... {% endifequal %} Taken from http://docs.djangoproject.com/en/dev/topics/templates/ Alan. On Apr 22, 2:48 pm, Nalini wrote: > >  {% autopaginate rows 5%} >

Re: django.views.generic.date_based.object_detail called through a custom function - simple issue

2009-04-22 Thread SoCow
bump! On Apr 20, 7:45 pm, SoCow wrote: > Hi all, i'm trying to calling a genric view from a simple custom view > (why? see > thishttp://groups.google.com/group/django-users/browse_thread/thread/b569...) > but i'm running into trouble when feeding the > django.views.generic.date_based.object_det

Re: customization of the form

2009-04-22 Thread Tom Evans
On Wed, 2009-04-22 at 04:42 -0700, Konstantin S wrote: > On Apr 22, 1:51 pm, Tom Evans wrote: > > On Tue, 2009-04-21 at 21:20 +0400, Konstantin S wrote: > > > Hello! > > > > > In my model I have dynamically generated checkbox fields that look like > > > this: > > > > > boxes = forms.ModelMultipl

Re: django.views.generic.date_based.object_detail called through a custom function - simple issue

2009-04-22 Thread Sieker Adi Jörg
Hi, On 22.04.2009, at 14:13, SoCow wrote: > > bump! di dumpty! > > On Apr 20, 7:45 pm, SoCow wrote: >> Hi all, i'm trying to calling a genric view from a simple custom view >> (why? see >> thishttp://groups.google.com/group/django-users/browse_thread/thread/b569...) >> but i'm running into tr

Geobase Isoscale wants to chat

2009-04-22 Thread Geobase Isoscale
--- Geobase Isoscale wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-428ee0705a-471f5f852a-c6658ab342c5743b You'll need to

django, python :: reduce() of empty sequence with no initial value

2009-04-22 Thread tyrrrr
Hi I am trying to add a search view to an application I wrote in django but my EntryManager() seems to be getting hung up on the last line of code when django tries to call the url of the search. This EntryManager() (models.py) is excellent for performing searches in the django shell ($ python ma

forms in django1.0.x

2009-04-22 Thread vishak
Hi all Can anyone tell what exactly happens in 'forms' if we port it from Django0.97 to Django1.0.x --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

Re: Webpy vs Django

2009-04-22 Thread Nick Lo
> I don't want to drag the meta-conversation out but I do want to say > that when I had half-a-dozen frameworks on my shortlist (before > choosing Django) either of those two responses would have been > useless. That's why I'm taking this tact now. There are better ways > of approaching a

Importing from many apps causing import conflicts?

2009-04-22 Thread robin
I have an unexplainable problem involving importing from 3 apps and one python script. Thank you to those who took the time to understand this problem. Sorry I cannot explain this problem, I tried to make it as simple as possible below. 'acc' has many 'numbers' which has a one-to-one relationshi

How to automatic backup Postgres on Windows?

2009-04-22 Thread Zeal
Hi All, I got following code in django snippets, but I found that popen2.Popen4 () is not available for Windows, then I changed to popen2.popen4(cmd) to initiate the backup process, however, popen4(not Popen4) do not have tochild method, does anyone know how to solve it in windows platform, thank

Re: date_list in date_based.archive_index and date_based.archive_year but why not in archive_list and archve_month?

2009-04-22 Thread Karen Tracey
2009/4/22 Bartek SQ9MEV > > Hi > Why there are not extra_centext date_list in date_based views except > archive_index and archive_year? > > I've found this: > http://code.djangoproject.com/ticket/3274 > but this patch isn't applied in Django-1.0.2-final.tar.gz? > > What is the best way to have da

Re: Importing from many apps causing import conflicts?

2009-04-22 Thread Christian Berg
Hi! Your Posting says: name=models.IntegerField() Thats an Integer field thats can hold numbers like 1 or 98722 But then you do this: Group.objects.filter(name='blah') 'blah' is an Character-String and not an Number. I belive that the name should contains something with letters so you s

Re: How to automatic backup Postgres on Windows?

2009-04-22 Thread Zeal
Sorry, I missed some important part of my code, try: pipe = popen2.Popen4('pg_dump %s > %s' % (' '.join(args), outfile)) if self.passwd: pipe.tochild.write('%s\n' % self.passwd) #this method is only applicable for unix like system

Re: Question regarding django.contrib.comments

2009-04-22 Thread pytune
i'm looking for the same solution --~--~-~--~~~---~--~~ 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, send email to

Re: Converting from local DST to UTC

2009-04-22 Thread Karen Tracey
On Wed, Apr 22, 2009 at 2:42 AM, vicky wrote: > > Hi, > > I am new in django. I need to update events from my website to > outlook, Google, yahoo calendars. I have implemented some code from > vObject which download ".ics" file which is OK for outlook. I don't > know how to update event in Google

Re: How to get request.user inside a model method?

2009-04-22 Thread Karen Tracey
On Wed, Apr 22, 2009 at 5:13 AM, Bastien wrote: > > The last thread about that is quite old, I was wondering if there is > any new way to do that? > Likely nothing has changed. It's still the case that models are independent of requests, so trying to tightly couple them can lead to problems. W

Re: How to get request.user inside a model method?

2009-04-22 Thread tyrrrr
Please clarify what you mean exactly. You must enable users in your views if you want access to them within your templates. from http://docs.djangoproject.com/en/dev/topics/auth/ : if request.user.is_authenticated(): # Do something for authenticated users. else: # Do something for anonymo

Re: Add events to user calendar software

2009-04-22 Thread Karen Tracey
On Wed, Apr 22, 2009 at 6:06 AM, vicky wrote: > > Hi, > > I am new in django. I need to update events from my website to > outlook, Google, yahoo calendars. I have implemented some code from > vObject which download ".ics" file which is OK for outlook. I don't > know how to update event in Google

Re: Changing MEDIA_ROOT while running tests (as in ./manage.py test)

2009-04-22 Thread Phil Mocek
On Tue, Apr 21, 2009 at 11:29:38PM -0700, J. Pablo Fern?ndez wrote: > I need to change MEDIA_ROOT while running tests, so that the files > pointed to in fixtures in ImageFields can be found. [...] Any ideas > how can I achieve this? I assume you've already searched the Web with terms like "django

Re: django, python :: reduce() of empty sequence with no initial value

2009-04-22 Thread tyrrrr
this is the error: reduce() of empty sequence with no initial value Request Method: GET Request URL:http://dsf/search/ Exception Type: TypeError Exception Value:reduce() of empty sequence with no initial value Exception Location: /dsfff

Problem with GenericRelation

2009-04-22 Thread eli
Hi, I have a problem with GenericRelation ... My code: class Comment(models.Model): text = models.TextField() content_type = models.ForeignKey(ContentType, blank=True, null=True) object_id = models.PositiveIntegerField(blank=True, null=True) content_object = generic.GenericForei

Re: How to automatic backup Postgres on Windows?

2009-04-22 Thread Christian Berg
Do i understand correctly... ...you want to create a pgsql dump "on the fly" from an djano site? IMHO not a good idea... what happens if the browser times out? Maybe you can try to trigger a backup in the background, or do backups with an scheduler... anways, have you tried this on? http://docs.p

Re: Webpy vs Django

2009-04-22 Thread Phil Mocek
On Wed, Apr 22, 2009 at 11:25:42PM +1000, Nick Lo wrote: > I thought the initial reply/ies to a perfectly legitimate question was > unnecessarily curt and wanted to reply then, but not having any web.py > experience, I didn't have much to add. > > There was nothing to indicate that the original p

Re: django, python :: reduce() of empty sequence with no initial value

2009-04-22 Thread Karen Tracey
On Wed, Apr 22, 2009 at 10:48 AM, ty wrote: > > this is the error: > > reduce() of empty sequence with no initial value > > Request Method: GET > Request URL:http://dsf/search/ > Exception Type: TypeError > Exception Value:reduce() of empty sequ

Re: Problem with GenericRelation

2009-04-22 Thread Alex Gaynor
On Wed, Apr 22, 2009 at 10:49 AM, eli wrote: > > Hi, > > I have a problem with GenericRelation ... > > My code: > > class Comment(models.Model): >text = models.TextField() >content_type = models.ForeignKey(ContentType, blank=True, > null=True) >object_id = models.PositiveIntegerField(

Re: django, python :: reduce() of empty sequence with no initial value

2009-04-22 Thread tyrrrr
Yes. I realise that this is exactly the problem. Do you have some sort of suggestion as to how one might do this? My experience with this manager is calling it from the python shell. I'm not exactly sure how I might do this. Something like if q for term in terms: q_object

Re: don't know how to use http://docs.djangoproject.com/en/dev/howto/initial-data/

2009-04-22 Thread bconnors
I get : No fixtures found when I do python manage.py loaddata bob pubu...@pubuntu:~/django-trunk/django/bin/mysite$ cat bob [ { "model": "myapp.person", "pk" : 1, "fields": { "first_name": "John", "last_name": "Lenon", } ] I copied my bob file into the fixtures directory. pubu...@pubuntu:~/djan

Re: forms in django1.0.x

2009-04-22 Thread Karen Tracey
On Wed, Apr 22, 2009 at 9:22 AM, vishak wrote: > > Hi all > > Can anyone tell what exactly happens in 'forms' if we port it from > Django0.97 to Django1.0.x > Django "0.97" is not a released version -- if you have code reporting that version you have some SVN checkout from somewhere in a large

Re: django, python :: reduce() of empty sequence with no initial value

2009-04-22 Thread tyrrrr
I might add that it gives me exactly the same error if I try to fetch a url with a query in it, for example: asdjhakshd/search/?=purple asdjhakshd/search/?=monkey_dishwasher asdjhakshd/search/?=purple+monkey+dishwasher On 22 Apr, 11:00, ty wrote: > Yes. I realise that this is exactly the pro

Python on Windows: how to pass a string of text to a PostgreSQL utility? [was: How to automatic backup Postgres on Windows?]

2009-04-22 Thread Phil Mocek
On Wed, Apr 22, 2009 at 07:10:41AM -0700, Zeal wrote: > as [shown in the] above-posted [Python snippet], for windows system, > how can I input postgresql's password by using some method like > tochild[?] This question is not at all related to Django. You might find useful information by searchin

Re: Problem with GenericRelation

2009-04-22 Thread eli
Thank You Alex. This patch will be available in Django 1.1 ? On 22 Kwi, 16:56, Alex Gaynor wrote: > On Wed, Apr 22, 2009 at 10:49 AM, eli wrote: > > > Hi, > > > I have a problem with GenericRelation ... > > > My code: > > > class Comment(models.Model): > >    text = models.TextField() > >    co

Re: Problem with GenericRelation

2009-04-22 Thread Alex Gaynor
On Wed, Apr 22, 2009 at 11:07 AM, eli wrote: > > Thank You Alex. This patch will be available in Django 1.1 ? > > On 22 Kwi, 16:56, Alex Gaynor wrote: > > On Wed, Apr 22, 2009 at 10:49 AM, eli wrote: > > > > > Hi, > > > > > I have a problem with GenericRelation ... > > > > > My code: > > > > >

Re: django, python :: reduce() of empty sequence with no initial value

2009-04-22 Thread Karen Tracey
On Wed, Apr 22, 2009 at 11:08 AM, ty wrote: > > I might add that it gives me exactly the same error if I try to fetch > a url with a query in it, for example: > asdjhakshd/search/?=purple > asdjhakshd/search/?=monkey_dishwasher > asdjhakshd/search/?=purple+monkey+dishwasher > Those urls don'

Re: django, python :: reduce() of empty sequence with no initial value

2009-04-22 Thread tyrrrr
Thank you so much! On 22 Apr, 11:25, Karen Tracey wrote: > On Wed, Apr 22, 2009 at 11:08 AM, ty wrote: > > > I might add that it gives me exactly the same error if I try to fetch > > a url with a query in it, for example: > > asdjhakshd/search/?=purple > > asdjhakshd/search/?=monkey_dishwas

annotate over period of time

2009-04-22 Thread Johannes Wilm
Hey, I have a model which monitors the prices of certain items at certain markets daily. precios/models: ... class Prueba(Approvable): mercado = models.ForeignKey(Mercado) producto = models.ForeignKey(Producto) fecha = models.DateField() minimo = models.DecimalFiel

Re: Simple_tag strange behaviour

2009-04-22 Thread Tonne
UPDATE: Thanks Anatoliy for you help. You spotted the problem and it now works as I originally wanted it to. The problem was that I had defined an array at the module level, and then updated the array with results from a queryset. Why this is a problem is that every time the page is refreshed,

Re: annotate over period of time

2009-04-22 Thread Randy Barlow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johannes Wilm wrote: > At first I tried this (using postgresql): > > queryset=PrecioPrueba.objects.filter(producto=producto).filter > (mercado=mercado).filter(fecha__range[start_date,end_date]).extra > (select={'fecha':"date_trunc('"+frecuencia+'",fe

Choices on CharField suppresses non-choice data in admin

2009-04-22 Thread Wyley
Hello all, I'm wondering if the following behavior is a feature, a bug, or a coding error on my part: when I define a model with a CharField that has choices, if I later save an instance of the model with a value for that field which is not one of the choices, the value does not display in the a

Re: annotate over period of time

2009-04-22 Thread Johannes Wilm
well, that's strange, because that part always worked and still works. So this line here, to get the daily values: queryset=PrecioPrueba.objects.filter(producto=producto).filter (mercado=mercado).filter(fecha__range=[start_date,end_date]).values ('fecha','pk','maximo','minimo').order_by('fecha')

Re: annotate over period of time

2009-04-22 Thread Johannes Wilm
I've changed that part now, but the output remains the same. On Apr 22, 5:12 pm, Johannes Wilm wrote: > well, that's strange, because that part always worked and still works. > So this line here, to get the daily values: > > queryset=PrecioPrueba.objects.filter(producto=producto).filter > (merca

Custom unique_together

2009-04-22 Thread srk
Hi! I'd like to create custom validation of my admin model. Actually in should act like unique_together in model but it shouldn't allow duplicate entries with NULL values in some fields. I've already done all necessary checks with exception generation in save() method of the model. The only thin

Re: annotate over period of time

2009-04-22 Thread Alex Gaynor
On Wed, Apr 22, 2009 at 12:22 PM, Johannes Wilm wrote: > > I've changed that part now, but the output remains the same. > > On Apr 22, 5:12 pm, Johannes Wilm wrote: > > well, that's strange, because that part always worked and still works. > > So this line here, to get the daily values: > > > > q

Hierarchy menu system

2009-04-22 Thread tdelam
What's the best way to build a hierarchy menu system? e.g: Page items can have sub-pages and sub-pages can have sub-sub-pages and so on --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: don't know how to use http://docs.djangoproject.com/en/dev/howto/initial-data/

2009-04-22 Thread bconnors
The document at http://docs.djangoproject.com/en/dev/howto/initial-data/ states “If you create a fixture named initial_data.[xml/yaml/json], that fixture will be loaded every time you run syncdb. I copied bob to initial_data.xml And did pubu...@pubuntu:~/django-trunk/django/bin/mysite$ python

Re: Hierarchy menu system

2009-04-22 Thread Alex Gaynor
On Wed, Apr 22, 2009 at 12:50 PM, tdelam wrote: > > What's the best way to build a hierarchy menu system? e.g: Page items > can have sub-pages and sub-pages can have sub-sub-pages and so on > > > If this is meant to be dynamic I would have a model that has a nullable foreignkey to itself. Then y

Re: Question regarding django.contrib.comments

2009-04-22 Thread Eric Abrahamsen
On Apr 18, 2009, at 6:03 PM, SoCow wrote: > > Hi there, > > I've implemented django.contrib.comments and activated the custom > redirect option by including the following line in the comments form: > > value="{{ object.get_absolute_url }}" /> > > This works great for redirecting back to the ori

Django turns?

2009-04-22 Thread Juanjo Conti
Hi! I wonder know if there is a Django app suitable to handle turns as the ones given by a doctor to his pacients. Thanks in advance, -- Juanjo Conti --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Webpy vs Django

2009-04-22 Thread Stef Mientki
Vishwajeet wrote: > Hi All, > > This is not to flame any war; I just wanted to know the key features > to consider among the two web frame works. > > What advantage and disadvantages you have when you decide using any > one of them. > > Thanks for your help > > > > I'm struggling with the same

Subclass AdminSite vs. custom admin views

2009-04-22 Thread MrJogo
Hi, I'm creating a website for an organization that is going to need a complicated web admin interface. The built in one is fine for the site administrators, but there are different staff positions that need access to different models, and sometimes individual fields in those models should be hid

mysite.polls: __init__() got an unexpected keyword argument 'max_length'

2009-04-22 Thread bconnors
I just updated django pubu...@pubuntu:~$ sh -x dj + svn co http://code.djangoproject.com/svn/django/trunk/ django-trunk Udjango-trunk/django/db/backends/oracle/creation.py Udjango-trunk/django/forms/models.py Udjango-trunk/django/contrib/gis/db/models/sql/query.py Udjango-trunk/dj

Re: mysite.polls: __init__() got an unexpected keyword argument 'max_length'

2009-04-22 Thread Daniel Roseman
xOn Apr 22, 7:30 pm, bconnors wrote: > I just updated django > > pubu...@pubuntu:~$ sh -x dj > + svn cohttp://code.djangoproject.com/svn/django/trunk/django-trunk > U    django-trunk/django/db/backends/oracle/creation.py > U    django-trunk/django/forms/models.py > U    django-trunk/django/contri

Re: Webpy vs Django

2009-04-22 Thread Greg Fuller
I flirted with Web2py for a while, but came back to Django. Web2py has some compelling features, including: * ORM supports Google App Engine (with limitations of course). * Distributions can include binary executables for the core pieces (for mac and windows). * Built in server has a console

Re: Webpy vs Django

2009-04-22 Thread Greg Fuller
Oops, webpy not web2py. My bad. On Apr 22, 1:43 pm, Greg Fuller wrote: > I flirted with Web2py for a while, but came back to Django. > > Web2py has some compelling features, including: > > * ORM supports Google App Engine  (with limitations of course). > > * Distributions can include binary exe

Adding a link to edit_inline

2009-04-22 Thread Alfonso
I think this is probably a number of questions in one so here it goes: I need to add a hyperlink to an inline record that will take the user to a 'price history' view that lists the previous prices for that inline product. My question is can I edit edit_inline for that model only and no other?

Re: Webpy vs Django [and how to ask questions the smart way]

2009-04-22 Thread Phil Mocek
On Wed, Apr 22, 2009 at 07:46:48PM +0200, Stef Mientki wrote: > With Python you can do everything, so why do you need Django or > Web2Py at all ? Django and web.py (which is the topic of this thread; I'm not sure where you got Web2Py from) *are* Python. They are Web application frameworks writte

Re: how to redirect to previous page

2009-04-22 Thread Margie
Cool, thanks, I will try that! On Apr 22, 12:19 am, Ayaz Ahmed Khan wrote: > On 22-Apr-09, at 3:06 AM,Margiewrote: > > > Then in my html on the button that does the unlock I have something > > like this: > > > > > I just thought maybe there was django magic that wouldn't require me > > to pass

Re: Changing MEDIA_ROOT while running tests (as in ./manage.py test)

2009-04-22 Thread J . Pablo Fernández
Hello Phil, Thanks for the answer. I already know about how to separate settings between development and production; but that's not what I'm trying to do and I couldn't find how to adapt for separating settings between development and test-time. That is, I haven't found any way to make './ manage

Re: Webpy vs Django [and how to ask questions the smart way]

2009-04-22 Thread Tim Johnson
On Wednesday 22 April 2009, Phil Mocek wrote: <...> > [2]: > [3]: > [4]: > [5]: Great links

Re: Webpy vs Django [and how to ask questions the smart way]

2009-04-22 Thread Greg Fuller
>> I'm not sure where you got Web2Py from Well, it was mentioned in the reply before my first reply, which is why I picked up on it. It's here: http://web2py.com/ webpy is here: http://webpy.org/ On Apr 22, 2:04 pm, Phil Mocek wrote: > On Wed, Apr 22, 2009 at 07:46:48PM +0200, Stef Mientki wro

Re: Changing MEDIA_ROOT while running tests (as in ./manage.py test)

2009-04-22 Thread Phil Mocek
On Wed, Apr 22, 2009 at 12:22:08PM -0700, J. Pablo Fern?ndez wrote: > I already know about how to separate settings between development and > production; but that's not what I'm trying to do and I couldn't find > how to adapt for separating settings between development and > test-time. That is, I

Re: Subclass AdminSite vs. custom admin views

2009-04-22 Thread Daniel Roseman
On Apr 22, 7:30 pm, MrJogo wrote: > Hi, > > I'm creating a website for an organization that is going to need a > complicated web admin interface. The built in one is fine for the site > administrators, but there are different staff positions that need > access to different models, and sometimes i

Re: Django turns?

2009-04-22 Thread Daniel Roseman
On Apr 22, 7:00 pm, Juanjo Conti wrote: > Hi! > > I wonder know if there is a Django app suitable to handle turns as the ones > given by a doctor to his pacients. >  Thanks in advance, > > -- > Juanjo Conti I think in English you mean 'appointments' - but I'm not aware of any app that does that.

Re: Changing MEDIA_ROOT while running tests (as in ./manage.py test)

2009-04-22 Thread Phil Mocek
On Wed, Apr 22, 2009 at 12:46:32PM -0700, Phil Mocek wrote: > [What you've repeatedly asked is] explained in the Django > settings documentation that I referenced earlier, that you > apparently did not read before asking your question or after I > helpfully suggested that you read it. It's also e

Re: Django turns?

2009-04-22 Thread Sergio Durand
Hi, Visit swingtime project: http://code.google.com/p/django-swingtime/ Maybe it's what you are looking for... -- Sergio Durand Juanjo Conti escreveu: > Hi! > > I wonder know if there is a Django app suitable to handle turns as the > ones given by a doctor to his pacients. > Thanks in advanc

Re: Table or view does not exist - Oracle

2009-04-22 Thread Petry
I have the same problem. I ran the command "python manage.py syncdb" and the tables were created. In the shell I run: from django.contrib.auth.models import * Permission.objects.all () and returned the objects but when I tried to use the runserver the error appears: Databaseerror: ORA-00942:

How to add datepicker for InputDateField

2009-04-22 Thread Joshua Partogi
All, I've got an InputDateField in my form, but when it is rendered to the templates, there is no datepicker beside it like the ones in the admin. How do I add this datepicker to an InputDateField in my form? Thank you very much in advance -- If you can't believe in God the chances are your Go

Subscriptions software

2009-04-22 Thread Alvaro Mouriño
Hi all, I'm working at a newspaper which requires readers to subscribe and choose from many different pay plans, from monthly to yearly. The subscriptions software was built on django 0.91, it's becoming a headache to maintain so we are planning to develop it from scratch on 1.0. Is there anythi

Re: auth.contrib silently catching TypeError. Bug?

2009-04-22 Thread Tamas
I've raised this as a bug: http://code.djangoproject.com/ticket/10901 Regards, Tamas On Apr 20, 4:20 pm, Tamas Szabo wrote: > Hi, > > The function authenticate in django/contrib/auth/__init__.py reads: > > 31        def authenticate(**credentials): > 32          """ > 33          If the given

Re: Subscriptions software

2009-04-22 Thread Chris Moffitt
It looks like django-accounts is a bit stalled. You could try taking a look at Satchmo (http://www.satchmoproject.com ) It's more of a full fledged ecomerce app but it does support a subscription model and multiple payment gateways. -Chris On Wed, Apr 22, 2009 at 5:35 PM, Alvaro Mouriño wrote:

Re: Webpy vs Django [and how to ask questions the smart way]

2009-04-22 Thread James Bennett
On Wed, Apr 22, 2009 at 3:04 PM, Phil Mocek wrote: > That depends on how you look at things.  I've been referencing Eric S. > Raymond's essay, "How to Ask Questions the Smart Way" [2], on this list > recently, because I'm not used to such poorly-worded or lazy questions > being asked on a technic

Re: auth.contrib silently catching TypeError. Bug?

2009-04-22 Thread James Bennett
On Mon, Apr 20, 2009 at 4:20 AM, Tamas Szabo wrote: > As you can see the code catches and silently ignores all TypeError exceptions: > The problems with this approach are: >    - Why not fail as early as possible if one of the authentication > backends configured in settings.py has a wrong signat

Re: Webpy vs Django [and how to ask questions the smart way]

2009-04-22 Thread Graham Dumpleton
On Apr 23, 10:00 am, James Bennett wrote: > On Wed, Apr 22, 2009 at 3:04 PM, Phil Mocek > > wrote: > > That depends on how you look at things.  I've been referencing Eric S. > > Raymond's essay, "How to Ask Questions the Smart Way" [2], on this list > > recently, because I'm not used to such p

Re: Webpy vs Django [and how to ask questions the smart way]

2009-04-22 Thread Joshua D. Drake
On Wed, 2009-04-22 at 20:00 -0400, James Bennett wrote: > On Wed, Apr 22, 2009 at 3:04 PM, Phil Mocek > wrote: > > That depends on how you look at things. I've been referencing Eric S. > > Raymond's essay, "How to Ask Questions the Smart Way" [2], on this list > > recently, because I'm not used

Re: Subscriptions software

2009-04-22 Thread Alvaro Mouriño
On Wed, Apr 22, 2009 at 8:56 PM, Chris Moffitt wrote: > It looks like django-accounts is a bit stalled. You could try taking a look > at Satchmo  (http://www.satchmoproject.com ) > > It's more of a full fledged ecomerce app but it does support a subscription > model and multiple payment gateways.

Re: dynamically testing for response.context or response.context[0]

2009-04-22 Thread Russell Keith-Magee
On Thu, Apr 23, 2009 at 5:06 AM, meppum wrote: > > sorry to bring this up again in a different thread, but the old thread > was locked: > http://groups.google.com/group/django-users/browse_thread/thread/4fe2774b35b14b82/5af08bf613ba1f4c?lnk=gst&q=meppum+template+test#5af08bf613ba1f4c > > is there

  1   2   >