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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
32 matches
Mail list logo