Re: Query Posts By Date

2010-05-30 Thread greg
Amazingly simple yet exactly what I wanted. And here I was trying to convert year and month into date objects. Thank you. On May 30, 10:19 pm, Justin Myers wrote: > If you're passing a "year" and "month" variable, I would use > Post.objects.filter(publish_date__year=year, > publish_date__month=mo

Re: Query Posts By Date

2010-05-30 Thread Justin Myers
If you're passing a "year" and "month" variable, I would use Post.objects.filter(publish_date__year=year, publish_date__month=month). -Justin On May 30, 12:34 am, greg wrote: > Hello, > > I'm (almost) done coding up my blog in Django. > > Right now I'm working to implement a search by date functi

Re: Django 1.2.1 install in Ubuntu 10.04 via Synaptic?

2010-05-30 Thread AD
I agree with you, Shawn. I just didn't want to push ahead with a manual uninstall and install if more-experienced Ubuntu users thought I'd be seeing Django 1.2.1 show up in the repository quickly. I'll give it a go. Thanks, On May 30, 10:41 pm, Shawn Milochik wrote: > On May 30, 2010, at 10:07 P

Re: Django 1.2.1 install in Ubuntu 10.04 via Synaptic?

2010-05-30 Thread Shawn Milochik
On May 30, 2010, at 10:07 PM, AD wrote: > Thanks for replying. > > I do understand that i can install it manually. I'm just wondering > whether it's worth doing now or waiting for a package update. From > what I gather, Ubuntu installs Django in different locations than the > straight Django ins

Re: Django 1.2.1 install in Ubuntu 10.04 via Synaptic?

2010-05-30 Thread AD
Thanks for replying. I do understand that i can install it manually. I'm just wondering whether it's worth doing now or waiting for a package update. From what I gather, Ubuntu installs Django in different locations than the straight Django install does, so I would have to make changes to configs,

Re: Built in password reset views resulting in Caught NoReverseMatch while rendering: Reverse for 'django.contrib.auth.views.password_reset_confirm'

2010-05-30 Thread Mike Dewhirst
Simon Have considered the sequence in which templates are loaded? See http://docs.djangoproject.com/en/dev/ref/settings/ If you put the filesystem template loader ahead of the app_directories django will find your own versions named identically with django versions and use them instead. TEM

Re: Django 1.2.1 install in Ubuntu 10.04 via Synaptic?

2010-05-30 Thread Jeliuc Alexandr
Hello, there. If You need new versions features or if You want to keep Your django updated it is not a problem. Install it manually. There is information about on django website. Also it'll be helpful to read about trunk version. It is python. :) Best regards. On May 31, 1:42 am, AD wrote: > I

Django 1.2.1 install in Ubuntu 10.04 via Synaptic?

2010-05-30 Thread AD
I previously installed Django 1.1.1 via Ubuntu's Synaptic manager. For anyone with experience under that OS and that install, I'm wondering: -- Should I wait for a Django 1.2.1 package to show up under Synaptic or uninstall 1.1.1 and then manually install 1.2.1? I honestly don't know who "controls

Re: How can I test the correctness of my models against the schema of a database?

2010-05-30 Thread Jeliuc Alexandr
Sorry. I haven't use other methods for that. But isn't it enough to test it using loremiser or something like that and like an addition debug toolbar? On May 31, 12:53 am, David Horat wrote: > Dear group, > > How can I test the correctness of my models against the schema of a > database? > > To s

Re: How can I test the correctness of my models against the schema of a database?

2010-05-30 Thread David Horat
That gives you the SQL Statements for an application. What I want is a way so Django checks the models against the database defined in settings. On May 31, 12:14 am, knicholes wrote: > python manage.py sqlall > > On May 30, 3:53 pm, David Horat wrote: > > > > > Dear group, > > > How can I test

Re: How can I test the correctness of my models against the schema of a database?

2010-05-30 Thread knicholes
python manage.py sqlall On May 30, 3:53 pm, David Horat wrote: > Dear group, > > How can I test the correctness of my models against the schema of a > database? > > To solve this question, I have tried unsuccessfully several options: > - Using ./manage.py test triggers the creation and destructi

How can I test the correctness of my models against the schema of a database?

2010-05-30 Thread David Horat
Dear group, How can I test the correctness of my models against the schema of a database? To solve this question, I have tried unsuccessfully several options: - Using ./manage.py test triggers the creation and destruction of a database, but I want to check the correctness of the model against a p

Re: File Upload with Progress Bar

2010-05-30 Thread creecode
Hello V, On May 30, 12:23 pm, Venkatraman S wrote: > Can you share the project please? My progress bar code is integrated into a larger application which I'm unable to share at this time. I've put the progress bar feature on the back burner and unfortunately I don't have spare time to go in an

Re: Trouble with translation

2010-05-30 Thread Baurzhan Ismagulov
On Sun, May 30, 2010 at 02:02:10PM -0700, Quenten Griffith wrote: > I created a conf/local in my project root directory Hmm, I'm using locale/ in the project root directory with django 1.0 and it works fine for me. With kind regards, -- Baurzhan Ismagulov http://www.kz-easy.com/ -- You receiv

Re: include(admin.site.urls) mangles with the URL

2010-05-30 Thread adrian
this is what you had: (r'^admin/(.*)', admin.site.root), then you changed it to this (which is incorrect with the regex) (r'^admin/(.*)', include(admin.site.urls)), # WRONG this is correct: (r'^admin/', include(admin.site.urls)), -- You received this message because you are subscribed to the Go

Trouble with translation

