eenode to see if you have been banned.
--
James Purser
Collaborynth
http://collaborynth.com.au
Mob: +61 406 576 553
Skype: purserj1977
Twitter: http://twitter.com/purserj
GWave: jamesrpur...@gmail.com
--
You received this message because you are subscribed to the Google Groups
"Django user
On Sat, Feb 27, 2010 at 10:07 PM, Harley Bussell wrote:
> Hi, id like to know if any one has found a work around to use limits
> when updating a query set.
This is unlikely to be supported by Django; "UPDATE ... LIMIT" is
non-standard, non-portable and MySQL is the only DB supporting it out
of th
On Sun, Feb 28, 2010 at 4:42 PM, Andrej wrote:
> Shouldn't this work? It's a tuple.
>
> gender = models.CharField(_('Gender'), max_length=1,
> choices=GENDER_CHOICES, default=GENDER_CHOICES[2])
>
> It doesn't.
> I smell black magic!
The value that goes in 'default' is the actual DB value you'd wa
On Sun, Feb 28, 2010 at 5:13 PM, Andrej wrote:
> I want to use the Admin module to pre-set default values when creating
> the form. For example, in the gender case, I want to have default
> "Unknown" option. Is this this not possible?
It is possible; all you have to do is specify the choices you
On Tue, Mar 2, 2010 at 11:19 AM, jul wrote:
> I have a multilingual site and I'd like to get some date in the
> current language. With date.strftime, I get the date in english
> only...
> The language is set by "/i18n/setlang/".
> How can I do that?
For simple formatting, you could just do what t
Hello everybody,
On Tue, Mar 2, 2010 at 11:14 PM, GoSantoni wrote:
> Is it reasonable easy to achieve a form for users with in the end the
> opportunity to register or login? I'd like to let users who visit the
> site for the first time be able to choose a password and name. This
> needs to regis
On Thu, Mar 4, 2010 at 12:59 PM, Phlip wrote:
> Doesn't anyone in Django-land have experience with the platforms that
> make this problem incredibly easy?
Most likely, yes. And those people, believe it or not, designed
Django's APIs based on their experiences. This is why there are
shortcuts avai
On Thu, Mar 4, 2010 at 1:43 PM, Phlip wrote:
> And again the condescension. As a programmer, I should be able to
> easily chose between statements that throw and ones that efficiently
> deal with branching conditions. A record-not-found is not a crisis, it
> is just a branching condition. 5 excess
On Mon, Mar 8, 2010 at 11:11 AM, Phlip wrote:
> And if the PEP8 told you to ... just jump off a cliff... would you?
Sounds like you might benefit from actually reading it:
http://www.python.org/dev/peps/pep-0008/
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
On Tue, Mar 9, 2010 at 8:47 AM, Shawn Milochik wrote:
> I wonder if this is something that might end up in Django as a built-in
> feature at some point. It comes up regularly on this list.
Were I to sit here all morning doing nothing but typing, I wouldn't be
able to say "no" enough times to that
On Wed, Mar 10, 2010 at 9:16 PM, brad wrote:
> When can we expect a release of 1.1.2? Specifically I'm hoping to get
> a test bug fixed - http://code.djangoproject.com/ticket/12720
Barring unforeseen circumstances, a 1.1.2 release will probably
accompany the release of Django 1.2.
In the meantim
On Mon, Mar 15, 2010 at 8:45 AM, Ken Lacey wrote:
> Using request.META['REMOTE_ADDR'] I get an error
>
> Exception Type: TemplateSyntaxError
> Exception Value: Could not parse the remainder: '['REMOTE_ADDR']' from
> 'request.METTA['REMOTE_ADDR']'
>
>
> How do I get over this?
The Django template
On Tue, Mar 23, 2010 at 10:21 AM, Vinicius Mendes | meiocodigo.com
wrote:
> integrated to the framework. I think the queryset should keep track of
> it self. It knows what is the filter, so why can't it negate this
> filter?
Given an already-existing QuerySet which has already had all the
filters
On Tue, Mar 23, 2010 at 3:57 PM, jrs wrote:
> It is precisely due to this that I'm surprised the ORM has
> cascading deletes on by default. Seems to me that cascades should
> only happen when the app developer specifies, not the other way
> around... it's dangerous and I'm certain that many devel
On Thu, Mar 25, 2010 at 11:28 AM, Bobby Roberts wrote:
> it is in the template an the traceback thrown is:
>
> 'if' statement improperly formatted
The documentation states:
> New in Django Development version.
> if tags may also use the operators ==, !=, <, >, <=, >= and in which work as
> foll
On Fri, Apr 2, 2010 at 4:26 AM, knight wrote:
> 1.) I get error: "'Query' object has no attribute 'all'" on line 59 in
> views.
> As I understand it's something to do with the fact that GAE queryset
> is different from django queryset.
> How can I fix that?
By reading the documentation Google pro
On Wed, Apr 7, 2010 at 11:25 PM, yangyang wrote:
> I mean the tutorial only tells you "edit settings" but doesn't tell
> you how. Excuse me if this is obvious to most of people.
Part 1 of the tutorial, under "Database setup", says:
> Now, edit settings.py. It's a normal Python module with module
I'm having this issue as well.
Anyone know if a ticket was filed for this or have any fixes been
done? I looked in Trac and didn't anything.
If not I'll go ahead and submit a ticket.
Thanks,
--James
On 4/4/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Wed
Thanks Malcolm.
I went ahead and filed a ticket for this issue.
http://code.djangoproject <http://code.djangoproject.com/ticket/4490>
.com/ticket/4490 <http://code.djangoproject.com/ticket/4490>
--James
On 6/6/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On
On 6/6/07, ringemup <[EMAIL PROTECTED]> wrote:
> If I've got a form_for_model but I've excluded some fields from it
> entirely (because I don't want people to be able to find the values in
> hidden fields, or even try to submit them), how do I set values back
> for those fields before saving the d
On 6/8/07, Dushyant Sharma <[EMAIL PROTECTED]> wrote:
> come on somebody pl. reply
Please don't do this.
Sometimes it takes a little while -- maybe even a day or so -- for
someone to read through and figure out how to help you with your
problem, and quickly posting followups like this won't spee
On 6/6/07, Andrew R <[EMAIL PROTECTED]> wrote:
> whereas I just want it to import "javadoc_filter" from my current dir. I'm
> sure
> this is by design in django but there must be a way around it.
This is one of the tricky bits of Django that you don't often see.
Django needs to have some consist
On 6/9/07, Andrew R <[EMAIL PROTECTED]> wrote:
> I think a better long term solution is something like:
>
> Template.add_templatetags_file('filename.py')
>
So long as your code is in a location where your code can be imported
by Python, there is another way; there are a couple of undocume
On 6/9/07, Mike Schinkel <[EMAIL PROTECTED]> wrote:
> Is there any chance the owners of this list could modify the configuration
> so that the emails contain [django-users] in the subject line? It would
> make it so much easier to deal with the volume of email if this could be
> done.
I'm not tr
On 6/9/07, Mike Schinkel <[EMAIL PROTECTED]> wrote:
> Thanks for the warm welcome to a new list member.
I'm sorry if it sounded rude; again, I wasn't trying to pick on you,
but it's also hard to articulate this without sounding like an
asshole. It's kind of a lose-lose situation.
This list has t
On 6/9/07, Mike Schinkel <[EMAIL PROTECTED]> wrote:
> Ironic. I was asking for a method that would help me make the list more
> managable, and have been told "no." Ironic because it will likely cause me
> to leave before I can really learn more about Django, my reason for wanting
> to get on the l
On 6/12/07, womble <[EMAIL PROTECTED]> wrote:
> We're a little closer to experimenting with this, and have another question:
> is there any coherency checking/row (table?) locking implemented in
> django's db layer?
Django itself does not implement any locking features, or anything
else designed
On 6/13/07, womble <[EMAIL PROTECTED]> wrote:
> It sounds like we should be looking into transactions, but I can't find
> any examples regarding how to set them up, what will happen when a
> transaction fails (e.g. try to update a row that has been locked by
> another db client), and how to handle
On 6/14/07, Young Gyu Park <[EMAIL PROTECTED]> wrote:
> To do this I try to modify __str__ function by recursive function
>
> To get the parent category I need to call the filter function, But the
> python told me
No, you can do it pretty easily like this:
def __str__(self):
if self.
On 6/14/07, Young Gyu Park <[EMAIL PROTECTED]> wrote:
> This is only valid when the category have one depth.
>
> But what about two or three depth?
Look at it carefully; it works with *any* depth of categories.
To confirm, run this simplified example which uses plain Python
objects instead of mo
On 6/15/07, Nicholas Ding <[EMAIL PROTECTED]> wrote:
> But why not add a 'ne' term to do this?
> eg. Foo.objects.filter(column1__ne='', column2__ne='')
> I think it's more simple.
Older versions of Django supported that, but the current 'exclude'
syntax is a little more robust in terms of things
On 6/15/07, andyhume <[EMAIL PROTECTED]> wrote:
> Other than writing a new view for the change form, is there anything I
> can do to stop certain users or user groups from being able to edit a
> particular field of the model in the admin?
Not at the moment, no.
Please remember when considering t
On 6/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> One way I can think is, create a service to allow any views to
> update data and provide a call for reader.
Generally we call that a "database" or a "cache" ;)
Any reason why you can't store this data using either Django's
databa
On 6/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Well, I 'm implementing a performance counter. This counter will be
> updated everytime someone view our web page.
> So, I don't want to rely on another external system such as database.
> I just want to provide counter to some external mo
On 6/20/07, Joe Bloggs <[EMAIL PROTECTED]> wrote:
> This means the duration is 25 minutes long. What would be the best field to
> keep this data in? I suspect that I will use this data to calculate the end
> time of the programme but the duration is also useful.
Assuming that another piece of met
On 6/20/07, Bryan Veloso <[EMAIL PROTECTED]> wrote:
> This feature is a show-stopper, since the market I'll be gearing this
> to almost requires features like this to be there. So am I dreaming
> that this can be done? Has anybody else attempted something like this
> yet?
It should be relatively
On 6/21/07, Petey <[EMAIL PROTECTED]> wrote:
> Is there a way to use the same authentication tables between multiple
> sites? I want users on one of my websites to be able to use the same
> login on another without duplicating the tables. Is this possible. I
> couldn't tell if the add-on sites mod
On 6/22/07, ToddG <[EMAIL PROTECTED]> wrote:
> Rails has an implementation you could look at for an example, likely
> simpler to read than something like Hibernate... not sure how/if
> anything could be hooked/monkey'd into the django-admin though.
This is best handled by your database (assuming
On 6/25/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> wasnt in spam either - seems to have got eaten up somewhere on the
> way - I noticed djangosnippets also had this problem at the start ...
> maybe you should consult james bennet
On average, I get three or four emails bou
On 6/25/07, Jens Diemer <[EMAIL PROTECTED]> wrote:
> This works:
> mail_text = forms.CharField(widget=forms.Textarea)
That's by design. Whether to show an input type="text" or a textarea
is a matter of widgets, so you differentiate between them by using
different widgets.
--
"Bureaucrat Co
On 6/25/07, ilDave <[EMAIL PROTECTED]> wrote:
> So, I looked in the documentation and I found the 'FOO_set' Manager,
> and I tried something like this:
>
> d = Details.objects.filter(creation_date__gte=datetime.date(2007, 06,
> 01))
> d = d.header_set.filter(code__exact='123', author__exact='dave'
On 6/27/07, leif <[EMAIL PROTECTED]> wrote:
> Does anyone have information on this topic? I have a feeling I'm not
> the only one who's wondering this. Thanks!
Your best bet is probably to read the source right now; when the
branch is complete there will undoubtedly be documentation showing the
s
On 6/27/07, leif strickland <[EMAIL PROTECTED]> wrote:
> After some digging around, it looks like the newforms-admin branch
> does not allow widget declarations within the model class itself.
Yeah. As you've discovered, one of the big points of newforms-admin is
to get as much stuff as possible o
On 6/27/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> Looks like this is the default result for Model subclasses. Possibly
> related to the way we create them (using a metaclass). Feel free to work
> out a patch in django/db/models/base.py (in the ModelBase class,
> probably) if you want to
I wrote a quick off-list reply to this last night, but thought it
might be worth pointing out parts of it publicly as well so anyone who
searches the archives with similar problems will spot this:
1. Django does still support plain old unsalted md5 passwords for
login (for backwards compatibility
On 6/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> i'm using 0.96pre, the multi-db branch.
The bug was in the oldforms system, and has been fixed in trunk and in
the older releases we maintain support for; the multi-db branch went
stagnant for a long time, and is only now being picked up
On 7/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Every django app grabs ~60mb of RAM. I'm currently running three
> different django fcgi processes and that uses half of my available
> RAM.
I'm kind of curious what you're doing with all that RAM ;)
I run my blog on FastCGI, with a fair
On 7/5/07, John-Scott <[EMAIL PROTECTED]> wrote:
> @Nimrod - You were right about the permissions on /home/john-scott/
> workspace, chmod 755 fixed that. But I still have to have the django
> development code in /opt to get it to load. Any ideas why symlinking
> to /home/john-scott/workspace/djang
On 7/6/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
> Is there any reason there's not a TextField in newforms that defaults to
> use a TextArea widget other than the fact that no one has written one
> yet?
http://groups.google.com/group/django-users/browse_frm/thread/b3dc5cc742f3f068/
--
"Burea
On 7/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> EventFormClass.base_fields['club'].widget =
> widgets.Select(choices=Club.objects.filter(approved=True))
>
> But that throws
> TypeError at /clubs/events/
> unpack non-sequence
The 'choices' argument should look like this:
((1, 'Foo'),
(
On 7/7/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
> If you want Django to handle the full stack, then you will need to
> write a Django model that corresponds to the model you are trying to
> import. Usually not that difficult to do, but somewhat excessive
> effort for a temporary measure.
On 7/8/07, Al Abut <[EMAIL PROTECTED]> wrote:
> Does using a newform shortcut make things that much easier from a
> programmatic standpoint? Or to ask the opposite, is using and
> elements in a template make things that much harder for
> things like data validation?
Well, the thing to remember
On 7/9/07, Santhosh <[EMAIL PROTECTED]> wrote:
> Im working on a small web-app using django. The problem is.. the
> database operations are too slow. I think it may be because django
> makes a new connection and authenticates etc.. to the db everytime it
> wants something..Is there some way i can
On 7/6/07, uxmal <[EMAIL PROTECTED]> wrote:
> using psycopg :
> Error loading psycopg module: libpq.so.5: cannot open shared object
> file: No such file or directory
PostgreSQL's libraries often install into a location where the default
ld configuration won't find them; locate the PostgreSQL 'li
On 7/9/07, Chris Kelly <[EMAIL PROTECTED]> wrote:
> Or do I have to manually manage saving both objects when making a
> change? If so, what's the preferred way to do this? by managing the
> profile via the user object, or by managing the user object via the
> profile (overriding the profile save m
On 7/10/07, Mason <[EMAIL PROTECTED]> wrote:
> Hello, I'm a newbie to Dajngo (using version 0.96). I am trying to
> keep a particular web page from being cached, ie. I don't want the
> user to be able to hit the "Back" button on the browser and use the
> previous page to resubmit data to the serve
On 7/10/07, Mambaragi <[EMAIL PROTECTED]> wrote:
> widget=forms.CheckboxSelectMultiple,
> choices=[(assignee.id,
> assignee.nickname) for assignee
>in
> models.User.objects.filter(type__gte=models.User.DE
On 7/10/07, Mambaragi <[EMAIL PROTECTED]> wrote:
> As you see, I view function raises an exception, the exception is
> always regarded as "TemplateDoesNotExist".
> So I have to change the test case to...
>
> ] client = Client()
> ] self.assertRaises(TemplateDoesNotExist, client.get, "/user/
> pref
On 7/10/07, Mambaragi <[EMAIL PROTECTED]> wrote:
> I tried the following in a Form class ...
>
> ]def __init__(self, **kwargs):
> ]super(IssueFilterForm, self).__init__(**kwargs)
> ]self.assigned_to.choices = [(assignee.id, assignee.nickname)
> for assignee
> ]
parate apps and
make them available open source.
James
--
James Tauber http://jtauber.com/
journeyman of somehttp://jtauber.com/blog/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
On 7/11/07, Carl Karsten <[EMAIL PROTECTED]> wrote:
> How can I do something similar with:
> coursestatus = Event.objects.filter(
>eventtype__eventcode='corsecond',
>eventdate__lt = datetime.now()
>).latest('eventdate')
>
> Currently I get " Event matching query does n
On 7/11/07, Carl Karsten <[EMAIL PROTECTED]> wrote:
> Huh. I would have expected this case would have been provided for.
No, the raising of the exception is quite deliberate on Django's part
-- when you use a method which is expected to return one and only one
object, Django has only two options
On 7/12/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
> This isn't possible at present. You can collect the fields on an
> individual model into groups, but there isn't currently a mechanism to
> group models other than by application.
Sure there is, just supply a template 'admin/index.html'
On 7/14/07, Michael <[EMAIL PROTECTED]> wrote:
> That's means that I can't use Django or any other python-based
> framework for my job ?
If the host does not offer Python, you cannot use a Python-based framework.
> I'm asking all the programmers that work for other people, how do you
> work with
On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote:
> When foo.level drops to zero, I need to flip bar.switch like so...
>
> update bar set switch = 0 where foo_id = foo.id and switch = 1
>
> I could be updating any number of rows in bar. I want to do this
> without do a select on bar.
>
> Do I n
On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote:
> I could be updating any number of rows in bar. I want to do this
> without do a select on bar.
Also, it's worth noting that this is also fairly easy to do, it just
involves a little bit more code. Something like the following example
should g
On 7/15/07, rtconner <[EMAIL PROTECTED]> wrote:
> Yeah I could not get http://www.djangosnippets.org to work. Every time
> I tried to add a snippet I got an error.
Try again; I just kicked the server and things seem OK now.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of
On 7/15/07, rtconner <[EMAIL PROTECTED]> wrote:
> So one of the (very few) things I had not been happy with regarding
> Django is its flash message handling. So I wrote something that would
> make me happy. Its just a template tag add-on. Since so far Django has
> been so great to me, I wanted to
On 7/16/07, Michael <[EMAIL PROTECTED]> wrote:
> after many indecisions, I decided to leave Django and keep working
> with PHP
> I'm really disappointed that I had to make this decision :-(
I can certainly sympathize; back in my freelance days I enjoyed
writing Python and fell in love with Dja
On 7/17/07, Mohammad Tayseer <[EMAIL PROTECTED]> wrote:
> Shouldn't these be done at the "save" method? Django shouldn't depend on the
> DBMS do these checks, because some fields cannot be represented by the
> underlying DB
You'll want to search the archives of this and the developers' list
for "
On 7/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] mysite]$ ./manage.py validate
> admin.logentry: 'user' has relation with model User, which has not
> been installed
> admin.logentry: 'content_type' has relation with model ContentType,
> which has not been installed
> 2
On 7/17/07, Noam Raphael <[EMAIL PROTECTED]> wrote:
> I would really like to hear what you think about it (especially if
> it's good things...) Tell me!
I haven't looked at the code, but I wonder about the dependency on
multiple ORMs; the Django ORM cannot expose its own functionality on
multiple
On 7/18/07, Paulo <[EMAIL PROTECTED]> wrote:
> No to mention a good blog app that people can standardize on would be
> a nice alternative to Wordpress[1] and Simplelog[2]. Having one would
> definitely be helpful in the "spreading the word about Django"
> department.
I'm not entirely disintereste
On 7/18/07, Nash <[EMAIL PROTECTED]> wrote:
> I am running django pre-0.97 on a linux box. the date command on linux
> and in python datetime.now() both give me the correct times. However,
> in one of my models, there is a datetime attribute 'created_on' with
> default=datetime.now(). The default
On 7/18/07, tyman26 <[EMAIL PROTECTED]> wrote:
> Is it possible to set a property in my model that will set update
> cascade/delete to true when the tables are generated? I know models
> automatically do this anyways when you delete or update, but if I am
> working directly with database informat
On 7/18/07, olivier <[EMAIL PROTECTED]> wrote:
> I'm thinking about a very simple processor that would remove lines
> beginning by ## (ala mako), because the Django comment syntax is sooo
> verbose and tedious to type
You'll probably want to implement it as a custom template loader[1];
Django
On 7/18/07, Richard Leland <[EMAIL PROTECTED]> wrote:
> Trying to set up a connection from Django to a MySQL cluster. I've never
> done this before, so any guidance you could provide would be excellent.
Though I may be wrong, I was under the impression that the engine only
needs to be specified w
On 7/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I can access other pages in the doc area (ex: /admin/doc/filters/ or /
> admin/doc/tags/) but when I try to access the views documentation, I
> receive:
...snip...
> SyntaxError at /admin/doc/views/
> invalid syntax (views.py, line 3
On 7/19/07, Dmitriy Sodrianov <[EMAIL PROTECTED]> wrote:
> After typing manage.py syncdb again the table is not synchronised with
> the model despite the name of the command syncdb.
http://www.djangoproject.com/documentation/django-admin/#syncdb
> How should the process of synchronisation be per
On 7/19/07, Shankar <[EMAIL PROTECTED]> wrote:
> Is anyone else seeing the same behavior? Should I be running the latest
> SVN version of Django to take advantage of comment_utils?
You should go here
http://code.google.com/p/django-comment-utils/issues/list
and paste in the code -- including yo
On 7/19/07, Xanthus <[EMAIL PROTECTED]> wrote:
> A view knows the logged in user through request.user but i could not
> find if a signal has this information somewhere.
No, this information is not available in the default signals. This is
because Django can be used completely independently of its
On 7/20/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
> #2 is particularly interesting to me because I've written a simple
> blog in Django and there are some non-obvious things that having a
> reference implementation to look at would be nice. Things like:
To be fair, though, a lot of these things
On 7/20/07, Tim Chase <[EMAIL PROTECTED]> wrote:
> Is there a way to access the back-end's string-quoting mechanism?
from django.db import backend
foo_quoted = backend.quote_name('foo')
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~--
On 7/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi all.Django auto loaded onto my computer from( I believe) a Harry
> Potter web site.I want to remove it,as it is messing up one of the web
> sites that I frequent.The site shows a 404 error.As I am a newby to
> computer with NO codeing e
On 7/21/07, Chris Moffitt <[EMAIL PROTECTED]> wrote:
> I'm trying to get django-comment-utils working and I'm having a persistent
> problem where I get the following error when running syncdb:
Well, there is an issue tracker where I'll happily help people with
any questions they have:
http://cod
I am doing the Django tutorial. I have got everything to work up to the
point in Part 4, where I replace:
from django.conf.urls.defaults import *
urlpatterns = patterns('mysite.polls.views',
(r'^$', 'index'),
(r'^(?P\d+)/$', 'detail'),
(r'^(?P\d+)/results/$', 'results'),
(r'^(?P\d+
Thanks!
On 7/22/07, Collin Grady <[EMAIL PROTECTED]> wrote:
>
>
> If you're using 0.96, you must follow the 0.96 tutorial instead, at
> http://djangoproject.com/documentation/0.96/tutorial04/
>
>
> >
>
--~--~-~--~~~---~--~~
You received this message because you are
On 7/22/07, Patrick <[EMAIL PROTECTED]> wrote:
> What would be the most efficient way to get 10 top authors using Django
> db-api? Or should I switch to raw SQL to handle this query?
The most efficient way would be to use raw SQL. There are a couple
queries like that on djangosnippets.org to get
I am having two problems using django on an Apache server, with mod_python.
The first problem I found a solution, but it may be causing other problems.
In mysite/urls.py I am not able to use the ^ in:
(r^'polls/', include('mysite.polls.urls')),
It causes a 404 error. I do not have this problem wh
On 7/22/07, kbochert <[EMAIL PROTECTED]> wrote:
> If I do install it, will I be able to use it? The Satchmo site has
> zips for 'those who have trouble using svn'. If you professionals have
> trouble, what chance have I?
The biggest problem with SVN that I've seen is not SVN itself, but
overzealo
member if there's an API/network interface,
but it's open source so you won't lose it if you add one), but that's
not a bad thing because (in practice) if you get bigger you'll
probably need to do that anyway, either to fit in with a sales network
or to run one of the big
our urls, the mod_python will
> not found the right view if you did not add mysite in the urls.
>
> Best wishes,
> Nick
>
> - Original Message -
> *From:* James McManus <[EMAIL PROTECTED]>
> *To:* django-users@googlegroups.com
> *Sent:* Monday, July 23, 2007 12:35
0.96 tutorial, but nothing has caught my eye. Does anybody know where
this occurs in the code?
Jim
On 7/23/07, James McManus <[EMAIL PROTECTED]> wrote:
>
> Using in httpd worked, best in that it resolved the second
> problem. I did have an additional problem in the last section o
It works if I change:
return HttpResponseRedirect('/polls/%s/results/' % p.id)
to
return HttpResponseRedirect('/mysite/polls/%s/results/' % p.id)
in polls/view.py and change:
to
in template poll_detail.html.
On 7/23/07, James McManus <[EMAIL PROTECTED]> wrote:
On 7/24/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
> You're not the first to suggest insert() and update() methods that
> explicity do SQL INSERT and UPDATE calls. I have a vague recollection
> that a decision was made about adding these calls, but a quick search
> in the ticket database d
On 7/24/07, akk <[EMAIL PROTECTED]> wrote:
> Traceback (most recent call last):
> File "", line 1, in
> File "/usr/lib/python2.5/site-packages/django/db/models/base.py",
> line 40, in __new__
> model_module = sys.modules[new_class.__module__]
> KeyError: '__console__'
You'll need to actu
On 7/24/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote:
> Furthermore, is there a formal process for integrating into
> django.contrib? How has it worked in the past?
At the moment there isn't a formal process; when it's come up before,
the most common suggestion seems to have been that an appl
On 7/25/07, Patrick Anderson <[EMAIL PROTECTED]> wrote:
> Anyway, why not reset password for a logged-in user only? Maybe I've look
> at the code too briefly, and there might be a reason for iterating
> through users_cache, but that approach sounds safer to me.
Since the form accepts an email add
On 7/25/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote:
> I realized a new way to extend user models, it is simpler than official
> get_profile approach of django[1] as there is only one model to work with,
> and relationships are kept on the right model, and gives a less hacky feel
> than "replaces_
On 7/26/07, vida <[EMAIL PROTECTED]> wrote:
> As of 5764 (today, 1 AM) it still doesn't work.
If your template files are in an encoding other than UTF-8, you'll
also want to set the FILE_CHARSET setting to tell Django how to read
your templates:
http://www.djangoproject.com/documentation/setting
501 - 600 of 3176 matches
Mail list logo