I use a couple of filters, which I think I first found in the code for
generic views:
from datetime import date, time, datetime
Class.objects.filter(date__gte=datetime.combine(date(int(year),int(month),int(day)),time.min)).filter(date__lte=datetime.combine(date(int(year),int(month),int(day)),time
On Sat, Sep 6, 2008 at 10:03 AM, Posi <[EMAIL PROTECTED]> wrote:
>
> Now that 1.0 was released, how hard or desirable would it be to
> consider column based DBs like HBase, hypertable, etc for Django
> backends?
Desirable - certainly.
Hard - yes. This isn't going to be a simple 'just implement
No worries...thanks for the update
On Sep 2, 9:38 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 2, 2008 at 8:13 PM, Joeyx2 <[EMAIL PROTECTED]> wrote:
> > Still waiting on that source code?
>
> Guys, I promise you all that there will be a loud and triumphant
> announcement on my blo
Hi,
I am new to Django and am deploying my first application in the web
server (apache2+mod_python).
I putted the project files '/project/webptb/*' under web root
directory '/usr/local/apache2/htdocs'.
When I visit 'http://WebServer/project/webptb/', it works. The output
page and its source are
Now that 1.0 was released, how hard or desirable would it be to
consider column based DBs like HBase, hypertable, etc for Django
backends? Currently the model behavior seems tightly coupled to
traditional DB models, is this really what we want?
--~--~-~--~~~---~--~---
Have you read the mod_python hosting documentation at all?
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/
Graham
On Sep 6, 10:19 am, macgregor <[EMAIL PROTECTED]> wrote:
> I'm working on a site that runs on Interchange (http://www.icdevgroup.com/)
> and I am wanting to add
On Sep 5, 6:53 pm, KillaBee <[EMAIL PROTECTED]>
wrote:
> I found A good document, that explains a
> lot.http://enodev.ath.cx/save/www.djangoproject.com/documentation/model_api/
> but it still can not import name meta. I don't know where this is
> coming from.
You won't be able to import that
I'm working on a site that runs on Interchange (http://
www.icdevgroup.com/) and I am wanting to add a Django-powered blog and
testimonials apps.
Our Interchange setup uses mod_rewrite to send page reqests through a
perl/cgi script which processes the pages and then passes them on to
Apache to se
I am working through the online book and documentation and hit a snag
at the admin site. I set up the admin.py with my model admin class,
and then added the following to urls.py patterns
(r'^admin/(.*)', admin.site.root),
(using the 1.0 release of Django). The issue is with the way my web
On Sep 4, 2008, at 6:35 AM, peter_g wrote:
>
>
> Hi!
>
> Playing with the wonderful mptt code:
> http://code.google.com/p/django-mptt/
>
> I would like to ask if someone knows how to do this:
> (I play with some kind of navigation for websites)
>
> I have a tree where some nodes are marked "inact
On Sep 6, 2:39 am, Ilya Braude <[EMAIL PROTECTED]> wrote:
> Hernan Olivera wrote:
> >>> In php when you change the code there is no need to restart the
> >>> server, but in j2ee its necessary to recompile everything. how does
> >>> that work in django?
>
> > You can also configure apache to relo
On 6 sep, 02:19, Alex Chun <[EMAIL PROTECTED]> wrote:
> Thank you for the response. I should have said: the subclass is not
> part of the model, and thus is not reflected in database tables.
> I declare the subclass in one of my view functions. Without getting
> into the particulars of my app, I
On 5 sep, 19:44, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Sep 5, 1:11 pm, TheShark <[EMAIL PROTECTED]> wrote:
>
>
>
> > I am playing with a Django project which will deal with networking
> > information. I would like to enforce some additional constraints above
> > and beyond what the default
Thank you for the response. I should have said: the subclass is not
part of the model, and thus is not reflected in database tables. I
declare the subclass in one of my view functions. Without getting
into the particulars of my app, I am trying to display a "list of
cars" on a web page, along w
On 6 sep, 01:54, Alex Chun <[EMAIL PROTECTED]> wrote:
> How can I subclass a model class,
http://www.djangoproject.com/documentation/model-api/#model-inheritance
> in order to add a temporary field?
"temporary" ?
> For example, say I have a class Car, and I want to subclass it to
> TempCar,
How can I subclass a model class, in order to add a temporary field?
For example, say I have a class Car, and I want to subclass it to
TempCar, and add a comment field.
class TempCar(Car):
comment = models.CharField(max_length = 200)
The trouble arises when I try to get a QuerySet by doing
On 5 sep, 23:52, Sylvain <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> Today I was hunting down some serious performance problems in my app
> and I found something pretty "confusing". I realized that, when
> creating generic relations with the ContentTypes framework (http://
> docs.djangoprojec
I found A good document, that explains a lot.
http://enodev.ath.cx/save/www.djangoproject.com/documentation/model_api/
but it still can not import name meta. I don't know where this is
coming from.
from django.db.models import meta
from django.contrib.auth.models import User
#from django.contri
I wouldn't say it's built for apache, it's just that non-MS based
systems don't work 'as well' as IIS native stuff (go figure).
I found two quick articles about doing it:
http://forums.iis.net/t/1122937.aspx
http://support.microsoft.com/kb/276494
Although, I seem to remember something about a .
I think now that the Admin refactor in 1.0 is there, you can just sub-
class the user model and use admin that way, no?
On Sep 5, 1:28 pm, jmDesktop <[EMAIL PROTECTED]> wrote:
> What do you use for a user manager in Django? When I used Django it
> was nice, but I couldn't find a way to use it f
Hi everybody,
Today I was hunting down some serious performance problems in my app
and I found something pretty "confusing". I realized that, when
creating generic relations with the ContentTypes framework (http://
docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1) Django
does create a
Thanks that really helped out. I am working with an old app, it has
been around since django.
I am also working with this file that imports meta from django.core
that is the last thing "I think".
The web said that I should import it from django.db.models but it
didn't work. then I went to the sec
On 5 sep, 18:05, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> This is odd, but probably something obvious i'm screwing up. I have a
> point field 'office_coordinates'. the .get_x() and .get_y() methods
> work fine on the local machine both in python and through the
> development server. Howeve
Dear Django Team.
Congratz on the 1.0 release
Into Django for a few weeks, and already have a robust application. Keep up the
great work!
Kind regards,
Gerard.
James Bennett wrote:
> The Django team is pleased to announce the release of Django 1.0 this evening:
>
> Download: http://www.
What do you use for a user manager in Django? When I used Django it
was nice, but I couldn't find a way to use it for a CMS, either
Intranet or Internet. Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
I know Django is made primarily for Apache, but does anyone know if
the 1.0 version has anything that makes it "really" work with IIS? In
the past I have seen folks run Django with IIS (I have myself), but it
seemed more of a hack than anything else. Certainly not something I'd
want to run in pr
On Sep 5, 12:28 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2008-09-05 at 07:09 +0530, Kenneth Gonsalves wrote:
>
> [...]
>
> > anyway, putting settings.py under version control is tantamount to
> > suicide,
>
> I'm sorry, but this is just very bad advice. It's very standard prac
My bad. I didn't update the sorl-thumbnail code from svn.
Didn't realise this until I'd fixed it by using a different thumbnail
implementation! It's been a long week.
Thanks all.
Tim.
On Friday 05 Sep 2008, [EMAIL PROTECTED] wrote:
> set TEMPLATE_DEBUG=True in settings.py
>
> On Sep 5, 4:30
Changing this subject a bit...
How is the better way to track links? (I'm talking about a big site)
For links in general purpose? (Statics softwares based on server logs,
services like google analytics, etc) Suggestion?
For links more particularly like download/advertising/redirections? (Serving
Thank you for the suggestion, but first (with the right answer) come
first serve.
On Sep 5, 2:02 pm, Wojtek Walczak <[EMAIL PROTECTED]> wrote:
> Robocop wrote:
> > And all i'm trying to do is sort "Service_details" by Encounter.day,
> > and the line i'm trying to do it with is:
>
> > Service_deta
On Fri, Sep 5, 2008 at 10:13 AM, Peter Bengtsson <[EMAIL PROTECTED]> wrote:
>
> I've got something like this:
>
> class Class(models.Model):
> ...
> date = models.DateTimeField()
>
> I'm trying to filter and get all objects on a particular day:
>
> >>> Class.objects.all()[0].date
> da
BINGO! I wabt to take you out to a fine romantic dinner, thanks.
On Sep 5, 12:02 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 5, 2008 at 2:50 PM, Robocop <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> > I'm not entirely sure what the problem is, but as it stands, i'm
> > fairly confide
Last minute notice: There's a Django users meeting in Helsinki,
Finland on Saturday, September 6th. See
http://code.djangoproject.com/wiki/VersionOneReleasePartyHelsinki for
more information.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
First, look at the behavior of Python's datetime module:
>>> datetime(2008,9,4)
datetime.datetime(2008, 9, 4, 0, 0)
Omitting the time part is just a shorthand for midnight.
I don't think that comparing microsecond-accurate timestamps to date
values would make sense at the database level anyway.
On Sep 5, 7:11 pm, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I have a server structure similar to yours. The settings.py file
> differs, the settings.py is under version control and I have a
> custom_settings.py not versioned. At the end of the settings.py file I
> import the
set TEMPLATE_DEBUG=True in settings.py
On Sep 5, 4:30 pm, Tim Sawyer <[EMAIL PROTECTED]> wrote:
> Has anyone got sorl thumbnail working with the latest svn code?
>
> I'm just getting src="" using src="{% thumbnail image.image 200x100 %}"
>
> Cheers,
>
> Tim.
--~--~-~--~~~-
On Sep 1, 1:32 am, Davor Lučić <[EMAIL PROTECTED]> wrote:
> If you are using Apache you can use mod_rewrite.
>
> http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
>
> On Aug 31, 10:08 pm, Robert <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I just got done reading through the 4 django tutorials a
with rev 8969 it works fine with me. sorl.thumbnail is at rev 426.
what is your model like?
ramin
--
Ramin Miraftabi http://fierymill.net/ramin/
blog @ http://randomfire.fierymill.net/
Kolme flättiä ja kultsu: http://fierymill.net/loj/
Three flatcoats and a golden: http://fierymill.net/loj/
On Fri, Sep 5, 2008 at 11:01 AM, phred78 <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm stuck with this problem that I can't figure out. Everything was
> working, then I went out for lunch and when I came back it stopped
> working :S
>
> It's related to the Entry detail view. Listing is fine but w
Robocop wrote:
> And all i'm trying to do is sort "Service_details" by Encounter.day,
> and the line i'm trying to do it with is:
>
> Service_details.objects.filter(encounter__day=date)
>
> where date is of the form '-MM-DD,' but i always receive the
> error "TypeError: Related Field has i
On Fri, Sep 5, 2008 at 2:50 PM, Robocop <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I'm not entirely sure what the problem is, but as it stands, i'm
> fairly confident this stupid little line of code i have should work.
> The relevant models are:
>
> class Encounter(models.Model):
> service = models.
Damn... thats one stupid mistake :)
thanks for noticing it :)
--~--~-~--~~~---~--~~
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 f
Hello,
I'm not entirely sure what the problem is, but as it stands, i'm
fairly confident this stupid little line of code i have should work.
The relevant models are:
class Encounter(models.Model):
service = models.IntegerField(max_length = 100, blank=True)
patient = models.ForeignKey(Patient)
I see requests for how to chain select boxes in the automatic admin
come up on occasion. I just implemented it for a project that I was
working on so I thought I would put together an entry on
djangosnippets.org.
Here is the link http://www.djangosnippets.org/snippets/1028/
I'm using mootools t
So it turns out MYSQL can't handle distance lookups... has anyone
come up with a workaround to use mysql with geodjango for distance
lookups??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
Thank you very much,
this solved the problem
By the way, I use the official release 1.0
On 5 Септ, 21:13, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote:
> Hi nsash,
>
> > def save(self, size=(80, 80)):
> > super(Artwork, self).save()
> > if self.file:
>
>> 1) Does your webhost need to support Django specifically or
>> is it sufficient if they support Python? (e.g. with CakePHP
>> you just need general PHP support).
>
> Just Python will be enough. You can have a copy of Django in
> any directory, providing the webserver can be configured to
> fin
Hi nsash,
> def save(self, size=(80, 80)):
> super(Artwork, self).save()
> if self.file:
> filename = self.file
> image = Image.open(filename)
>
> image.thumbnail(size, Image.ANTIALIAS)
Hi guys,
I have a server structure similar to yours. The settings.py file
differs, the settings.py is under version control and I have a
custom_settings.py not versioned. At the end of the settings.py file I
import the custom one. The custom_settings.py is not versioned.
Best regards,
--~--~
On Sep 5, 1:48 pm, KillaBee <[EMAIL PROTECTED]>
wrote:
> This is the bit of code that is throwing the error in my view.py.
>
> from django.shortcuts import DjangoContext
> # needs meta
> from intraweb.apps.timesheets.models.timesheets import entrys
> from intraweb.apps.timesheets.models.timeshee
In regards to that, don't forget that settings.py is a code file. I
have boilerplate code that goes in my settings.py using the os library
to figure out where the settings.py file is located. Since my project
structures are always identical relative to their root path, I can use
the value of "os.p
This is the bit of code that is throwing the error in my view.py.
from django.shortcuts import DjangoContext
# needs meta
from intraweb.apps.timesheets.models.timesheets import entrys
from intraweb.apps.timesheets.models.timesheets import jobpositions
from intraweb.apps.timesheets.models.timeshee
On Sep 5, 1:45 pm, KillaBee <[EMAIL PROTECTED]>
wrote:
> I am converting a old time sheets program to 1.0 on a new server. I
> get this error: ViewDoesNotExist: Could not import
> intraweb.apps.timesheets.views. Error was: cannot import name
> DjangoContext
>
> Django can't find these:
> meta wa
I am converting a old time sheets program to 1.0 on a new server. I
get this error: ViewDoesNotExist: Could not import
intraweb.apps.timesheets.views. Error was: cannot import name
DjangoContext
Django can't find these:
meta was in django.core
djangocontext
users was in django.contrib.auth
formfi
On Sep 5, 1:11 pm, TheShark <[EMAIL PROTECTED]> wrote:
> I am playing with a Django project which will deal with networking
> information. I would like to enforce some additional constraints above
> and beyond what the default Form fields provides.
>
> For example, if I have a model to represent
We are setting up a new page structure and want to have overridable
blocks within template content that is added to the template with {%
include %}, but that does not seem to work. Is this supported?
In particular (working in Django 0.96.1), the following does not work
- the 'content' block is n
I am playing with a Django project which will deal with networking
information. I would like to enforce some additional constraints above
and beyond what the default Form fields provides.
For example, if I have a model to represent a 'subnet' it would have
both a network address (which I can save
Hello,
I am trying to resize image on save from the admin part of django.
My Model is:
class Artwork(models.Model):
file = models.ImageField(upload_to=UPLOAD_DIR,)
title = models.CharField(max_length=100)
def __unicode__(self):
return self.title
On Fri, 2008-09-05 at 09:28 -0700, Krommenaas wrote:
> Hi,
>
> I've used Ruby on Rails and CakePHP and am considering using Django
> for my next site coz I'm intrigued by Python. I have a few questions
> that I couldn't find the answer to in the docs:
>
> 1) Does your webhost need to support Dj
I do almost the same thing, but instead of importing settings_local.py
in settings.py, I import setting.py in settings_local.py and then just
run my dev server by doing something like "python manage.py --settings
settings-local runserver" which works well for my use case.
On Sep 5, 8:42 am, "[EMA
Hernan Olivera wrote:
>>> In php when you change the code there is no need to restart the
>>> server, but in j2ee its necessary to recompile everything. how does
>>> that work in django?
>>>
>
> You can also configure apache to reload de code. There is a setting,
> in httpd.conf:
> MaxReque
Hi,
I've used Ruby on Rails and CakePHP and am considering using Django
for my next site coz I'm intrigued by Python. I have a few questions
that I couldn't find the answer to in the docs:
1) Does your webhost need to support Django specifically or is it
sufficient if they support Python? (e.g.
On Fri, 2008-09-05 at 07:09 +0530, Kenneth Gonsalves wrote:
[...]
> anyway, putting settings.py under version control is tantamount to
> suicide,
I'm sorry, but this is just very bad advice. It's very standard practice
to version control as much as possible in many organisations. It helps
wit
On Fri, 2008-09-05 at 08:32 -0700, julianb wrote:
> gigs = Gig.objects.filter(date__gt=today)[:5] &
> Gig.objects.filter(date__lte=today)[:5]
Whilst that might not raise an error, it won't return the correct
result. You can only have one limit on a single SQL query.
Regards,
Malcolm
--~--~--
On Fri, 2008-09-05 at 16:52 +0200, Benjamin Buch wrote:
> Hi all,
>
> 1.0 is there, great! Congratulations for the people who made it
> possible!
>
> Now my problem:
>
> I have a model 'Gig' which includes a date field, and I need a query
> that results in the five latest passed gigs and t
On Fri, 2008-09-05 at 03:11 -0700, mwebs wrote:
> Hello,
>
> I use a modelchoicefield and want to remove the entry that represents
> "no item selected"(--), because in my
> scenario I will only allow to select between existing entries.
Specify a default value for the field (one of the choic
This is odd, but probably something obvious i'm screwing up. I have a
point field 'office_coordinates'. the .get_x() and .get_y() methods
work fine on the local machine both in python and through the
development server. However online when i call these in html (apache
server) it stops the renderin
I'm using a structure of:
svn_project/
src/
apps/
app1/ -> ext
app2/ -> ext
media/
templates/
This moves all of my Python code into a top level directory (src/) so
that Python code, templates, and static files are all logically
separated at the top level. This tends to reinforc
gigs = Gig.objects.filter(date__gt=today)[:5] &
Gig.objects.filter(date__lte=today)[:5]
--~--~-~--~~~---~--~~
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@googlegro
I use roughly the same layout with the addition of trunk,tags,branches
directories, and haven't hit any wall so far. As for the settings.py
issue I have the following at the end of my settings.py file:
try:
from settings_development import *
except: # ImportError:
pass
which checks
Jim wrote:
On Sep 5, 9:25 am, brad <[EMAIL PROTECTED]> wrote:
I've also run into the problem of
keeping my settings.py under version control, so I just created
multiple settings files for the various servers on which my apps would
run, so I've got:
settings.py
settings_server1.py
settings_server
django-flags is born !
http://code.google.com/p/django-flags/
This component helps writing internationalized applications by
managing a set of templates per language. Try it :-)
Eric Simorre.
--~--~-~--~~~---~--~~
You received this message because you are subscri
Hi all,
I'm stuck with this problem that I can't figure out. Everything was
working, then I went out for lunch and when I came back it stopped
working :S
It's related to the Entry detail view. Listing is fine but when I try
to open the detail of a certain entry it gives out this error:
(...)
Re
Hi all,
1.0 is there, great! Congratulations for the people who made it
possible!
Now my problem:
I have a model 'Gig' which includes a date field, and I need a query
that results in the five latest passed gigs and the 10 closest
forthcoming gigs.
Sorry for my bad english, I hope it's und
Hi Arnold,
On Sep 5, 5:00 am, Arnold Chen <[EMAIL PROTECTED]> wrote:
> I am using django version 1.0.
>
> I have a admin with a form for custom validation. My validation is
> done in def clean(self):
>
> The problem is that I have a requirement to get the record id to check
> against database for
Has anyone got sorl thumbnail working with the latest svn code?
I'm just getting src="" using src="{% thumbnail image.image 200x100 %}"
Cheers,
Tim.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" g
I've got something like this:
class Class(models.Model):
...
date = models.DateTimeField()
I'm trying to filter and get all objects on a particular day:
>>> Class.objects.all()[0].date
datetime.datetime(2008, 9, 4, 15, 10, 23, 359032)
>>> Class.objects.filter(date=datetime(2008,
I got it !
django.utils.translation.get_language()
it works !!
I made a new django component with this stuff:
django-flags, soon on Google code ...
Cheers,
Eric
On Sep 5, 1:14 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> Wiadomość napisana w dniu 2008-09-05, o godz. 12:56, przez MiloZ:
>
> >>
Where exactly at Google is DjangoCon going to be taking place tomorrow
and Sunday? Will it be well marked?
I'll be driving down from San Francisco (16th/Guerrero) in case anyone
wants to carpool.
David
--~--~-~--~~~---~--~~
You received this message because you
On Sep 5, 11:21 pm, PeteDK <[EMAIL PROTECTED]> wrote:
> Hi Im an trying to deploy my django app to an apache server. However i
> keep getting a 500 internal server error.
>
> i have followed this
> guide:http://fosswire.com/2008/05/19/installing-mod_python-and-django-on-ap...
>
> in my httpd.co
> anyway, putting settings.py under version control is tantamount to
> suicide, so all you need to do is change your settings.py on each
> installation
Until just recently, I've only been developing a project (I haven't
had anything in production), and my subversion repo looks like this:
|-
On Fri, Sep 5, 2008 at 9:21 AM, PeteDK <[EMAIL PROTECTED]> wrote:
>
> Hi Im an trying to deploy my django app to an apache server. However i
> keep getting a 500 internal server error.
>
> i have followed this guide:
> http://fosswire.com/2008/05/19/installing-mod_python-and-django-on-apache/
>
>
Kenneth Gonsalves:
> > anyway, putting settings.py under version control is tantamount to
> > suicide, so all you need to do is change your settings.py on each
> > installation
I'm sorry I don't understand this. Suppose you get a bug report
having to do with version 3.2.1 (your development versio
thought it might help to paste some of my urls. :-)
#!usr/bin/env python
#-*- coding: iso-8859-1 -*-
from django.conf.urls.defaults import *
from skema.views import *
from django.contrib.auth.views import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
On Sep 5, 11:24 pm, "Hernan Olivera" <[EMAIL PROTECTED]> wrote:
> >> In php when you change the code there is no need to restart the
> >> server, but in j2ee its necessary to recompile everything. how does
> >> that work in django?
>
> You can also configure apache to reload de code. There is a
On Fri, Sep 5, 2008 at 3:10 AM, Matic Žgur <[EMAIL PROTECTED]> wrote:
> I would have one question though. What will the releases look from now
> on? I mean, will 1.x contain only security/bug fixes or new features
> as well? And how long will it stay supported? I know that these
> questions may no
>> In php when you change the code there is no need to restart the
>> server, but in j2ee its necessary to recompile everything. how does
>> that work in django?
You can also configure apache to reload de code. There is a setting,
in httpd.conf:
MaxRequestsPerChild 1
That do the magic
--
Hern
Hi Im an trying to deploy my django app to an apache server. However i
keep getting a 500 internal server error.
i have followed this guide:
http://fosswire.com/2008/05/19/installing-mod_python-and-django-on-apache/
in my httpd.conf file i have written the following:
SetHandler python-program
P
On Fri, Sep 5, 2008 at 1:41 AM, Benedict Verheyen <
[EMAIL PROTECTED]> wrote:
>
> Because the datestyle in the sql statement is passes as Ymd, i tried to
> set
the datestyle in the postgres.conf file als datestyle = 'iso, ymd' and
datestyle = 'sql, us' but they all resulted in the same error.
Hi,
I have a clients table, and I need each user to belong to a client. So
in fact what I need is to extend the user model with one additional
obligatory field.
I have already seen the UserProfile approach, but that is not
obligatory, meaning I can create a user without the profile, because
the
Wiadomość napisana w dniu 2008-09-05, o godz. 12:56, przez MiloZ:
>> Writing custom template loader might be a good alternative. I did it
>> once and it seemed more elegant and DRY than selecting templates in
>> every view.
>
> OK, but how do you retrieve the LANGUAGE_CODE value from the templat
Hi guys,
I tried Join.Together's approach using the "in" filter parameter and
it worked great. It turns out that the other query I was running was
actually producing the wrong result set! Not Django's fault, rather I
was pulling in the wrong data. The code looks nicer and is definitely
more maint
You can create a view like:
@login_required
def index(request):
if request.user.is_authenticated():
return HttpResponseRedirect('/go/here/')
else:
return render_to_response("go/loginpage")
gr,
G.
2008/9/5 Ken <[EMAIL PROTECTED]>
>
> You have two options.
>
> 1) You c
On Sep 5, 9:07 am, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> Writing custom template loader might be a good alternative. I did it
> once and it seemed more elegant and DRY than selecting templates in
> every view.
OK, but how do you retrieve the LANGUAGE_CODE value from the template
loader
On 5 sep, 11:12, samsus <[EMAIL PROTECTED]> wrote:
> Hello,
>
> In php when you change the code there is no need to restart the
> server, but in j2ee its necessary to recompile everything. how does
> that work in django?
Basically, you have to restart the web server. But note that for
development
That totally depends on what deployment method you're using. For
instance with mod_wsgi you can configure that all you have to do is
touch the application file and it will get reloaded. For details you
might want to take a look at the docs of mod_wsgi, mod_python, or
whatever deployment method you
It depens!
On development any time you change your code the server restarts itself. In
production if you use mod_python you must reload the server any time you
change your python code, and perhaps empty cachés if you use them.
2008/9/5 samsus <[EMAIL PROTECTED]>
>
> Hello,
>
> In php when you ch
Hello,
I use a modelchoicefield and want to remove the entry that represents
"no item selected"(--), because in my
scenario I will only allow to select between existing entries.
Is there a way to do this?
Thanks,
-Toni
--~--~-~--~~~---~--~~
You received this
Hello,
In php when you change the code there is no need to restart the
server, but in j2ee its necessary to recompile everything. how does
that work in django?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
You have two options.
1) You can write your own view.
2) You can pass a GET parameter to the login view:
/accounts/login?next=/redirect/to/custom/path/
and put this in your form in the login template:
Cheers,
Ken
On Sep 5, 12:07 am, zissan <[EMAIL PROTECTED]> wrote:
> It's seemd that Djang
1 - 100 of 110 matches
Mail list logo