2010-05-30 Thread Quenten Griffith
Hello everyone I am creating my second Django project, this being the first to include translation. I am running Django Version 1.2 and seem to be having a issue with the message files for translation. I created a conf/local in my project root directory and ran django- admin.py makemessages -l d

[no subject]

2010-05-30 Thread Daniel Fackrell
http://atorvastatin.gyrjarmyxvy.com -- 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 from this group, send email to django-users+unsubscr...@googlegroups.com. For

tinymce hyperlinks

2010-05-30 Thread Bobby Roberts
i'm using django 1.1 with tinymce and the grappelli skins. we just realized that the tinymce editor does not let you put hyperlinks in. if you go into HTML and hand code them they are fine. if you try to click the link button and use the wizard, no link is inserted and the insert button doesn't d

Model super class with overriding save method

2010-05-30 Thread Amit Prahesh
Hi, because of hysterical raisins I need that the models of a simple app I was tasked upon have their primary fields to consist of strings of randomly generated characters (think something like '876nce8yr85yndxw45') of a given length. I'm trying to create a super class that provides this facility,

Re: File Upload with Progress Bar

2010-05-30 Thread Venkatraman S
HI creecode, Can you share the project please? I can probably work on it and see what is happening. Till now, i havent even been able to get this working. -V On Sun, May 30, 2010 at 10:45 PM, creecode wrote: > Hello V, > > On May 29, 11:00 pm, Venkatraman S wrote: > > > I have been trying to

Re: django-admin-tools

2010-05-30 Thread izi
Hi, On 30 mai, 08:43, rahul jain wrote: > Hi Django, > > Anybody able to ran django-admin-tools successfully. I followed the > instructions from this website > > http://packages.python.org/django-admin-tools/0.2.0/quickstart.html#q... > > I was expecting a new theme for dashboard and index page a

Re: File Upload with Progress Bar

2010-05-30 Thread creecode
Hello V, On May 29, 11:00 pm, Venkatraman S wrote: > I have been trying to build a simple file upload with progress bar. AFAIK there isn't a simple solution. Perhaps this info < http://www.fairviewcomputing.com/blog/2008/10/21/ajax-upload-progress-bars-jquery-django-nginx/ > will point you in

Re: unique_together FK problem with version 1.2.1

2010-05-30 Thread Karl Lam
Hi Karen, It is my mistake. After changing the class members, I forget to change the __unicode__ method... Thank you very much. On May 30, 8:28 pm, Karen Tracey wrote: > On Sun, May 30, 2010 at 5:21 AM, Karl Lam wrote: > > Class A and class B were setup using syncdb. Class B has a FK of clas

Re: how to show blank spaces at the start of string in django templates

2010-05-30 Thread knicholes
On May 29, 7:47 am, Ogi Vranesic wrote: > Hi > > I formated with python numbers like e.g.: > > "   3457.50" > " 11450.25" > > but my problem is to show them correctly one below the other > in a column by django templates > because the blank spaces are ignored. > I tried with the filter escape, how

Re: Built in password reset views resulting in Caught NoReverseMatch while rendering: Reverse for 'django.contrib.auth.views.password_reset_confirm'

2010-05-30 Thread Cromulent
Well I got it working by changing the names of my templates to something other than the default value. This seems like a bug to me. Surely Django should use a provided template if it is available and only fall back on the built in ones as an absolute last resort? Especially as I had specified in th

Re: unique_together FK problem with version 1.2.1

2010-05-30 Thread Karen Tracey
On Sun, May 30, 2010 at 5:21 AM, Karl Lam wrote: > Class A and class B were setup using syncdb. Class B has a FK of class > A. > > First I login to the admin site to add a record of Class A. Then add a > record of Class B by choosing the only record of Class A as FK. Error > occurs after clickin

Built in password reset views resulting in Caught NoReverseMatch while rendering: Reverse for 'django.contrib.auth.views.password_reset_confirm'

2010-05-30 Thread Cromulent
I'm using Django 1.2.1 on Mac OS X with Python 2.6.1 if that matters. I've read the documentation and this is what I have for my urls.py file: password_reset_dict = { 'post_reset_redirect' : '/profiles/login/', 'email_template_name' : 'registration/password_reset_email.html', 'template

unique_together FK problem with version 1.2.1

2010-05-30 Thread Karl Lam
Class A and class B were setup using syncdb. Class B has a FK of class A. First I login to the admin site to add a record of Class A. Then add a record of Class B by choosing the only record of Class A as FK. Error occurs after clicking "save" button. Is this a bug? or my setting is wrong? Thank

Re: No module named django_dns.urls

2010-05-30 Thread Reino
Thanks for you reply Karen, It seems I messed someting up myself. I deleted the project and application, and recreated them from scratch, and now it works like a charm. Best wishes -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

File Upload with Progress Bar

2010-05-30 Thread Venkatraman S
I have been trying to build a simple file upload with progress bar. I have been hanging around in #django for sometime and trying to find a solution but of no avail. I have not been able to get even a flash based solution(like uploadify.com) running along with django. I am not sure whether i am doi

Query Posts By Date

2010-05-30 Thread greg
Hello, I'm (almost) done coding up my blog in Django. Right now I'm working to implement a search by date function. So my class Post has a DateTimeField() called publish_date. For the date search, I want to put two dropdown boxes on the web-page so the users can pick a Month and Year and then it

Re: How to customize ModelChoiceField?

2010-05-30 Thread shaunc
I think I've solved this myself. I needed two fields for description: one for the description pk (in case it is pre-existing) and one for the text. I changed the widget for the description via RateForm.Meta.widgets to a HiddenInput widget, and added the text field to the form separately. In RateF