On 7/26/07, vida <[EMAIL PROTECTED]> wrote:
> I get a UnicodeDecodedError if I try to include any of these acuted-
> characters in my templates. It's fine if they come from the database
> (unicode) but not if they are part of the markup.
> >From what I read (and tried), changing settings.DEFAULT_C
On 7/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Is it possible to develop a Facebook functional clone in Django? What
> parts of it are provided out of the box? Any third-party contributions?
This is like going to a company that sells construction equipment and
saying "is it possible t
On 7/27/07, Duc Nguyen <[EMAIL PROTECTED]> wrote:
> One facebook in america is enough. There is plenty of room for
> competition in other countries.
Yes, but a straight-up clone of Facebook isn't the way to do it.
Facebook succeeded because it chose a specific target market and
oriented itself
On 7/28/07, Cole Tuininga <[EMAIL PROTECTED]> wrote:
> I could do something like a simple many to many relationship in the
> attendee model, but that doesn't indicate ordering (most preferred to
> least preferred) per timeslot.
You might want to look at thisL
http://www.djangoproject.com/documen
On 7/29/07, dsinang <[EMAIL PROTECTED]> wrote:
> Is there a Django model code generator which can generate code based
> on a MySQL database schema ?
http://www.djangoproject.com/documentation/django-admin/#inspectdb
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct.
On 7/29/07, james_027 <[EMAIL PROTECTED]> wrote:
> D:\private\james\documents\django\ksk>python manage.py validate
> manning.employee: Reverse query name for field 'employee_contract'
> clashes with field 'EmployeeContr
> act.employee'. Add a re
On 7/28/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote:
> I would LOVE to use caching for both anonymous and logged in users, but
> the problem is that every page on our site (http://www.splicemusic.com)
> has the typical "hello username | log out | ..." at the top of each page.
You might c
On 7/30/07, Daniel Kvasnicka jr. <[EMAIL PROTECTED]> wrote:
> Hey, nobody has ever needed this? Any thoughts?
You might want to search the archives of this list, or go to Google
and type in "django extend user"; this is a pretty common question and
has been covered in a lot of detail ;)
--
"Bur
On 7/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Your model and sync script looks exactly like what I was starting to
> write!! Heck yeah!
There's also an open-source app which aims to genericize the function
of periodically pulling in some form of external content to your
database, an
On 7/31/07, biancaneve <[EMAIL PROTECTED]> wrote:
> I can do it if I write a whole new view and define my own variables,
> but then I lose a lot of the Admin functionality. I'd prefer to just
> change the title line of the admin template.
Try 'original'.
--
"Bureaucrat Conrad, you are technica
On 7/31/07, biancaneve <[EMAIL PROTECTED]> wrote:
> Yes! It worked! Thanks so much!
For future reference, you can see the variables passed into the intial
context for a change page here:
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/views/main.py#L397
Note that other
On 8/1/07, sagi s <[EMAIL PROTECTED]> wrote:
> I realize that this is an option but it seems to me more natural to
> control the content from the template so a designer can build views
> using "lego-blocks", without having to tweak the view.
You either want:
1. More robust views, or
2. Some cust
On 8/1/07, sagi s <[EMAIL PROTECTED]> wrote:
> Not clear on what you mean by "more robust views". Can you please
> elaborate?
Write views which select more data.
> Regarding custom template tags, I guess I expect many users to want to
> use django this way, so I think that having a "load_view" t
On 8/3/07, Collin Grady <[EMAIL PROTECTED]> wrote:
> >>> B.objects.filter(a__isnull=False)
> [, ]
And as pointed out in our IRC discussion, that needs a distinct()
slapped on the end to weed out duplicate results ;)
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct
On 8/3/07, Collin Grady <[EMAIL PROTECTED]> wrote:
> He wants every B that has an A fkeyed to it.
>
> In other words, every instance of B where b.a_set.count() > 0
In which case what he wants is probably something like
ModelB.objects.filter(id__in=[o.id for o in ModelA.objects.all()])
Which is
On 8/3/07, James Bennett <[EMAIL PROTECTED]> wrote:
> Foo.objects.extra(where=['id IN (SELECT %s FROM %s)' % Bar._meta.db_table])
Should have been:
> Foo.objects.extra(where=['id IN (SELECT foo_id FROM %s)' %
> Bar._meta.db_table])
(sent before I realize
check first if anyone has developed something like this?
James
(cross-posted to django-hotclub as it's a potentially useful addition
to the nascent Hot Club of France suite of apps)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
essages")
and when some threshold is reached (either time passed or number of
sub-messages queued up) an email is constructed and sent.
James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
Great, I'll start something at Google Code Project Hosting and
whatever you (or anyone else) can help with will be most welcome.
django-mailer will probably be the project name.
James
On 03/08/2007, at 5:12 PM, Jacob Kaplan-Moss wrote:
>
> On 8/3/07, James Tauber <[EMAIL PRO
On 8/4/07, eXt <[EMAIL PROTECTED]> wrote:
> You shold read very good summary on extending user model here:
> http://www.amitu.com/blog/2007/july/django-extending-user-model/
This method will probably have serious problems on multi-site
installations, and -- unlike AUTH_PROFILE_MODULE -- has no
On 8/4/07, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote:
> i'm trying to find a way to translate newforms errors but i can't find
> it in docs.
> does anybody know if this is documented somewhere?
Newforms error messages should be Unicode strings, so use the
'ugettext' or 'ugettext_lazy' functions
On 8/5/07, john <[EMAIL PROTECTED]> wrote:
> I created a symlink at /usr/local/bin to the django django-admin.py
> file under python2.5. If I go to my home directory and try to create
> a new project I get a syntax error pointing at the end of
> startproject. If I try " >>> /usr/lib/... djan
ailer list at Google Groups if people
prefer.
James
--
James Tauber http://jtauber.com/
journeyman of some http://jtauber.com/blog/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&
On 8/5/07, john <[EMAIL PROTECTED]> wrote:
> thks - the tutorial shows the .py extension and that was giving the
> error.
The file's name is 'django-admin.py', not 'django-admin', and the
tutorial is correct; the problem was that you did not have the
executable bit set on django-admin.py, and so
On 8/6/07, Michal <[EMAIL PROTECTED]> wrote:
> Is there some similar function please? (I read somewhere how to do this,
> but forgot it, and solution wasn't so straightforward).
You will need to find some way to issue a ROLLBACK statement to your
database. One such way is
from django.db import c
ve.
So after a first pass of the lowest layer (described above) is done,
I plan to add this kind of bulk email support per the previous
paragraph.
Thoughts? (again, I'm happy to take this to a dedicated list if
people prefer)
James
--~--~-~--~~~---~
Also posted to
http://code.google.com/p/django-mailer/wiki/InitialDesignThoughts
I'll check in some initial models in the next day or so.
James
On 07/08/2007, at 9:04 AM, James Tauber wrote:
> Here are some more thoughts below which I'll add to the project wiki
&
ow the bottom layer works.
I've also, at the request of a couple of people, set up a Google
group. I'll move design discussions there (so join if you want to
participate) but give occasional updates here.
http://groups.google.com/group/django-mailer
James
On 05/08/2007, at 3:23 PM,
dy:
for user in User.objects.all():
# do stuff
James
--~--~-~--~~~---~--~~
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
On 07/08/2007, at 11:42 AM, Ramdas S wrote:
>
> I am not very sure whether the bulk-mail support personalization.
>
> I think that should be an important feature.
Yes, it will support templates with the user passed in the con
On 8/8/07, Stephen Bunn <[EMAIL PROTECTED]> wrote:
> Understandable. But for somebody new to an ORM type model (like me)
> things might not be so clear. If I am writing a PHP or Perl
> application, I know exactly what permission it needs because I am
> constructing the SQL. With Django, it is b
My point is that you just need an iterable. Both lists and QuerySets
meet this requirement.
There is no casting in Python. You don't need to "cast" a QuerySet to
a list.
James
On 08/08/2007, at 12:05 PM, Kai Kuehne wrote:
>
> Sure, that's not the point. The poi
On 8/8/07, cwurld <[EMAIL PROTECTED]> wrote:
> Occasionally, even thought the code works locally, it breaks the live
> site. This would be much less of a problem if I could display a static
> page describing to the users that the site is temporarily unavailable
> because of maintenance.
The templ
On 8/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> hi, after hitting
> python manage.py sql polls
> an error appears and i don't know how to debug in python for find the
> error.
There is a large warning at the top of the tutorial page:
"This document is for Django's SVN rele
On 8/10/07, sagi s <[EMAIL PROTECTED]> wrote:
> In Rails, flash is a way to display a message in the next page. It is
> extremely useful to provide lightweight feedback to user operations.
> For examples when the user, say, submits a new article and after
> clicking on the "Submit" button, then is
s a LONG time -- it looks like
> the page hangs.
For the reasons you give, it's done asynchronously. The main app just
puts the message on a queue and a separate process picks it up and
sends it.
James
--~--~-~--~~~---~--~~
You received this message because
On 8/11/07, Kelsey Ruger <[EMAIL PROTECTED]> wrote:
> I have the same problem even though I have installed MySQLdb.
Open up a Python interpreter, and try:
import MySQLdb
If you see an ImportError, MySQLdb may have been installed into a
location that's not on your Python import path; you can fix
On 8/13/07, sagi s <[EMAIL PROTECTED]> wrote:
> Surely not. It is... darn - Can I just use SQL and be done with it?
Of course.
But keep in mind that, when programming in an object-oriented
language, it's often more useful to get back a set of domain-specific
objects -- which requires using Djang
On 8/13/07, Amirouche <[EMAIL PROTECTED]> wrote:
> What do you mean, I can't understand.
OK, suppose you are running an online store, so you have a database
table "orders", which lists orders customers have placed, and another
"addresses" which lists the addresses to ship the orders to. To
calcul
each category a
given page is in, provide the next page in that category (ordered by
creation time)?
James
--
James Tauber http://jtauber.com/
journeyman of some http://jtauber.com/blog/
--~--~-~--~~~---~--~~
You received this message because you
On 8/14/07, TheMaTrIx <[EMAIL PROTECTED]> wrote:
> Seems DjangoSnippets is down.
> Yesterday it took 10 minutes to load a page and now its simply
> erroring out.
Yes, it was down.
Usually, when it goes down, there is no need to send an email to this
mailing list, or to me, or to ping me on IRC;
On 8/14/07, john <[EMAIL PROTECTED]> wrote:
> I've downloaded the tarball several times - each time the archiver
> shows it as corrupt (other tarballs work fine). Using Ubuntu Feisty.
> (and the Feisty backport package is broken as well).
I'm able to download it and unpack it just fine on each o
Okay, this is the solution I came up with:
http://dpaste.com/16869/
On 14/08/2007, at 12:31 AM, James Tauber wrote:
>
>
> Imagine you have a Page model with a creation_time field and a many-
> to-many field of Categories.
>
> Clearly you can navigate through each page in
Actually, one problem with this is the first / last page will get a
'list index out of range'.
I notice _get_next_or_previous_by_FIELD just catches an IndexError so
I guess I'll do the same.
James
On 14/08/2007, at 6:55 PM, James Tauber wrote:
>
>
> Okay, this i
On 8/14/07, James Tauber <[EMAIL PROTECTED]> wrote:
> Okay, this is the solution I came up with:
>
> http://dpaste.com/16869/
I've done some similar things to account for a get_next/get_previous
on a model where some objects aren't meant to be publicly visible, and
reme
On 8/14/07, Lars <[EMAIL PROTECTED]> wrote:
> My first thought was: I've missed a debugging flag somewhere that
> needs to be off. Here's what I roughly have:
Have you checked the Apache directives which control how many requests
a process may server before it gets recycled?
Remember that Apache
On 8/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> What I'd normally do is use alter table to update the fields. I was
> surprised to see django won't do it, while using manage.pl syncdb. Is
> there a practical way to handle this issue? Or am I doomed to live
> with the tables I've created
On 8/15/07, TheMaTrIx <[EMAIL PROTECTED]> wrote:
> that doesn't exist, gets called, the user gets a 404 page inline with
> the sites main layout + a bunch of suggestions for pages that might
> fit what the user was looking for, like there are pages relevant to
> banana at
Write a view which does
On 8/15/07, Andy <[EMAIL PROTECTED]> wrote:
> It works, except it seems horribly inefficient. The problem is *each
> time* a page is requested, it would have to do a remote URL Request,
> write the new css file, etc. Has anyone been confronted with this
> problem. Is there an easier solution?
On 8/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Oh. That's a real ouch. I really hoped I can avoid that.
Well, consider this:
Anything which *isn't* SQL and which is used to do this job must -- in
order to cover all the necessary use cases -- be as complex as SQL, or
evolve to the poi
On 8/16/07, Ryan K <[EMAIL PROTECTED]> wrote:
> I am using Django 0.96 and I am getting this error. Any ideas as to
> why?
No, because we're not mind-readers ;)
In order to help you track down an error, we need to know:
1. What you were trying to do.
2. How you were trying to do it (e.g., paste
On 8/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> So how do I do it?
http://www.google.com/search?hl=en&q=sql+alter+table&btnG=Google+Search
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You recei
On 8/16/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
> Don't understand what 0.96pre means since not a regular Django user,
> but there was a whole issue with MySQL database issues with Subversion
> copy of Django back in June.
Between releases, django.VERSION increments and adds the "-pre"
su
On 8/18/07, Pawel Pilitowski <[EMAIL PROTECTED]> wrote:
> I just updated to the latest django version (5925) and ran syncdb and
> get the following error.
>
> Any suggestions?
If you're tracking SVN, it's an *extremely* good idea to also watch
the development timeline[1] and read the django-devel
On 8/19/07, shabda <[EMAIL PROTECTED]> wrote:
> I am *very* confused here, I have only installed mod_python, and
> nothing specific to django. SO how would the line
> PythonHandler django.core.handlers.modpython work?
If you have Django installed on the server and on the Python path, it will wor
On 8/19/07, Greg <[EMAIL PROTECTED]> wrote:
> I have a FloatField called price that stores the price of different
> elements. When the price is 19.99, 19.79, 19.01 etc... everything is
> displayed correctly. However, when I have a price of 19.00. The
> price when viewed in a browser is just 19.
On 8/21/07, Lee Connell <[EMAIL PROTECTED]> wrote:
> I was wondering if it was easy and if there are examples of using
> django's ORM and even the authentication system in contrib outside of
> django, say in a twisted network application?
http://groups.google.com/group/django-users/search?group=d
On 8/22/07, Lee Connell <[EMAIL PROTECTED]> wrote:
> Thanks for response, how do i setup a "minimal" django app? just
> create a settings file that describes the model and then import django
> and apply those settings?
http://www.djangoproject.com/documentation/settings/#using-settings-without-s
rator. See
http://code.google.com/p/django-atompub/wiki/LegacyGuide
for instructions.
I'm particularly interested in people testing out the legacy support
but welcome general feedback about atom.py and the documentation.
James
--
James Tauber http://jtauber.com/
journeyman
am guessing I want to create a custom Manager than
handles adding the reverse relationship to the table (and removing it
as well) just like ManyRelatedManager in django.db.model.fields.related.
Is there a nice way to do that, short of just copying a bunch of the
code f
So bottom line is I *can* do it, but I have to do the work myself?
I'll re-look through the archives.
Thanks!
James
On 23/08/2007, at 2:03 AM, Russell Keith-Magee wrote:
>
> On 8/23/07, James Tauber <[EMAIL PROTECTED]> wrote:
>>
>> Say I want to express a symm
make sure that when Friendship(A, B) is created,
Friendship(B, A) is done so automatically. And similarly if Friendship
(A, B) is deleted, delete the corresponding reversal. I'm just
wondering the recommended way to do that.
James
On 23/08/2007, at 2:43 AM, Russell Keith-Magee wrote:
>
On 8/23/07, DrMarco <[EMAIL PROTECTED]> wrote:
> after searching in this group and on google, I am a bit lost about the
> exact state of the newforms library in the 0.96 release. Is it usable
> or is a merely a preview that I should not use for production ? In
> particular can it do filefield and
On 8/23/07, John Menerick <[EMAIL PROTECTED]> wrote:
> Yeah, I was thinking of running a script in daemon mode, but I would prefer
> to keep the code inside the django instance to keep everything simpler.
> simpler as in the same settings for deployment, less hassle deploying on
> machines, etc...
On 8/24/07, Rodrigue <[EMAIL PROTECTED]> wrote:
> This works fine when I unittest it. But then, I create an instances of
> SomeClass in Django and...it does not work...and in the strangest way:
> the rest of the initialisation code is executed more than once, but
> not everytime.
When running und
On 8/24/07, Stodge <[EMAIL PROTECTED]> wrote:
> Is there an easy way to re-synch the database without wiping it so it
> can somehow apply the SQL changes automatically?
Yes, it's called "ALTER TABLE".
No, there's nothing contradictory in providing an ORM without
providing automated schema migrat
On 8/26/07, z_axis <[EMAIL PROTECTED]> wrote:
> File "d:\app\python\Lib\site-packages\django\db\__init__.py", line 7, in
> le>
> if not settings.DATABASE_ENGINE:
The lines above tell you what the problem is: Django stores data in a
database, but you have not filled in the settings which t
On 8/27/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> Ah, one more thing-- try commenting out the signalling. There's a
> known performance issue there.
Even without it, the ORM will be slower, and should be expected to be
slower -- doing a straight select doesn't involve much overhead
because it
On 8/27/07, Rufman <[EMAIL PROTECTED]> wrote:
> Does anyone have an idea how i can get the day_id and rubric_id in a
> link, if they are not attributes of the model that is being displayed?
> (if i were hard coding with PHP i would just make them get or post
> parameters)
http://www.djangoproject
On 8/27/07, Darrin Thompson <[EMAIL PROTECTED]> wrote:
> I'm building a real estate search. I have existing and future
> competition. It's to my advantage to track a few preferences and
> favorites for anonymous users before they register.
http://www.djangoproject.com/documentation/sessions/
--
On 8/27/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> QuerySet.iterator does what you want.
I was going to follow up with a documentation link, but it appears we
lost the documentation for QuerySet.iterator at some point. Opened a
ticket
In any case, Jeremy's right: the "iterator" method returns
[3, 4] are actually coming from a form
and may be empty, in which case the WHERE clause could be eliminated
on that side of the EXCEPT.
Thanks
James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
EXCEPT
SELECT thing_id
FROM myapp_property
WHERE property_type_id = ...
How can I best do these sorts of EXCEPT queries with the database API?
James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
On 8/29/07, Matt Davies <[EMAIL PROTECTED]> wrote:
> you shouldn't limit your chances so much
>
> "must be US citizens with no criminal history"
Somewhat OT, but for some companies this is a legal requirement.
Citizenship for certain firms who do government work, no criminal
record is common in i
On 8/29/07, Ulf Kronman <[EMAIL PROTECTED]> wrote:
> Is there any documentation on this change around yet?
As always, backwards-incompatible changes appear here:
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Changestomanagement.pycommands
--
"Bureaucrat Conrad, you are techni
On 8/29/07, Diego pylorca <[EMAIL PROTECTED]> wrote:
> Somethimes I must show only field1 and field2.
>
> is some way to only select the field1 and field2?
http://www.djangoproject.com/documentation/db-api/#values-fields
--
"Bureaucrat Conrad, you are technically correct -- the best kind of co
On 8/29/07, Diego pylorca <[EMAIL PROTECTED]> wrote:
> ok, but this not return a querySet, return a dictionary :S
Read the documentation more carefully. Specifically:
> Returns a ValuesQuerySet -- a QuerySet that evaluates to a list
> of dictionaries instead of model-instance objects.
And:
>
On 8/30/07, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> The session cookies for 64-bit machine based app have
> additionally all this __utma .. __utmz items, not found in cookies for
> 32-bit machine.
>
> Anybody experienced similar weirdness?
The "utma", "utmz", etc. cookies are not set by Django.
On 8/30/07, akonsu <[EMAIL PROTECTED]> wrote:
> my script creates a fixture file at FIXTURE_PATH, and then runs the
> reset command on my application. the relevant code is listed below.
> now that i synced to the latest trunk, this code no longer runs
> because the management module has no procedu
On 8/31/07, Rotlaus <[EMAIL PROTECTED]> wrote:
> what is the preferred way to expand the user model? I would use a
> model with a OneToOne Field, but documentation says i should not. What
> should i do instead?
A foreign key with unique=True, as covered in the Django book.
--
"Bureaucrat Conra
On 8/31/07, sect2k <[EMAIL PROTECTED]> wrote:
> One way of doing it would be to use template tags, but that would amount to
> redundant SQL queries for each story. I guess another way of doing it would
> be to write custom SQL using JOIN.
>
> What I would like to know is what is the django way of
On 8/31/07, Michael Radziej <[EMAIL PROTECTED]> wrote:
> There's also a blog entry about this:
>
> http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model
Which reminds me I need to add a link from that entry to the relevant
bit in the book.
--
"Bureaucrat Conrad, you are tech
On 8/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> can anyone help me? any idea?
Read the Django tutorial, which will explain how to create a Django
settings file and specify it for use when importing/using parts of
Django.
--
"Bureaucrat Conrad, you are technically correct -- the best
On Aug 31, 9:11 pm, Sebastian Macias <[EMAIL PROTECTED]>
wrote:
> What I'm concerned about is that Article.objects.all() will return a
> query_set with all of the records. If I have millions of records it
> means the returned query_set will be huge and I'm affraid performance
> will be poor in and
On 8/31/07, jfagnani <[EMAIL PROTECTED]> wrote:
> I can't figure out what's going on, the form obviously works in some
> circumstances, and the log-in data is also correct.
You're running into the issue in ticket #3393[1]. I keep meaning to
put together a better patch, but other things keep comin
On 8/31/07, Davidov <[EMAIL PROTECTED]> wrote:
> This means that project should have some knowledge about parent site.
> This makes it difficult to move projects from site to site. Also this
> violates DRY (you have to write site name again).
For sake of convenience, the tutorial walks you throug
On 8/31/07, Udi <[EMAIL PROTECTED]> wrote:
> I see the request object has
> 'REMOTE_USER': self._req.user,
> in meta, but I'm getting None there despite the fact that only
> authenticated users are using my site. Am I looking in the wrong
> place? Is there any way to get this info into the
On 9/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> then changed to : {{ post.author.get_profile().image }}, still got a
> error as following:
You **never** use parentheses in a template. The template language is
not Python, and does not use the same syntax as Python.
{{ post.author.get_pr
On 9/2/07, patrickk <[EMAIL PROTECTED]> wrote:
> I´m using django-registration and changed line 80 of models.py from
> subject = "Account activation for %s" % current_domain
> to
> subject = "Account-Aktivierung für %s" % current_domain
Try
subject = u"Account-Aktivierung für %s" % current_domai
On 9/2/07, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> I have Python 2.5.1 and Django installed and running on OS X 10.4.10,
> but can't seem to get either the Psycopg2 or MySQL-python bindings
> installed so I can actually use a database with Django.
For Mac, this is the easiest way to get the n
On 9/3/07, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Markdown wraps all text in tag so truncate_html doesn't work
?
I'm using Markdown and I've *never* seen it do that...
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~--
On 9/3/07, Devi <[EMAIL PROTECTED]> wrote:
> I was trying to get the developement version of django and that
> doesn't work by this..
> svn co http://code.djangoproject.com/svn/django/trunk/
>
> I'm able to see the files in the browser. Any ideas of what can be
> done?
Without knowing what sort
On 9/3/07, Giuseppe Ciotta <[EMAIL PROTECTED]> wrote:
> Does Django support postgresql schema different from the default (public)?
No.
Patches would be welcome.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~--
On 9/3/07, synthrabbit <[EMAIL PROTECTED]> wrote:
> latest_info_dict = {
> 'queryset': Page.objects.all(),
> 'slug': Page.objects.latest().slug,
> }
The bit which calls latest() here is evaluated exactly once: when your
URLs module is first loaded into memory. Hence, whichever object is
t
On 9/5/07, Steve Bergman <[EMAIL PROTECTED]> wrote:
> Does anyone have comments about the possibility of running a django
> server on the Nokia 770? Is it possible? I have a simple app that I
> want to demo on it with both the django server and the browser running
> on the same device.
Some qui
On 9/5/07, Brett Parker <[EMAIL PROTECTED]> wrote:
> If those of us in Europe believed everything we read in the papers we'd
> get the impression that the American way was to start war with anyone
> that wasn't American and had oil... (of course, we don't all believe
> that, but lets just change f
On 9/5/07, Atendo <[EMAIL PROTECTED]> wrote:
> urlpatterns = patterns('',
> (r'^$', 'myproj.app1.views.index'),
> (r'^$', 'myproj.app2.views.index'),
This won't work because you only get one view function per URL; the
same URL can't simultaneously route to multiple different views.
Generally the
WHERE c = 1
)
"""], params=[source.id]
)
but that doesn't work either (even though the raw SQL does, even with
the WHERE id IN (...). )
Any ideas?
James
--
James Tauber http://jtauber.com/
On 9/6/07, mamcxyz <[EMAIL PROTECTED]> wrote:
> Yeah, and maybe in mod_python I see the purpose... however why not
> doing that to a single import anyway? And for fastcgi and the dev web
> server that could by that simply... not?
"A single import" from where, exactly? Either you set
DJANGO_SETTIN
expected output.
Well, it turned out the lack of results (doesn't work = no results at
all) was a snafu on the templating side but I appreciate your SQL
insights which was a large part of what I was looking for advice on as
well.
James
--
James Tauber http://jtaub
601 - 700 of 3176 matches
Mail list logo