On Fri, Dec 26, 2008 at 3:15 PM, waltbrad wrote:
> How much of django's code is broken with python 3.0?
The installation instructions and the installation FAQ cover this issue:
http://docs.djangoproject.com/en/dev/intro/install/#install-python
On Sun, Dec 28, 2008 at 7:19 PM, Alessandro Ronchi
wrote:
> Django itselfs permits selecting the i18n language via POST. I think
> it should be useful to add also a GET var to set the language, and a
> localization middleware catches it.
This has been debated to
On Mon, Dec 29, 2008 at 3:02 AM, Vicky wrote:
> command like below is not working... can u suggest a way??
It is very, very, very, very important to read the big warning at the
top of the template documentation, which states that the Django
template language *is not* just
On Mon, Dec 29, 2008 at 3:38 AM, Shuge Lee wrote:
> return render_to_response( 'a.html', {'obj': obj, 'category':
> Category} )
>
> a.html
> ...
> {% load comments %}
> {% render_comment_form for category %}
The problem may be that you are passing Category -- the model
On Jan 5, 2:21 am, HB wrote:
> Hey,
> I'm reading "The Definitive Guide To Django" but it is too out dated.
> Do you recommend "Practical Django Projects" instead?
> It seems to me that "The Definitive Guide To Django" is more organized
> and covers a lot of materials.
>
On Jan 5, 6:04 am, HB wrote:
> Sure, I mean encourage not force :)
Your email client apparently failed to generate tests for your
message, resulting in a misunderstanding.
--~--~-~--~~~---~--~~
You received this message because you are
On Tue, Feb 3, 2009 at 9:22 PM, Jeff Hammerbacher wrote:
> I could modify the call to Database.connect() in
> django/db/backends/mysql/base.py, but that's not the most elegant
> implementation. Does anyone have ideas on how to proceed in a
> Django-approved fashion?
On Wed, Feb 4, 2009 at 2:35 AM, knight wrote:
> Thanks for the fast reply.
> I read this but I still cannot find the view that renders index.html.
You do not need to do anything to the view function. The view you're
looking for is designed so that you can place your own
On Sun, Feb 8, 2009 at 5:21 PM, Russell Keith-Magee
wrote:
> 1) Look at django.utils.version.get_svn_revision(). This method tells
> you Django's SVN revision. Make a copy of this method and modify it to
> point at your own code, telling you the version of your clients
On Mon, Feb 9, 2009 at 7:38 AM, rihad wrote:
> This is no surprise, as django always attempts to install databases/py-
> psycopg, and not databases/py-psycopg2, since the former is hardcoded
> in its port Makefile. Any ideas?
Django's documentation lists all available values for
On Mon, Feb 9, 2009 at 6:39 AM, phoebebright wrote:
> In admin, if I change the content of one pic it blanks the rest. Is
> this expected behaviour?
Generally, when you think you've found a bug, searching the Django bug
tracker will turn up useful information, as in
On Wed, Feb 11, 2009 at 9:01 PM, Tim Johnson wrote:
> I installed from the tarball, and I see the docs directory beneath the
> initially extracted directory and a makefile. So now my questions is:
> What is Sphinx and where do I get it?
The documentation covers this:
On Fri, Feb 13, 2009 at 3:32 AM, Rhoel_in_Asia
wrote:
>
> Also, when the ./confure does run, it stops with the error
>
> checking for iconv.h... yes
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for
On Fri, Feb 13, 2009 at 6:31 AM, Lee Braiden wrote:
> What exactly is the reasoning behind this advice? It seems to me that
> one would very rarely want to store an empty string. For example, if
> a user doesn't enter a surname, that does not mean that their surname
>
Everything is happening in a Postgres transaction; at the first error
the transaction aborts and you must issue a ROLLBACK to the DB before
continuing. Consult Django's transaction dogs for information on how
to do this.
On 2/14/09, 83...@gmx.de <83...@gmx.de> wrote:
>
> Hi Folks,
>
> I'd like
On Tue, Feb 17, 2009 at 11:54 PM, Lloyd Budd wrote:
> Super minor suggestion, it looks like trunk is where 1.1 work is
> happening, for maintaining my own project using 1.0 it might be handy
> if there was django/branches/1.0/ . That way I could just do a check
> out there
On Sat, Feb 21, 2009 at 11:52 PM, Jlcarroll wrote:
> What is the best way to fix this? What if someone wants to enter a
> broken url in an admin page? What if the url isn't broken, just
> requires a login?
Please read the documentation for URLField, which explains how to
As we run up to Django 1.1 (due in April), we've started the process
of alpha and beta preview packages with Django 1.1 alpha 1, released
tonight. As always, alpha and beta packages are *not* for production
use, but if you'd like to try out the new features or go bug-hunting
in a safe
On Thu, Feb 26, 2009 at 2:30 AM, jeff wrote:
> Wow, that's much simpler. They should list that option on the admin
> documentation page. Many thanks!
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#inlinemodeladmin-options
"The InlineModelAdmin class is a subclass
On Mon, Mar 2, 2009 at 6:25 PM, Wiiboy wrote:
> I'm with a shared hosting company called Lunarpages. They tell me
> Django, by itself, even with Fast CGI, because it is a framework, is
> too resource intensive for them to allow. But many other shared
> hosting providers
On Sun, Mar 8, 2009 at 9:08 PM, adelevie wrote:
> I am building an app that uses the python-twitter module (a python
> library for twitter's api). I want to gather data from the public
> timeline which is updated about every minute. I have a function that
> given a feed will
On Mon, Mar 9, 2009 at 4:47 AM, K*K wrote:
> Because the
> requirements wrote all of database code should implemented with ORM
> code and can not use RAW SQL, and the interactive designer do not want
> to make concession.
The person responsible for this decision should be
On Tue, Mar 10, 2009 at 1:58 PM, Jonquille wrote:
> What am I missing please, and thank you.
You're missing the idea that templates are not Python code and are not
typed at a Python prompt -- they're placed in template files and
templates are loaded and rendered according
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
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
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:
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
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
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
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
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 related_name argument to the definition for
>
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
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 ;)
--
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,
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
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
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"
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
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 realized I'd decided not to
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/...
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
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
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
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
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
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
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
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, 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
remembered a little-known but
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
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
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.,
On 8/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> So how do I do it?
http://www.google.com/search?hl=en=sql+alter+table=Google+Search
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You received
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"
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
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
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
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?
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?
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,
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
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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.
{{
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" %
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
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
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
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
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
On 9/6/07, Adam Jenkins <[EMAIL PROTECTED]> wrote:
> This actually brings up an issue. I've heard that many Django developers
> don't
> use projects at all, that they just use apps. Is this correct? Should I
> default to one
> project and break it up into smaller ones if the need arises?
First
On 9/7/07, Griffin Caprio <[EMAIL PROTECTED]> wrote:
> This may have been answered already, but I couldn't find it.
Which is strange, because this thread comes up if you go to the Google
Groups page and search for "djangobook status":
1 - 100 of 1680 matches
Mail list logo